Skip to content

Instantly share code, notes, and snippets.

View sfaleron's full-sized avatar
:electron:
Figuring it out as I go

Chris Fuller sfaleron

:electron:
Figuring it out as I go
View GitHub Profile
@sfaleron
sfaleron / hexdump.format
Created September 24, 2015 23:33
Hexdump formatting inspired by old DOS DEBUG command
"%04_ax "
2/1 "%02x" " " 2/1 "%02x" " " 2/1 "%02x" " " 2/1 "%02x" "-" 2/1 "%02x" " " 2/1 "%02x" " " 2/1 "%02x" " " 2/1 "%02x"
" |"
16/ "%_p"
"|\n"
@sfaleron
sfaleron / mydirs.py
Last active December 1, 2017 22:22
Quickly access directories from anywhere, with a shell function and Python script
from __future__ import print_function
# The definitions are in the file "mydirs.dat" which is in the same directory
# as this file. Lines of this file may be blank or a label/directory pair,
# colon delimited. These can contain just about anything that doesn't confuse
# the shell, except colons and newlines, of course.
# Into your .bashrc, .profile, .zshrc, or whatever:
# cd_()