Skip to content

Instantly share code, notes, and snippets.

@csswizardry
csswizardry / new-project
Created November 6, 2012 16:32
Create a full new project out of my vanilla and inuit.css projects
#!/bin/bash
# Add `new-project` to your PATH.
# To create a new project in a directory called `foo`:
# $ new-project foo
git clone git@github.com:csswizardry/vanilla.git $1
cd $1
rm -rf .git
rm -rf css
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@markjames
markjames / Page.php
Created December 1, 2011 15:35
Silverstripe Snippets
<?php
// A new page type
class Page extends SiteTree {
static $icon = array('/site/icons/page.png?','file');
// Or if you have icons in multiple states:
// static $icon = '/site/icons/page';
// Allowed child types
@markjames
markjames / git.sh
Created September 1, 2011 10:04
Going git
# The following commands
# need to be run once to set-up git
# Install git (you may have this already, type git then hit [ENTER] in Terminal to check)
cd ~/Downloads && curl -OL "http://git-osx-installer.googlecode.com/files/git-1.7.6-x86_64-snow-leopard.dmg" && open ~/Downloads/git-1.7.6-x86_64-snow-leopard.dmg
# Start a new Terminal window
# I don't have a command for this one
# Install the Git Flow extension