Code + Product

Using iptables to open a port on CentOS

Jul 25th, 2016 in Servers and Scaling

A quick look at using iptables to manage a simple firewall and enable restricted public access to your server.

Creating lists of CSS selectors with SASS

Jun 21st, 2016 in Tools

I like to use CSS selectors like .margin-top-10, .padding-right-20, etc to quickly style a new page. Here's how I create them in SASS.

Resolving alembic merge branch conflicts

May 23rd, 2016 in Python

How to fix alembic's "Multiple head revisions are present for given argument 'head'" error.

Automated server deployments with Ansible

Apr 18th, 2016 in Servers and Scaling

Guide to automating server deployments with Ansible playbooks, with example files.

Sending log files to Logstash with Elastic's Filebeat

Mar 8th, 2016 in Servers and Scaling

Centralize your logging by using Filebeat to send log files to Logstash.

Using Python's Watchdog to monitor changes to a directory

Feb 22nd, 2016 in PythonServers and Scaling

A small Python script to take action whenever a new file is uploaded to a directory or its contents change.

Data Pipelines - Airflow vs Pinball vs Luigi

Jan 12th, 2016 in PythonServers and Scaling

Review of 3 common Python-based data pipeline / workflow frameworks from AirBnb, Pinterest, and Spotify.

Bash script to monitor instances and MySQL

Nov 11th, 2015 in Servers and ScalingBashMySQL

A simple Bash script to check multiple server instances are responding, and rows are being added to a MySQL database.

Line-by-line code profiling in Python

Oct 1st, 2015 in Python

How to find slow sections in your Python code.

Understanding Time, DateTime, and timezones in Rails

Sep 13th, 2015 in Ruby on Rails

My notes on using RoR for formatting times and datetimes to strings, and parsing strings to time objects.