Skip to content

Instantly share code, notes, and snippets.

@cmheisel
cmheisel / domains.txt
Created March 23, 2014 00:46
3/22 pagegen peek
345 - www.ajc.com
165 - www.statesman.com
156 - www.clarkhoward.com
102 - www.palmbeachpost.com
98 - www.wsoctv.com
97 - www.daytondailynews.com
72 - www.kirotv.com
64 - www.wftv.com
63 - www.accessatlanta.com
62 - www.wpxi.com

Keybase proof

I hereby claim:

  • I am cmheisel on github.
  • I am cmheisel (https://keybase.io/cmheisel) on keybase.
  • I have a public key ASClAefRMZpDBlMrz39bapcQJ1yfaxzR8MqI8d3RjNkbXgo

To claim this, I am signing this object:

@cmheisel
cmheisel / Berksfile
Last active March 5, 2018 21:50
OpsWorks Docker image-based deployment
source "https://supermarket.getchef.com"
metadata
cookbook "apt", '~>2.6.0'
cookbook 'docker', '~> 0.36.0'
cookbook 'windows', '~> 1.34.0'
@cmheisel
cmheisel / jobs.sh
Last active April 27, 2017 23:19
Web site comparisons
#!/bin/bash
set -eou pipefail
cd /home/cmheisel/webapps/isittikiseason_static/mc
URL="https://mailchimp.com/about/jobs/all/"
DATADIR="./data"
DIFFDIR="./diffs"
DATE=`date +%Y-%m-%d_%H-%M-%S`
@cmheisel
cmheisel / instructions.md
Last active February 23, 2016 19:54
Kabbage Code Sample

User story

As a Kabbage developer, I want to see how you code a lightweight application, so that I can get a feel for your skills and strengths.

Acceptance Criteria:

  1. Given a user, when they access your application, then they should be presented with a search box prompting them for a topic
  2. Given a user, when they enter a topic, results from Twitter should be returned
  3. Given a user, when they enter a topic, results from Wikipedia should be returned
  4. Given a user who's performed a search, when they hit the browser's refresh button, results should be refreshed under the same search criteria.
@cmheisel
cmheisel / getkanban-session-comparison.rst
Last active December 21, 2015 23:38
Physical vs. Virtual getKanban game thoughts

I've experienced the getKanban physical board game as a trainee, and recently had a chance to lead some coworkers through the game using the virtual version. Here are some thoughts on the differences in no particular order.

  • Being able to project the virtual game on a wall, helped engage the whole room. The physical board limits you to a certain group size (or you risk folks on the periphery disengaging)
  • Seemed to get the same level of engagement, caring, and excitement at shipping features between both versions
  • It's harder to get folks engaged as PMs and accountants since the software does the CFD, Cycle time and Revenue charts for you
  • It's harder to explain/show folks what a CFD is if you're not showing them how to manually create one each simulated day
@cmheisel
cmheisel / hp01checker.py
Last active December 16, 2015 17:50
Check for HP01, log if it appears more than it should (twice)
import time
import datetime
import random
import requests
sites_to_check = {
"http://www.daytondailynews.com/": dict(hit=0, miss=0),
"http://www.oxfordpress.com/": dict(hit=0, miss=0),
"http://www.springfieldnewssun.com/": dict(hit=0, miss=0),
@cmheisel
cmheisel / Vagrantfile
Created January 26, 2013 14:37
Don't want your project's .vagrant file sync'd via Dropbox? Do something like this.
Vagrant::Config.run do |config|
# Setup the box
config.vagrant.dotfile_name = File.expand_path("~/.vagrant-PROJECTNAMEHERE")
end
@cmheisel
cmheisel / travsci.py
Created October 20, 2012 00:41
Check build status with travis before deploying
def ci(branch):
import requests, json, time
r = requests.get('http://travis-ci.org/%s/%s/builds.json' % (USERNAME, REPO))
assert r.status_code == 200
assert 'json' in r.headers['content-type']
data = json.loads(r.read())
builds_by_branch = {}
for build in data:
builds_for_branch = builds_by_branch.get(build['branch'], [])
import sys
import pprint
# This formats the path into a nicely readable string
readable_path = pprint.pformat(sys.path)
# We'll try importing and catch the exception if it doesn't work
try:
import django
except ImportError, e: