(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
cat ~/.ssh/id_rsa.pub | ssh -i soundcloudify-ec2.pem ubuntu@52.11.128.104 "sudo sshcommand acl-add dokku catalystpc" | |
ssh dokku@52.11.128.104 logs backend | |
ssh -t dokku@backend.sportcontract.eu logs backend -t -f |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
import Ember from 'ember'; | |
export { dirtyHasMany, dirtyBelongsTo, dirtyMixin }; | |
var dirty = 'relationshipIsDirty'; | |
function dirtyMixin (obj) { | |
var args = Object.keys(obj); | |
var comp = Ember.computed; | |
args.push('isDirty'); | |
obj[dirty] = comp.any.apply(comp, args); |
7871* bin/plugin --install com.github.richardwilly98.elasticsearch/elasticsearch-river-mongodb/2.0.9 | |
7872* bin/plugin install elasticsearch/elasticsearch-mapper-attachments/2.6.0 | |
7873* bin/plugin install mobz/elasticsearch-head | |
7874* bin/elasticsearch | |
7875* -XDELETE curl localhost:9200/_river | |
7876* curl -XDELETE localhost:9200/_river | |
7877* curl -XPUT "localhost:9200/_river/players/_meta" -d '\n{\n "type": "mongodb",\n "mongodb": { \n "db": "new_river", \n "collection": "players"\n }, \n "index": { \n "name": "players", \n "type": "playerIndexType"\n }\n}' | |
7878* sudo mongod --replSet rs0 | |
7879* mongo | |
7880* curl -XPUT "localhost:9200/_river/players/_meta" -d '\n{\n "type": "mongodb",\n "mongodb": { \n "db": "new_river", \n "collection": "players"\n }, \n "index": { \n "name": "players", \n "type": "playerIndexType"\n }\n}' |
# disable mouse control by default - change 'off' to 'on' to enable by default. | |
setw -g mode-mouse off | |
set-option -g mouse-resize-pane off | |
set-option -g mouse-select-pane off | |
set-option -g mouse-select-window off | |
# toggle mouse mode to allow mouse copy/paste | |
# set mouse on with prefix m | |
bind m \ | |
set -g mode-mouse on \;\ | |
set -g mouse-resize-pane on \;\ |
import Ember from 'ember'; | |
import DS from 'ember-data'; | |
var computed = Ember.computed; | |
var get = Ember.get; | |
var RSVP = Ember.RSVP; | |
export default DS.Model.extend({ | |
name: DS.attr('string'), | |
players: DS.hasMany('player', { async: true }), |
https://github.com/Townk/vim-autoclose
https://github.com/vim-scripts/closetag.vim
#Join line kJ does the trick (watch below)