h - move left
j - move down
k - move up
l - move right
% - jump to matching brace
w - jump by start of words (punctuation considered words)
W - jump by words (spaces separate words)
cap install
cap production deploy:check
cap production nginx:setup
cap production nginx:reload
cap production unicorn:setup_initializer
cap production unicorn:setup_app_config
Then cap production deploy
and on the server side (for the first time):
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 Module(foo, bar) { | |
this.foo = foo; | |
this.bar = bar; | |
} | |
Module.prototype.getData = function(fooFunc) { | |
if (!fooFunc || typeof fooFunc !== 'function') | |
return; | |
if (this.foo == '' || this.bar == '') { |
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
require('dotenv').load() | |
gulp = require('gulp') | |
runSequence = require('run-sequence') | |
clean = require('gulp-clean') | |
connect = require('gulp-connect') | |
modRewrite = require('connect-modrewrite') | |
sftp = require('gulp-sftp') | |
usemin = require('gulp-usemin') | |
jade = require('gulp-jade') |
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
{ | |
"apps": [{ | |
"name": "iwishit", | |
"script": "app.coffee", | |
"env_production": { | |
"NODE_ENV": "production" | |
} | |
}], | |
"deploy": { | |
"production" : { |
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
g=git | |
ga='git add' | |
gaa='git add --all' | |
gb='git branch' | |
gba='git branch -a' | |
gbda='git branch --merged | command grep -vE "^(\*|\s*master\s*$)" | command xargs -n 1 git branch -d' | |
gbnm='git branch --no-merged' | |
gbr='git branch --remote' | |
gc='git commit -v' | |
'gc!'='git commit -v --amend' |
I hereby claim:
- I am tiste on github.
- I am tiste (https://keybase.io/tiste) on keybase.
- I have a public key ASCtgkFUNUcgM77gjZxyU2KuDbrxuwX9qyJlNEsDXRKzdgo
To claim this, I am signing this object: