Compare commits

...

3 Commits

Author SHA1 Message Date
b470f1cf43 custom-iperf: init of script 2025-07-14 11:53:19 +02:00
155696c12f init.vim: disabled F1 for copilot
It will enable TAB key
2025-07-08 21:24:36 +02:00
4dddd17132 karabinier: upadate configuration file 2025-07-08 21:23:01 +02:00
3 changed files with 35 additions and 3 deletions

View File

@@ -371,7 +371,17 @@
"is_keyboard": true,
"product_id": 785,
"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": {

View File

@@ -357,8 +357,8 @@ set updatetime=250
autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false, scope="cursor"})
" CoPilot
imap <silent><script><expr> <F1> copilot#Accept("\<CR>")
let g:copilot_no_tab_map = v:true
" imap <silent><script><expr> <F1> copilot#Accept("\<CR>")
" let g:copilot_no_tab_map = v:true
" Neoformat
let g:neoformat_try_formatprg = 1

22
.local/bin/custom-iperf Executable file
View 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"