Skip to content

Instantly share code, notes, and snippets.

@samjoshuva
samjoshuva / tmux-cheatsheet.markdown
Created November 9, 2020 18:26 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
<ion-button href="/support" routerDirection="root">
this.navCtrl.navigateRoot('/support');
push
<ion-button href="/products/12" routerDirection="forward">
this.navCtrl.navigateForward('/products/12');
@samjoshuva
samjoshuva / component.ts
Created May 28, 2020 20:28
sign in with google angular
<div class="d-flex justify-content-center">
<div class="">
<a
class="btn btn-outline-dark"
id="googleBtn"
role="button"
style="text-transform: none;"
@samjoshuva
samjoshuva / litecoin fork
Last active August 26, 2025 06:06
how to fork and deploy litecoin
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
sudo apt-get install libminiupnpc-dev
sudo apt-get install libzmq3-dev
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
async function sendSignedTransactionsForContracts(data) {
let txObject = {};
let nonce = null;
let gasPrice = null;
return new Promise(async (resolve, reject) => {
await Promise.all([web3.eth.getTransactionCount(senderAddress), web3.eth.getGasPrice()])
.then(result => {
nonce = result[0];
web3.eth.getBlockNumber(function(err,res){console.log(res)});
var jdenticon = require("jdenticon"),
fs = require("fs"),
png = jdenticon.toPng("uweuqwoeiuqwio", 200);
fs.writeFileSync("./testicon.png", png);
@samjoshuva
samjoshuva / conf file for ngnix with node
Last active August 13, 2019 12:31
deploy node in nginx
server {
listen 80;
listen [::]:80;
root /var/www/interview-panel-build;
index index.html index.htm index.nginx-debian.html;
server_name interview-panel.com www.interview-panel.com;
location / {