Skip to content

Instantly share code, notes, and snippets.

View dfinninger's full-sized avatar

Devon Finninger dfinninger

View GitHub Profile
@dfinninger
dfinninger / models.py
Last active August 30, 2018 06:11
Django Generic Views
from django.db import models
from django.urls import reverse
class Server(models.Model):
name = models.CharField(max_length=128)
ip = models.CharField(max_length=16)
rack = models.CharField(max_length=32)
hall = models.CharField(max_length=32)
@dfinninger
dfinninger / keybase.md
Created January 8, 2017 01:33
keybase.md

Keybase proof

I hereby claim:

  • I am dfinninger on github.
  • I am dfinninger (https://keybase.io/dfinninger) on keybase.
  • I have a public key whose fingerprint is 5267 B233 1FF5 B63B 94A8 BC5E 37AB 802D 7F1C 02D0

To claim this, I am signing this object:

@dfinninger
dfinninger / ruby or prolog?
Created December 31, 2014 18:49
Get a method chain long enough in Ruby and it starts to look like prolog...
Array.new.
concat(included_module_names).
concat(external_module_names).
uniq.sort
@dfinninger
dfinninger / install-completion.bash
Created October 31, 2014 17:12
Install homebrew bash-completion
# This installs homebrew shell completion
brew install bash-completion
cat <<STUFF >> ~/.profile
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
STUFF