Adam Lamers

Senior Software Engineer specializing in Security, Compliance, and Identity at scale.

Recent Writing

All posts →

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.

Execute .sql file with PyMySQL

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.

Bash Locate (flocate)

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.