Skip to content

Instantly share code, notes, and snippets.

@cryptostiltskin
cryptostiltskin / qrencode-overlay.sh
Created October 12, 2021 05:07 — forked from nikreiman/qrencode-overlay.sh
Script to generate QR code with data, and then place an overlay image on top of it
#!/bin/bash
if [ "$#" -eq "0" ] ; then
printf "Usage: %s [content] [overlay image] [output image]\n" "$0"
exit 1
fi
content="$1"
overlayImage="$2"
outputImage="$3"
@cryptostiltskin
cryptostiltskin / gasPrice.js
Created September 25, 2020 03:10 — forked from thrilok209/gasPrice.js
Fetch GasPrice from eth gas station
// in nodeJs
const axios = require('axios')
async function getCurrentGasPrices() {
let response = await axios.get('https://ethgasstation.info/json/ethgasAPI.json')
let prices = {
low: response.data.safeLow / 10,
medium: response.data.average / 10,
high: response.data.fast / 10
}
#!/usr/bin/env python3
from math import log, ceil
import sys
# lookup tables to convert integers in the range [0, 58) to base-58 digits and back
int_to_b58_digit = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
b58_digit_to_int = { b58:i for i,b58 in enumerate(int_to_b58_digit) }

Keybase proof

I hereby claim:

  • I am cryptostiltskin on github.
  • I am cryptostiltskin (https://keybase.io/cryptostiltskin) on keybase.
  • I have a public key whose fingerprint is DD5C 782C 3E82 CF9B AAFC EDD6 CC5F 4830 E8B2 A421

To claim this, I am signing this object: