Skip to content

Instantly share code, notes, and snippets.

View AaronCQL's full-sized avatar

Aaron Choo AaronCQL

View GitHub Profile
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);
@AaronCQL
AaronCQL / sunfire-print.sh
Last active July 17, 2021 15:31
Cheatsheet for printing via Sunfire
# 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
@AaronCQL
AaronCQL / readme.md
Created August 7, 2020 02:39
Use different versions of Node
# 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

Keybase proof

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: