Skip to content

Instantly share code, notes, and snippets.

View kavikumarN's full-sized avatar
:atom:

Kavikumar N kavikumarN

:atom:
View GitHub Profile
@kavikumarN
kavikumarN / setup-zeromq.sh
Created February 1, 2019 10:16 — forked from katopz/setup-zeromq.sh
Setup zeromq in Ubuntu 16.04
#!/usr/bin/bash
# Download zeromq
# Ref http://zeromq.org/intro:get-the-software
wget https://github.com/zeromq/libzmq/releases/download/v4.2.2/zeromq-4.2.2.tar.gz
# Unpack tarball package
tar xvzf zeromq-4.2.2.tar.gz
# Install dependency
@kavikumarN
kavikumarN / build-qt-wasm.sh
Created February 22, 2019 04:21 — forked from cajus/build-qt-wasm.sh
Building Qt for WebAssembly
# Get dependencies in place (example for Debian based systems)
sudo apt-get build-dep --yes qt5-default
sudo apt-get install --yes libxcb-xinerama0-dev git python cmake default-jre
# Install Emscripten
git clone https://github.com/juj/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
source emsdk_env.sh
@kavikumarN
kavikumarN / hello_world.c
Created February 26, 2019 10:27 — forked from kripken/hello_world.c
Standalone WebAssembly Example
int doubler(int x) {
return 2 * x;
}
@kavikumarN
kavikumarN / app.js
Created February 9, 2022 06:00 — forked from sivasankars/app.js
Firebase Dynamic Links With REST APIs On Node.js - Create a short link from a long link
const request = require('request');
const API_KEY = 'xxx';
const body = {
'longDynamicLink': 'https://niralar.page.link/?link=http://niralar.com/building-rest-apis-with-swagger-on-node-js/'
}
request({
url: `https://firebasedynamiclinks.googleapis.com/v1/shortLinks?key=${API_KEY}`,
method: 'POST', json: true, body
}, function (error, response) {
@kavikumarN
kavikumarN / git-overwrite-branch.sh
Created October 18, 2022 13:17 — forked from ummahusla/git-overwrite-branch.sh
Git overwrite branch with another branch
# overwrite master with contents of feature branch (feature > master)
git checkout feature # source name
git merge -s ours master # target name
git checkout master # target name
git merge feature # source name