Xenial Remote

Xenial remote settings and migration stuff.

$ ssh -p 35933 -L 2000:127.0.0.1:2000 -L 3001:127.0.0.1:3001 -L 3005:127.0.0.1:3005 tel@192.168.0.251 

$ docker pull eueung/remark:v1
$ ll ~/.ssh

$ sftp -oPort=35933 tel@192.168.0.251 
sftp> cd .ssh
sftp> put *

$ ssh -T git@github.com
The authenticity of host 'github.com (192.20.255.223)' can't be established.
RSA key fingerprint is SHA256:nABCg6kXUpJWGl7E1IGOCspRomTxdCARLvi12345678.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.20.255.223' (RSA) to the list of known hosts.
Hi eueung! You've successfully authenticated, but GitHub does not provide shell access.

$ mkdir webhook-012017
$ cd webhook-012017/
~/webhook-012017$ mkdir temp

$ git clone git@github.com:eueung/012017.git source
$ git clone git@github.com:eueung/012017.git view
$ cd view && git checkout gh-pages

$ sftp -oPort=35933 eueung@192.168.0.251
Connected to 192.168.0.251.
sftp> put hookserv.js

/webhook-012017$ hotel add 'node hookserv.js' -o 012017.log

$ hotel ls
webhook-012017
~/webhook-012017
node hookserv.js

$ sudo npm install -g githubhook
$ npm install githubhook
# g bugs -> poss. node8 sm kayak electron
$ npm install shelljs

$ git config --global user.email "em@gmail.com"
~/webhook-012017$ git config --global user.name "em"
$ cd new/
~/new$ git clone https://github.com/eueung/012017.git
# delete, copy, edit readme
$ git add .
~/new/012017$ git commit -am "android basics"
git push
$ mkdir telmatosbot && cd telmatosbot && yo hubot
? ==========================================================================
We're constantly looking for ways to make yo better! 
May we anonymously report usage statistics to improve the tool over time? 
More info: https://github.com/yeoman/insight & http://yeoman.io
========================================================================== No
                     _____________________________  
                    /                             \ 
   //\              |      Extracting input for    |
  ////\    _____    |   self-replication process   |
 //////\  /_____\   \                             / 
 ======= |[^_/\_]|   /----------------------------  
  |   | _|___@@__|__                                
  +===+/  ///     \_\                               
   | |_\ /// HUBOT/\\                             
   |___/\//      /  \\                            
         \      /   +---+                            
          \____/    |   |                            
           | //|    +===+                            
            \//      |xx|                            

? Owner em <eueung@gmail.com>
? Bot name telmatosbot
? Description Telematika Open.Session Bot
? Bot adapter telegram
...
+ hubot@2.19.0
added 207 packages in 11.535s
$ npm install moment githubot (yg -g fail, sm spt electron kyknya)

$ cd scripts && rm * && cd .. && nano external-scripts.json ([])

$ rm scripts/telmatos.coffee && nano scripts/telmatos.coffee 
$ rm scripts/help.coffee && nano scripts/help.coffee 

$ hotel add 'TELEGRAM_TOKEN=12345 HUBOT_GITHUB_TOKEN=12345 bin/hubot -a telegram -n telmatosbot' -o telmatosbot.log

$ cat telmatosbot.log 
$ mkdir telmatos-jserver && cd telmatos-jserver
$ nano telmatos.json
~/telmatos-jserver$ rm telmatos.json && nano telmatos.json

$ hotel add 'json-server telmatos.json --port 6100' -o telmatos.log