ubergarm

sui generis, linux, python, devops, robotics, polyamory, data custodian

Nginx Reverse Proxy

2015-12-12 devops ubergarm
There’s more than one way to configure a server: some are complex, some simple, some static, and some dynamic. I’ve definitely become a fan of using nginx to reverse proxy Docker containers to a specified subdomain e.g. container.yourdomain.com. I spent a lot of time in the past tweaking nginx rewrite rules to give a dynamic feel while keeping the simplicity of a static config file. I recently discovered jwilder’s versitile docker-gen which listens on the Docker sock and updates config files based on the Go text/template language. Continue reading

Visualizing python dataframes in jupyter notebook with Altair

2015-12-12 data science ubergarm
Finally, an easy way to turn Pandas DataFrames into sorted bar charts using brewer color schemes! It took a little playing around and it isn’t quite perfect yet, but here is a quick example of how to turn a Series or DataFrame into a lovely sorted stacked bar chart. References altair palettable jupyter notebook Run Jupyter Container Running as root allows you to !pip install or !apt-get install dependencies. Continue reading

Suckless Terminal

2015-11-12 linux ubergarm
I want pretty colors and fonts in neovim suckless simple terminal st provides true color support out of the box and with argbbg patch to support transparent backgrounds through compton and scrollback it makes a fine replacement for rxvt-unicode (while there is a patch, it seems 256 colors out of the box may remain standard). Clone and Patch Clone mkdir suckless && cd suckless git clone http://git.suckless.org/st cd st Apply argbbg patch Continue reading

The Nelson County Fortune's Cove Hum

2015-06-12 sui generis ubergarm
How It Starts “Do you hear that? That noise… Kind of like a diesel truck running off in the distance… Maybe the neighbors are mowing with their tractor?” “Wait be quiet. Hrmm. No… Wait, you mean the fridge that just came on?” “No… That’s strange you can’t hear it. I’ll google to see if there is a factory nearby or something. Huh, apparently its all over the world and known as ‘The Hum’. Continue reading

10 Nim One Liners to Impress Your Friends

2015-03-28 code ubergarm
My friend sent me the 10 Swift One Liners (referenced at the bottom) which inspired me to try it out in Nim! Like many Electrical Engineers, I cut my programming teeth on “low level” languages like standard ANSI C w/ GCC compiler, x86 assembly, Motorola HC11/HC12 assembly, and even a little GW/QBASIC! But fast forward a few years and projects start requiring GUIs, communication involving marshalling data into a specified format and HTTP requests, and project teams consisting of more than one person touching the code base. Continue reading
Newer posts