(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
:
#! /usr/bin/node | |
var MongoClient = require('mongodb').MongoClient | |
var Server = require('mongodb').Server; | |
var async = require('async'); | |
var util = require('util'); | |
// A simple linear congruence random number generator. | |
// This is anticipating doing a comparable test with the aggregation pipeline. | |
var randMod = 2 << 24; |
(function(){ | |
'use strict'; | |
function mdDataTableDirective($compile){ | |
return { | |
restrict: 'E', | |
templateUrl: '/main/templates/mdDataTable.html', | |
transclude: true, | |
scope: { | |
tableCard: '=', |
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}' |
2017-02-16T04:34:36.492792086Z app[web.1]: Reveive RTU { | |
2017-02-16T04:34:36.492929663Z app[web.1]: "entry": [ | |
2017-02-16T04:34:36.492952126Z app[web.1]: { | |
2017-02-16T04:34:36.492965720Z app[web.1]: "changes": [ | |
2017-02-16T04:34:36.493015100Z app[web.1]: { | |
2017-02-16T04:34:36.493038866Z app[web.1]: "field": "conversations", | |
2017-02-16T04:34:36.493052780Z app[web.1]: "value": { | |
2017-02-16T04:34:36.493072140Z app[web.1]: "thread_id": "t_mid.1485225609263:e8e631c590", | |
2017-02-16T04:34:36.493097543Z app[web.1]: "page_id": 360498397447858 | |
2017-02-16T04:34:36.493169916Z app[web.1]: } |