# clean the cache
$ sudo npm cache clean -f
# install `n` package if not yet installed
$ sudo npm install -g n
# download and use latest stable version
$ sudo n stable
# download and use an arbitrary version
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
const Telegraf = require('telegraf'); | |
const functions = require('firebase-functions'); | |
const bot = new Telegraf(functions.config().telegrambot.key); | |
bot.hears('hi', (ctx) => ctx.reply('Hey there')); | |
bot.launch(); | |
exports.bot = functions.https.onRequest((req, res) => { | |
bot.handleUpdate(req.body, res); |
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
# Login to Sunfire | |
ssh e0123456@sunfire.comp.nus.edu.sg | |
# Copy a local file to Sunfire | |
scp some_file.txt e0123456@sunfire.comp.nus.edu.sg:/home/e/e0123456/ | |
# Copy a local directory to Sunfire | |
scp -r ./some_directory e0123456@sunfire.comp.nus.edu.sg:/home/e/e0123456/ | |
# Convert PDF to PS file |
I hereby claim:
- I am AaronCQL on github.
- I am aaroncql (https://keybase.io/aaroncql) on keybase.
- I have a public key whose fingerprint is 224C 75DE 46B1 2CFF 05CC 6B26 0B52 17AC AE18 F4C9
To claim this, I am signing this object: