I consider myself really lazy. So here’s my basic workflow of home-grown commands I go through whenever I work on a Python project. Some notes before I dive in: replace  $PROJECT with the name of your project. I keep a consistent name between projects so I can use the directory name for other things. some…

Read More Patterns: bootstrapping Python/SublimeText projects

With 12factor style environment configs, it’s a very easy to accidentally connect to your production database when you think you’re connecting to dev. Here’s a simple guard you can add to make sure your  DATABASE_URL isn’t somehow pointed to someplace it’s not supposed to (assuming you’re using Amazon AWS): bash: if [[ ${DATABASE_URL} == *”amazonaws”*…

Read More Patterns: don’t mess up the prod db!

Post thumbnail

When building high performance Django sites, keeping the number of queries down is essential. And just like controlling technical debt and maintaining test coverage, being successful means making monitoring queries a natural part of your workflow. If your momentum has to be stopped to examine database queries, you’re not going to do it. The solution…

Read More Check yo queries before you wreck yo site

I’ve been learning Ansible off and on and off for the past year. I have so many complaints, but I still think it’s the least worst provisioning system out there. It’s online at crccheck.github.io/fuckingansible/, but I’ve also embedded it below: I’d go more into Ansible, just just thinking about it make me so angry. So…

Read More Demo: Fuckin A

Post thumbnail

I’ve been interested in Ansible for a long time now, and thanks to my coworker’s expertise, I’ve been able to get my feet wet. My main barrier has been finding a way to run playbooks. For my first attempt at learning Ansible, I tried running it locally using `ansible_connection=local`. But I found that running it…

Read More Testing Ansibile Playbooks with Vagrant