Skip to content

Instantly share code, notes, and snippets.

Vim

Description Command
Delete a word in terminal mode C-W .
Paste in terminal mode C-W ""
Terminal normal mode C-W N
Last inserted register .
Go to the last edited location `.
Go to the previous edited location g;
Go to the next edited location g,

convert .svg files to .png/.emf files

inkscape figure.svg --export-filename figure.emf
# execute following 2 lines
sudo nvidia-xconfig --enable-all-gpus
sudo nvidia-xconfig --cool-bits=4
# append following to ~/.profile
# set GPU fan speed
nvidia-settings -a "[gpu:0]/GPUFanControlState=1"
nvidia-settings -a "[fan:0]/GPUTargetFanSpeed=100"
nvidia-settings -a "[fan:1]/GPUTargetFanSpeed=100"

yolov4

yolov4 tiny

Push gdbserver if there isn't

adb push path_to_gdbserver /data/local/tmp/gdbserver
run-as package_name mkdir -p /data/data/package_name/gdb/bin
cat /data/local/tmp/gdbserver | run-as package_name sh -c 'cat > /data/data/package_name/gdb/bin/gdbserver'
run-as package_name chmod 700 /data/data/package_name/gdb/bin/gdbserver

Run app manually on device