TIL is my collection of small, daily learnings. Each entry is brief, technical, and lightly edited.
Unpacking MessagePack
SALT messages are encoded with a library called msgpack
, the Python implementation
of MessagePack. How can we read them?
Directories Ending in .d
Today I learned about why directories in a project might have names ending in ‘dot d’, such as minion.d/
.
Python String Interpolation
Python string interpolation is available via few of interfaces, as Chris at Hashrocket taught me.
Light Bulb Series Encoding
I needed to replace an “A19” light bulb. What does “A19” mean?
Vim Jump to Previous Occurrence
In Vim Normal mode, *
searches forward for the next occurrence of word. But what goes back?
Print Python Function Definition With Getsource
If I’ve defined a function in the Python REPL, I can read its definition with
inspect.getsource
.
Python REPL Help
In the Python REPL, the help
function provides a help message about its argument.
Kill MacOS Processes by Name
I have a cron job that opens a program every day at a certain time. How can I also close it with a cron job?
pbcopy, no cat
My friend Josh recently wrote about a common mistake using pbcopy
, Apple’s pasteboard utility.