Skip to content

Instantly share code, notes, and snippets.

View IstoraMandiri's full-sized avatar

Istora Mandiri IstoraMandiri

View GitHub Profile
#!/bin/bash
RAWTX=$(bitcoin-cli createrawtransaction '[{"txid": "c09fc1b73260c5b5d0fd270de49c6c56d8fe6dc169cdfda75273c506bd1cb695", "vout": 0}]' '[{"tb1qncs4ju7gqu4hsc29ccyzvzk0dkste5xs03aaq7": 0.00000001}]' 0 true)
SIGNEDTX=$(bitcoin-cli signrawtransactionwithkey "${RAWTX}" '["'$(bitcoin-cli dumpprivkey tb1q9vugfwpwzac9wkzrhcq0zxfkszgy60ydsghp0f)'"]' | jq -r '.hex')
bitcoin-cli decoderawtransaction ${SIGNEDTX} | jq '. | del(.vout) | del(.vin)'
{
"txid": "230de7441de94670a64dfddd141aacb117b0cb2a542451dfb4efad4ea533b6ab",
"hash": "a1a0168b7382bb29c503868105c07b6e8c5db21f6e96d76900f24794b9102c46",
#!/data/data/com.termux/files/usr/bin/bash -e
set -euo pipefail
shopt -s inherit_errexit
yes | pkg upgrade || true
yes | pkg install x11-repo || true
yes | pkg install tigervnc || true
yes | pkg install curl || true
curl --silent -O https://raw.githubusercontent.com/Hax4us/TermuxAlpine/master/TermuxAlpine.sh
@jmdobry
jmdobry / app.js
Last active May 16, 2018 18:16
js-data + js-data-firebase + js-data-localstorage
var fb = new DSFirebaseAdapter({
basePath: 'https://my-app.firebase.io'
});
var ls = new DSLocalStorageAdapter();
var store = new JSData.DS({
// try firebase first, otherwise try offline data
fallbackAdapters: ['fb', 'ls'],
// After creating an item, sync it to localStorage

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: