Skip to content

Instantly share code, notes, and snippets.

View limeyd's full-sized avatar

Darren Pearce limeyd

View GitHub Profile
#! /bin/bash
xbps-alternatives -g sh -s dash
xbps-install -Syu #update repo and base
xbps-install -Sy xorg-minimal xorg-apps xorg-fonts xterm bash-completion libEGL dbus virtualbox-ose-guest i3-gaps i3status
ln -sf /etc/sv/dbus /var/service/
ln -sf /etc/sv/vboxservice /var/service/
limeyd / ASI
Last active August 29, 2015 14:18
Arch Simple Install
ping -c 3
gdisk /dev/sda
mkfs.vfat -F32 /dev/sda1
mkfs.ext4 /dev/sda2
mkfs.ext4 /dev/sda3
mount /dev/sda2 /mnt
limeyd / basic
Last active August 29, 2015 14:00
Ubuntu Basic Server Prov
sudo apt-get update
sudo apt-get upgrade
# Install System Packages
echo "Installing System Base Packages"
sudo apt-get install -y vim
limeyd /
Created October 16, 2013 03:52
py: tastypie-pretty-json-serializer
class PrettyJSONSerializer(Serializer):
json_indent = 2
def to_json(self, data, options=None):
options = options or {}
data = self.to_simple(data, options)
return simplejson.dumps(data, cls=json.DjangoJSONEncoder,
sort_keys=True, ensure_ascii=False, indent=self.json_indent)
limeyd / .excludes
Last active January 17, 2017 18:20 — forked from dwayne/.excludes
Webfaction setup
# Exclude files that don't need to be on the server
# Used by rsync when deploying code to the server
limeyd / gist:3356221
Created August 15, 2012 05:15
Meteor injected Models
Model = function(attrs) {
attrs = attrs || {};
_.extend(this, attrs);
_raw_attr_keys = _.keys(attrs);
this.errors = {};
Model.bind = function(model, collectionName){
var pt = new Model({});
_.extend(pt, model.prototype);