Reading Environment Variables in Python
Environment variables are key-value pairs set outside of your script to manage configurations for different environments or to store sensitive data like API keys.
Deep dives into software architecture, infrastructure, and tools I've built or discovered over the years.
Environment variables are key-value pairs set outside of your script to manage configurations for different environments or to store sensitive data like API keys.
Most SQL files contain interpreter commands such as DELIMITER that make passing the commands through to pymysql somewhat difficult, this code snippet allows you to separate out the statements in the sql file into a list for sequential execution.
A fast locate-like tool that you can carry with you in your dotfiles, that only uses basic binaries available on most systems. Searches through a compressed database of file locations on your hard drive.
I've been looking at walls of JSON for the last few days, and realized that I really shouldn't be doing that. So I made a script that will continuously indent and output a stream of JSON data formatted and indented properly.
A trick to quickly replace Python code (or anything you can pipe to an external command) with its output in Vim using visual mode and external commands.
Many of these posts were rescued from the archives of my original blog. Follow me on GitHub for the source code to these experiments.