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
#!/bin/sh | |
GIT_WORK_TREE=/var/www/simplicity.io | |
export GIT_WORK_TREE | |
git checkout -f | |
forever stop 0 | |
NODE_ENV=production forever start /var/www/simplicity.io/app.js |
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
In terminal type: | |
adb forward tcp:9222 localabstract:chrome_devtools_remote | |
Open desktop Chrome and navigate to: | |
localhost:9222 | |
https://developers.google.com/chrome-developer-tools/docs/remote-debugging |
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
# ZSH Theme emulating the Fish shell's default prompt. | |
function prompt_char { | |
git branch >/dev/null 2>/dev/null && echo '±' && return | |
hg root >/dev/null 2>/dev/null && echo '☿' && return | |
echo ':' | |
#echo '○' | |
} | |
local user_color='magenta'; [ $UID -eq 0 ] && user_color='red' |
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"> | |
<plist version="1.0"> | |
<dict> | |
<key>author</key> | |
<string>Vincent Mac</string> | |
<key>name</key> | |
<string>enlightened</string> | |
<key>settings</key> | |
<array> |
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
{ | |
"inputs":"goog", | |
"query":[ | |
{"map":{ | |
"language":"javascript", | |
"source": | |
"function(value, keyData, arg) { | |
var data = Riak.mapValuesJson(value)[0]; | |
var month = value.key.split('-').slice(0,2).join('-'); | |
var volume = data.Volume; |
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
Show hidden characters
{ | |
"draw_white_space": "all", | |
"draw_indent_guides": true, | |
"indent_guide_options": ["draw_normal", "draw_active"], | |
// "font_face": "Inconsolata", | |
// "font_size": 14, | |
"font_face": "DejaVu Sans Mono", | |
"font_size": 12, | |
"highlight_line": true, | |
"ignored_packages": |
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
#! bash | |
# cli for loop to start riak dev cluster | |
for i in {1..4}; do dev$i/bin/riak start; done |
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
// models.user.js | |
// User Model Tests | |
// Chai Assertion Library | |
var chai = require('chai') | |
, expect = chai.expect | |
, should = chai.should() | |
, User = require('../models/user'); | |
chai.Assertion.includeStack = true; // defaults to false |
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
/*! | |
* user.js | |
* User Model using Riak as a datastore | |
*/ | |
/** | |
* Model dependencies | |
*/ | |
var db = require('riak-js').getClient({debug: true, port:8091, api: 'http'}); |
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
#!/bin/sh | |
# Vincent Mac | |
# Simple start/stop script for launching Riak Cluster for local development or fast track | |
# After building your dev environment using `make devrel`, place this script in the `dev` folder | |
# Identify the script name | |
SCRIPT=`basename $0` | |
case "$1" in | |
start) |
OlderNewer