Skip to content

Instantly share code, notes, and snippets.

@erbriones
erbriones / ubuntu-packages.txt
Last active May 27, 2016 01:23
Setup ubuntu environment
ctags
curl
emacs
gawk
git
git-svn
heroku-toolbelt
libunwind8
libxml2-utils
maven
@erbriones
erbriones / query.py
Last active August 29, 2015 14:22
Django create query to match a collection of names in a case insensitive way
import operator
from django.db import models
def name_matches(names, model):
queries = [models.Q(name__iequal=name for name in names)]
filters = reduce(operator.or_, queries, models.Q())
return model.objects.filter(filters)

Keybase proof

I hereby claim:

  • I am erbriones on github.
  • I am erbriones (https://keybase.io/erbriones) on keybase.
  • I have a public key whose fingerprint is F576 0BBB 0794 11BB 6DB2 F724 878B CDA4 5263 AE94

To claim this, I am signing this object: