This file contains hidden or 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
module.exports = function (files) { | |
var args = files && files.length > 0 ? files : ["."], | |
spawn = require('child_process').spawn, | |
cmd = spawn("jshint", args.concat(["--config .jshintrc", "--show-non-errors"])); | |
function write(data) { | |
process.stdout.write(new Buffer(data).toString("utf-8")); | |
} | |
cmd.stdout.on('data', write); |
This file contains hidden or 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
// This is a broken Jakefile to build epiceditor | |
var fs = require('fs') | |
, path = require('path') | |
, spawn = require('child_process').spawn | |
, exec = require('child_process').exec | |
, epicAscii = '' + | |
' \n' + | |
' ______ _ ______ ___ __ \n' + | |
' / ____/___ (_)____/ ____/___/ (_) /_____ _____ \n' + |
This file contains hidden or 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
sudo apt-get install mysql-server-5.1 |
This file contains hidden or 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
$ wget http://redis.googlecode.com/files/redis-2.4.8.tar.gz | |
$ tar xzf redis-2.4.8.tar.gz | |
$ cd redis-2.4.8 | |
$ make | |
# Start the server | |
$ src/redis-server |
This file contains hidden or 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
$ cd | |
$ git clone git://github.com/sstephenson/rbenv.git .rbenv | |
# Add the following to your .bashrc | |
export PATH="$HOME/.rbenv/bin:$PATH" | |
eval "$(rbenv init -)" | |
# Install ruby-build | |
$ mkdir -p ~/.rbenv/plugins | |
$ cd ~/.rbenv/plugins |
This file contains hidden or 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
function git_branch_name { | |
val=`git branch 2>/dev/null | grep '^*' | colrm 1 2` | |
echo "$val" | |
} | |
function parse_git_branch { | |
val=`git_branch_name | sed 's_\(.*\)_(\1)_'` | |
echo "$val" | |
} |
This file contains hidden or 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
git clone git://github.com/antirez/redis.git && cd redis | |
git checkout v2.0.4-stable | |
sudo make install |
This file contains hidden or 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
$ sudo apt-get update | |
$ sudo apt-get install git-core curl build-essential openssl libssl-dev | |
# node | |
$ git clone git://github.com/joyent/node.git && cd node | |
$ git checkout v0.6.17 | |
$ ./configure | |
$ make | |
$ sudo make install |
This file contains hidden or 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
# [email protected] OK: | |
jmd@mba ~/projects/test $ npm install [email protected] | |
npm http GET https://registry.npmjs.org/vows/0.6.0 | |
npm http 304 https://registry.npmjs.org/vows/0.6.0 | |
npm http GET https://registry.npmjs.org/eyes | |
npm http 304 https://registry.npmjs.org/eyes | |
npm WARN [email protected] dependencies field should be hash of <name>:<version-range> pairs | |
[email protected] ./node_modules/vows | |
└── [email protected] |
This file contains hidden or 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
~/code/test/ $ which flatiron | |
/usr/local/bin/flatiron | |
~/code/test/ $ flatiron create testApp | |
help: flatiron | |
help: | |
help: create - Creates an empty template for a flatiron application | |
help: | |
help: |