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
}