Debugging Multi-File Projects with GDB
Use b file_name:line_number to debug:
1 | (gdb) break [<file-name>:]<line-num> |
A Simple Python HTTP File Server
Create an http server with
Python; it can serve as a simple downloader
1 | # First switch to the directory where the files live |
Then you can download directly with wget or aria2, e.g.
1 | > wget http://139.129.8.126:8000/lineage-15.0-20171004-BETA-3.0-oneplus2.zip |
Using Tmux
- A simple tmux setup (vi key bindings)
See the gist
- Nested tmux: add this setting
1 | bind-key b send-prefix |
In the second level, Ctrl-b b enters command mode.
- tmux session saving
xscast
- A powerful terminal screenshot tool that can display keystrokes — friendly for viewers

Also, in its config
kfinish, i.e.Ctrl-Insert, means finishing the screenshot. Believe it or not, the README doesn’t even say how to quit.
1 | # file location ~/.xscastrc |
Text to ASCII
- Text to ASCII Art Generator
1 | ___________ _________ __ .__ .__ |
Jumping Back from Vim Help
- When using vim we often consult the help docs, but after opening a link in the docs we don’t know how to jump back
1 | Jump to a subject: Position the cursor on a tag (e.g. bars) and hit CTRL-]. |
CTRL-] jumps forward; CTRL-O/CTRL-T jump back.