This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
xbps-alternatives -g sh -s dash | |
xbps-install -Syu #update repo and base | |
#vbox | |
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/ | |
depmod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ping -c 3 www.google.com | |
gdisk /dev/sda | |
mkfs.vfat -F32 /dev/sda1 | |
mkfs.ext4 /dev/sda2 | |
mkfs.ext4 /dev/sda3 | |
mount /dev/sda2 /mnt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get upgrade | |
# Install System Packages | |
echo "Installing System Base Packages" | |
sudo apt-get install -y vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Exclude files that don't need to be on the server | |
# Used by rsync when deploying code to the server | |
.excludes | |
.git | |
.gitignore | |
log/ | |
tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |