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 && apt-get install git-core curl build-essential openssl libssl-dev | |
git clone https://github.com/joyent/node.git | |
cd node | |
# 'git tag' shows all available versions: select the latest stable. | |
git checkout enter-a-version | |
# Configure seems not to find libssl by default so we give it an explicit pointer. | |
# Optionally: you can isolate node by adding --prefix=/opt/node |
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
var fs = require('fs'); | |
var mkdirp = require('mkdirp'); | |
exports.writer = function(req, body){ | |
if (req.originalUrl !== '/'){ | |
var destination = './dist'+req.originalUrl+'/index.html'; | |
}else { | |
var destination = './dist'+req.originalUrl+'index.html'; | |
} |
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
# Apache Configuration File | |
# (!) Using `.htaccess` files slows down Apache, therefore, if you have access | |
# to the main server config file (usually called `httpd.conf`), you should add | |
# this logic there: http://httpd.apache.org/docs/current/howto/htaccess.html. | |
# ############################################################################## | |
# # CROSS-ORIGIN RESOURCE SHARING (CORS) # | |
# ############################################################################## |
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
// Generated on 2013-08-04 using generator-webapp 0.2.6 | |
'use strict'; | |
var LIVERELOAD_PORT = 35729; | |
var lrSnippet = require('connect-livereload')({port: LIVERELOAD_PORT}); | |
var mountFolder = function (connect, dir) { | |
return connect.static(require('path').resolve(dir)); | |
}; | |
// # Globbing | |
// for performance reasons we're only matching one level down: |
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
/** | |
* Shamelessly ripped from https://github.com/aramkocharyan/CSSJSON/blob/master/cssjson.js | |
* just to convert CSS to JSON for testing | |
*/ | |
var CSSJSON = new function () { | |
var base = this; | |
base.init = function () { | |
String.prototype.trim = function () {return this.replace(/^\s+|\s+$/g, '');}; | |
String.prototype.repeat = function (n) {return new Array(1 + n).join(this);}; | |
}; |
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
# --------------------------better bash promt-----------------------------------# | |
# @gf3’s Sexy Bash Prompt, inspired by “Extravagant Zsh Prompt” | |
# Shamelessly copied from https://github.com/gf3/dotfiles | |
default_username='rtorr' | |
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then | |
export TERM=gnome-256color | |
elif infocmp xterm-256color >/dev/null 2>&1; then |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<!-- | |
====================================================================== | |
A Thing | |
A Sublime Text 2 / Textmate theme. | |
2013 Richard Torruellas (http://rtorruellas.com) | |
Released under the MIT License <http://opensource.org/licenses/MIT> | |
https://gist.github.com/rtorr/5499177 | |
====================================================================== |
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
# for mac keyboard layout (to update run xmodmap ~/.Xmodmap) | |
clear control | |
clear mod4 | |
keycode 105 = | |
keycode 206 = | |
keycode 133 = Control_L NoSymbol Control_L | |
keycode 134 = Control_R NoSymbol Control_R | |
keycode 37 = Super_L NoSymbol Super_L |
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
clear control | |
clear mod4 | |
keycode 105 = | |
keycode 206 = | |
keycode 133 = Control_L NoSymbol Control_L | |
keycode 134 = Control_R NoSymbol Control_R | |
keycode 37 = Super_L NoSymbol Super_L |
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
# Tools for android | |
export PATH=${PATH}:~/android-sdk-macosx/tools | |
alias lsd='/Users/rtorruellas/android-sdk-macosx/platform-tools/adb devices' | |
alias logd='/Users/rtorruellas/android-sdk-macosx/platform-tools/adb logcat' | |
alias rund='mvn clean install android:deploy' |