Skip to content

Instantly share code, notes, and snippets.

View DanLipsitt's full-sized avatar

Dan Lipsitt DanLipsitt

  • Tempo Automation
  • United States
View GitHub Profile
@DanLipsitt
DanLipsitt / b64field.py
Created December 3, 2011 00:33 — forked from klipstein/b64field.py
Base64 file handling for django-tastypie
import base64
import os
from tastypie.fields import FileField
from django.core.files.uploadedfile import SimpleUploadedFile
class Base64FileField(FileField):
"""
A django-tastypie field for handling file-uploads through raw post data.
It uses base64 for en-/decoding the contents of the file.
Usage:
@DanLipsitt
DanLipsitt / Vagrantfile
Created March 1, 2012 01:46 — forked from nathany/Vagrantfile
Vagrant Fabric experiment
Vagrant::Config.run do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "debian_squeeze_32"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
config.vm.box_url = "http://mathie-vagrant-boxes.s3.amazonaws.com/debian_squeeze_32.box"
# Assign this VM to a host only network IP, allowing you to access it via the IP.
config.vm.network "33.33.33.10"
@DanLipsitt
DanLipsitt / brew_install_output.txt
Last active December 20, 2015 00:29
homebrew gtkglmm install failure on mac os 10.8
==> Downloading http://downloads.sourceforge.net/gtkglext/gtkglextmm-1.2.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/gtkglextmm-1.2.0.tar.gz
tar xf /Library/Caches/Homebrew/gtkglextmm-1.2.0.tar.gz
==> Downloading patches
/usr/bin/curl -f#LA Homebrew 0.9.4 (Ruby 1.8.7-358; Mac OS X 10.8.4) https://trac.macports.org/export/89836/trunk/dports/devel/gtkglextmm/files/patch-gtkglext_gtkmm_gl-widget.cc.diff -o 000-homebrew.diff --silent
==> Patching
/usr/bin/patch -f -p0 -i 000-homebrew.diff
patching file gtkglext/gtkmm/gl/widget.cc
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/gtkglextmm/1.2.0
./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/gtkglextmm/1.2.0