This file contains 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
# remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# split panes using | and - | |
bind | split-window -h | |
bind - split-window -v | |
unbind '"' | |
unbind % |
This file contains 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
console.log('overriding biatch!') |
This file contains 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
andrepadez in ~/develop/vigour-io/directv-fl on master* | |
⚡ nodemon ../gaston/bin/gaston.js -w ../gaston/lib/ | |
13 May 20:27:21 - [nodemon] v1.3.7 | |
13 May 20:27:21 - [nodemon] to restart at any time, enter `rs` | |
13 May 20:27:21 - [nodemon] watching: /Users/andrepadez/develop/vigour-io/gaston/lib/**/* | |
13 May 20:27:21 - [nodemon] starting `node ../gaston/bin/gaston.js` | |
module.js:338 | |
throw err; | |
^ | |
Error: Cannot find module 'nodegit' |
This file contains 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
andrepadez in ~/develop/vigour-io/gaston on new-gaston* | |
⚡ rm -rf node_modules/ | |
andrepadez in ~/develop/vigour-io/gaston on new-gaston* | |
⚡ cat package.json | grep nodegit | |
"nodegit": "nodegit/nodegit#master", | |
andrepadez in ~/develop/vigour-io/gaston on new-gaston* | |
⚡ clear | |
andrepadez in ~/develop/vigour-io/gaston on new-gaston* | |
⚡ npm i |
This file contains 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 gem install rhc | |
rhc setup | |
rhc tail -A maria | |
var ipaddress = process.env.OPENSHIFT_NODEJS_IP || "127.0.0.1"; | |
var port = process.env.OPENSHIFT_NODEJS_PORT || 3000; | |
app.listen( port, ipaddress, function() { | |
console.log('listening on port ', port); | |
}); |
This file contains 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 Dog = function(name, age){ | |
if(!name || !age){ | |
throw new Error('not enough params'); | |
} | |
this.name = name; | |
this.age = age; | |
} |
This file contains 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/bash | |
echo "Running Post-Receive hook" | |
while read oldrev newrev ref ; do | |
if [ "$ref" == "refs/heads/master" ]; then | |
GIT_WORK_TREE=/home/josh/production/sonimcampaign git checkout -f | |
echo 'branch master deployed to live' | |
elif [ "$ref" == "refs/heads/staging" ]; then | |
git symbolic-ref HEAD refs/heads/staging | |
GIT_WORK_TREE=/home/josh/staging/sonimcampaign git checkout -f | |
git symbolic-ref HEAD refs/heads/master |
This file contains 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
FIRST TIME | |
JS-Calendar | |
git subtree split -P libs/bundles/albumprinter -b ap-transition | |
online-editor | |
git init | |
do one commit first | |
git remote add calendar ../js-calendar/ | |
git subtree add --prefix=src calendar ap-transition |
This file contains 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 setupGoogleMaps(){ | |
if(typeof google === 'undefined'){ return; } | |
//Instantiate map object and set core options | |
var map = new google.maps.Map(document.getElementById("map"), { | |
center: new google.maps.LatLng(52.37022, 4.89517), | |
zoom: 6, | |
disableDefaultUI: true | |
}); | |
//Instaniate infoWindow and marker image objects |
This file contains 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 Busboy = require('busboy'); //A streaming parser for HTML form data: https://github.com/mscdex/busboy | |
var generateId = require('time-uuid'); | |
//** Handler to recive file uploads via stream | |
module.exports.boUpload = { | |
method: 'POST', | |
path: '/upload/', | |
config:{ | |
payload: 'stream' | |
}, | |
handler: function (request) { |
NewerOlder