Compare commits
6 Commits
057b0bf93a
...
master
Author | SHA1 | Date | |
---|---|---|---|
a102274416
|
|||
d14ab2d7ff
|
|||
5df3b86fc9
|
|||
b470f1cf43
|
|||
155696c12f
|
|||
4dddd17132
|
1
.brew_programs_disable
Normal file
1
.brew_programs_disable
Normal file
@@ -0,0 +1 @@
|
|||||||
|
example
|
@@ -18,8 +18,26 @@ bindings = [
|
|||||||
[font]
|
[font]
|
||||||
size = 22
|
size = 22
|
||||||
|
|
||||||
|
# [font.normal]
|
||||||
|
# family = "Terminess Nerd Font"
|
||||||
|
# style = "Regular"
|
||||||
|
|
||||||
|
# # [font.bold]
|
||||||
|
# # family = "Teminess Nerd Font"
|
||||||
|
# # style = "Bold"
|
||||||
|
|
||||||
|
# [font.bold_italic]
|
||||||
|
# family = "Terminess Nerd Font"
|
||||||
|
# style = "Bold Italic"
|
||||||
|
|
||||||
|
# [font.italic]
|
||||||
|
# family = "Terminess Nerd Font"
|
||||||
|
# style = "Italic"
|
||||||
|
|
||||||
|
|
||||||
|
# Comic code
|
||||||
[font.normal]
|
[font.normal]
|
||||||
family = "Terminess Nerd Font"
|
family = "Comic Code Ligatures"
|
||||||
style = "Regular"
|
style = "Regular"
|
||||||
|
|
||||||
# [font.bold]
|
# [font.bold]
|
||||||
@@ -27,16 +45,20 @@ style = "Regular"
|
|||||||
# style = "Bold"
|
# style = "Bold"
|
||||||
|
|
||||||
[font.bold_italic]
|
[font.bold_italic]
|
||||||
family = "Terminess Nerd Font"
|
family = "Comic Code"
|
||||||
style = "Bold Italic"
|
style = "Bold Italic"
|
||||||
|
|
||||||
[font.italic]
|
[font.italic]
|
||||||
family = "Terminess Nerd Font"
|
family = "Comic Code"
|
||||||
style = "Italic"
|
style = "Italic"
|
||||||
|
|
||||||
|
[font.offset]
|
||||||
|
x = 0
|
||||||
|
y = -6
|
||||||
|
|
||||||
[font.glyph_offset]
|
[font.glyph_offset]
|
||||||
x = 0
|
x = 0
|
||||||
y = 0
|
y = -2
|
||||||
|
|
||||||
# [mouse.hints]
|
# [mouse.hints]
|
||||||
# modifiers = "Command"
|
# modifiers = "Command"
|
||||||
@@ -44,10 +66,6 @@ y = 0
|
|||||||
# [mouse.hints.launcher]
|
# [mouse.hints.launcher]
|
||||||
# program = "open"
|
# program = "open"
|
||||||
|
|
||||||
[font.offset]
|
|
||||||
x = 0
|
|
||||||
y = 0
|
|
||||||
|
|
||||||
[selection]
|
[selection]
|
||||||
save_to_clipboard = true
|
save_to_clipboard = true
|
||||||
|
|
||||||
|
@@ -371,7 +371,17 @@
|
|||||||
"is_keyboard": true,
|
"is_keyboard": true,
|
||||||
"product_id": 785,
|
"product_id": 785,
|
||||||
"vendor_id": 13364
|
"vendor_id": 13364
|
||||||
|
},
|
||||||
|
"simple_modifications": [
|
||||||
|
{
|
||||||
|
"from": { "key_code": "grave_accent_and_tilde" },
|
||||||
|
"to": [{ "key_code": "non_us_backslash" }]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": { "key_code": "right_control" },
|
||||||
|
"to": [{ "key_code": "grave_accent_and_tilde" }]
|
||||||
}
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"identifiers": {
|
"identifiers": {
|
||||||
|
@@ -357,8 +357,8 @@ set updatetime=250
|
|||||||
autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false, scope="cursor"})
|
autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false, scope="cursor"})
|
||||||
|
|
||||||
" CoPilot
|
" CoPilot
|
||||||
imap <silent><script><expr> <F1> copilot#Accept("\<CR>")
|
" imap <silent><script><expr> <F1> copilot#Accept("\<CR>")
|
||||||
let g:copilot_no_tab_map = v:true
|
" let g:copilot_no_tab_map = v:true
|
||||||
|
|
||||||
" Neoformat
|
" Neoformat
|
||||||
let g:neoformat_try_formatprg = 1
|
let g:neoformat_try_formatprg = 1
|
||||||
|
@@ -446,15 +446,20 @@ function install_brew_programs() {
|
|||||||
INSTALLED_PROGRAMS=$(brew list)
|
INSTALLED_PROGRAMS=$(brew list)
|
||||||
while IFS='' read -r line; do LIST_OF_PROGRAMS+=("$line"); done < <(cat "$HOME"/.brew_programs)
|
while IFS='' read -r line; do LIST_OF_PROGRAMS+=("$line"); done < <(cat "$HOME"/.brew_programs)
|
||||||
while IFS='' read -r line; do LIST_OF_PROGRAMS_CASK+=("$line"); done < <(cat "$HOME"/.brew_programs_cask)
|
while IFS='' read -r line; do LIST_OF_PROGRAMS_CASK+=("$line"); done < <(cat "$HOME"/.brew_programs_cask)
|
||||||
|
while IFS='' read -r line; do LIST_OF_PROGRAMS_DISABLE+=("$line"); done < <(cat "$HOME"/.brew_programs_disable)
|
||||||
|
|
||||||
for i in "${LIST_OF_PROGRAMS[@]}"; do
|
for i in "${LIST_OF_PROGRAMS[@]}"; do
|
||||||
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]]; then
|
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] \
|
||||||
|
&& \
|
||||||
|
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
|
||||||
brew install $i --force
|
brew install $i --force
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for i in "${LIST_OF_PROGRAMS_CASK[@]}"; do
|
for i in "${LIST_OF_PROGRAMS_CASK[@]}"; do
|
||||||
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]]; then
|
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] \
|
||||||
|
&& \
|
||||||
|
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
|
||||||
brew install $i --cask --force
|
brew install $i --cask --force
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
22
.local/bin/custom-iperf
Executable file
22
.local/bin/custom-iperf
Executable file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SERVER="$1"
|
||||||
|
|
||||||
|
if [ -z "$SERVER" ]; then
|
||||||
|
echo "Usage: $0 <server_ip>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Starting..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
# Upload test (client sends data to server)
|
||||||
|
UPLOAD=$(iperf3 -c "$SERVER" -P5 -t 30 --json | jq '.end.sum_sent.bits_per_second / 1000000')
|
||||||
|
|
||||||
|
# Download test (client receives data from server)
|
||||||
|
DOWNLOAD=$(iperf3 -c "$SERVER" -P5 -t 30 -R --json | jq '.end.sum_received.bits_per_second / 1000000')
|
||||||
|
|
||||||
|
# Print summary
|
||||||
|
echo "SERVER: $SERVER"
|
||||||
|
echo "UPLOAD: $(printf "%.2f" "$UPLOAD") Mbps"
|
||||||
|
echo "DOWNLOAD: $(printf "%.2f" "$DOWNLOAD") Mbps"
|
Reference in New Issue
Block a user