- Software update
- Setup XCode
- Install Oh-my-ZSH
curl -L http://install.ohmyz.sh | sh
- Generate SSH keys
- Install Dotfiles
| module.exports = { | |
| root: true, | |
| parser: 'babel-eslint', | |
| parserOptions: { | |
| sourceType: 'module' | |
| }, | |
| extends: 'standard', | |
| plugins: [ | |
| 'html' | |
| ], |
| #!/usr/bin/python | |
| import sys | |
| from urllib2 import urlopen | |
| from ConfigParser import ConfigParser | |
| from StringIO import StringIO | |
| stations = { | |
| 'radio1': '57286085', | |
| 'radio2': '57286086', |
| <?php | |
| $hash = hash_pbkdf2('sha256', 'example', 'some salt', 100000); | |
| echo $hash; | |
| ?> |
| sudo /usr/libexec/PlistBuddy -c "Add :ProgramArguments: string --no-namechange" /System/Library/LaunchDaemons/com.apple.discoveryd.plist |
curl -L http://install.ohmyz.sh | sh
| #!/bin/bash | |
| $HOME/webapps/mongo_db/bin/stop | |
| sleep 4 | |
| $HOME/webapps/mongo_db/bin/start |
| #!/bin/sh | |
| PREFIX=$HOME/webapps/mongo_db | |
| kill -2 `cat $PREFIX/data/mongod.lock` |
| #!/bin/sh | |
| PREFIX=$HOME/webapps/mongo_db | |
| $PREFIX/mongodb-linux-x86_64-2.6.3/bin/mongod --auth --dbpath $PREFIX/data/ --port <some port> --fork --logpath=$HOME/logs/user/mongod.log |
| from PIL import Image, ImageOps | |
| import requests | |
| class Tiler(object): | |
| def __init__(self, images, rows=4, tile_size=(135, 135)): | |
| self.images = images | |
| self.rows = rows | |
| self.tile_size = tile_size |
| """Utility to clear our unused Django CMS placeholder data from database""" | |
| # Nick Snell <[email protected]> | |
| # WARNING; IS A DISTRUCTIVE OPERATION (Obviously.) | |
| from django.template import TemplateDoesNotExist | |
| from cms.models.pagemodel import Page | |
| from cms.utils.plugins import get_placeholders |