Skip to content

Instantly share code, notes, and snippets.

View presstube's full-sized avatar

James Paterson presstube

View GitHub Profile
@presstube
presstube / gist:2332073
Created April 7, 2012 20:55
rakefile for bundling less/css fand javascript files
# This is a simple rakefile that compiles LESS to CSS, minifies CSS and javascript files using YUI
# compressor, and bundles them into a single file to speed up loading.
#
# The manifest files are just simple YAML blobs that describe how to build the bundles. All paths are
# relative to the CSS_DIR (or JS_DIR), depending on what kind of bundle you're creating. You can create
# as many bundles as you like.
#
# The format for the manifest files is:
#
# bundle
@presstube
presstube / hack.sh
Created March 31, 2012 15:24 — forked from erikh/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
#
@presstube
presstube / node-and-npm-in-30-seconds.sh
Created March 25, 2012 19:35 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl http://npmjs.org/install.sh | sh