Skip to content

Instantly share code, notes, and snippets.

@2E0PGS
2E0PGS / linux-usb-file-copy-fix.md
Last active May 11, 2024 06:48
Fix Ubuntu and other Linux slow/hanging file copying via USB.

If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:

echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes

I suggest you edit your /etc/rc.local file to make this change persistant across reboots.

sudo nano /etc/rc.local

@Fitzsimmons
Fitzsimmons / sublime-keymap.json
Created April 28, 2020 02:59
Remap sublime vintage mode to ijkl
{ "keys": ["h"], "command": "enter_insert_mode", "context": [{"key": "setting.command_mode"}] },
{ "keys": ["insert"], "command": "enter_insert_mode", "context": [{"key": "setting.command_mode"}] },
{ "keys": ["H"], "command": "enter_insert_mode", "args":
{"insert_command": "vi_move_to_first_non_white_space_character"},
"context": [{"key": "setting.command_mode"}]
},
{ "keys": ["l"], "command": "set_motion", "args": {
"motion": "vi_move_by_characters_in_line",