Skip to content

Instantly share code, notes, and snippets.

Chris Heisel cmheisel

Block or report user

Report or block cmheisel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cmheisel /
Last active Apr 27, 2017
Web site comparisons
set -eou pipefail
cd /home/cmheisel/webapps/isittikiseason_static/mc
DATE=`date +%Y-%m-%d_%H-%M-%S`

Keybase proof

I hereby claim:

  • I am cmheisel on github.
  • I am cmheisel ( on keybase.
  • I have a public key ASClAefRMZpDBlMrz39bapcQJ1yfaxzR8MqI8d3RjNkbXgo

To claim this, I am signing this object:

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
import django
except ImportError, e:
View .gitconfig
helper = osxkeychain
cmheisel / .profile
Created Jan 14, 2015
Docker cleanup commands
View .profile
# Kill exited containers and orphaned images, the kind, gentle way
alias dockercleancontainers="docker rm \$(docker ps -a --no-trunc | grep 'Exit' | awk '{print \$1}')"
alias dockercleanimages='docker rmi $(docker images -f dangling=true -q)'
alias dockerclean='dockercleancontainers && dockercleanimages'
# Kill all containers and all images with impunity. Dust off and nuke the site from orbit... only way to be sure
alias rmcont='docker rm $(docker ps -a -q)'
alias rmis='docker rmi -f $(docker images -a -q)'
View django-environ.traceback.txt
Traceback (most recent call last):
File "./", line 10, in <module>
File "/venv/local/lib/python2.7/site-packages/django/core/management/", line 385, in execute_from_command_line
File "/venv/local/lib/python2.7/site-packages/django/core/management/", line 345, in execute
File "/venv/local/lib/python2.7/site-packages/django/conf/", line 46, in __getattr__
File "/venv/local/lib/python2.7/site-packages/django/conf/", line 42, in _setup
cmheisel / Berksfile
Last active Mar 5, 2018
OpsWorks Docker image-based deployment
View Berksfile
source ""
cookbook "apt", '~>2.6.0'
cookbook 'docker', '~> 0.36.0'
cookbook 'windows', '~> 1.34.0'
View Preferences.sublime-settings
"bold_folder_labels": true,
"caret_style": "solid",
"color_scheme": "Packages/Monokai Extended/Monokai Extended.tmTheme",
"ensure_newline_at_eof_on_save": true,
cmheisel /
Last active Feb 23, 2016
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.
View treklinks.html
You can’t perform that action at this time.