Skip to content

Instantly share code, notes, and snippets.

View krax1337's full-sized avatar
🏠
Working from home

Asanali krax1337

🏠
Working from home
View GitHub Profile
{"name":"krax1337","settings":"{\"settings\":\"{\\n \\\"workbench.iconTheme\\\": \\\"vscode-icons\\\",\\n \\\"workbench.editorAssociations\\\": {\\n \\\"*.ipynb\\\": \\\"jupyter-notebook\\\",\\n \\\"*.pdf\\\": \\\"latex-workshop-pdf-hook\\\"\\n },\\n \\\"explorer.confirmDelete\\\": false,\\n \\\"security.workspace.trust.untrustedFiles\\\": \\\"open\\\",\\n \\\"editor.suggestSelection\\\": \\\"first\\\",\\n \\\"vsintellicode.modify.editor.suggestSelection\\\": \\\"automaticallyOverrodeDefaultValue\\\",\\n \\\"notebook.cellToolbarLocation\\\": {\\n \\\"default\\\": \\\"right\\\",\\n \\\"jupyter-notebook\\\": \\\"left\\\"\\n },\\n \\\"explorer.confirmDragAndDrop\\\": false,\\n \\\"git.confirmSync\\\": false,\\n \\\"git.autofetch\\\": true,\\n \\\"code-runner.runInTerminal\\\": true,\\n \\\"go.toolsManagement.autoUpdate\\\": true,\\n \\\"[vue]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n },\\n \\\
@krax1337
krax1337 / gist:b857a636877ae78934951b315ad4ac7e
Created April 2, 2025 13:32
Proxmox xterm.js resize fix
res() {
old=$(stty -g)
stty raw -echo min 0 time 5
printf '\0337\033[r\033[999;999H\033[6n\0338' > /dev/tty
IFS='[;R' read -r _ rows cols _ < /dev/tty
stty "$old"