This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Fiat to Sats Converter | |
// @namespace https://gist.github.com/m0wer/ | |
// @version 1.4 | |
// @license MIT | |
// @description Converts fiat currency prices (USD, EUR) to Bitcoin satoshis | |
// @author m0wer | |
// @match *://*/* | |
// @grant GM.xmlHttpRequest | |
// @grant GM_info |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -O https://raw.githubusercontent.com/inigoflores/ds-codigos-postales-ine-es/refs/heads/master/data/codigos_postales_municipios.csv | |
tail -n +2 codigos_postales_municipios.csv | \ | |
cut -d',' -f1 | \ | |
sort -u | \ | |
while read code; do \ | |
curl -s -H 'Content-Type: application/json' \ | |
-d "{\"new_postal_code\": $code}" \ | |
-D - \ | |
https://tienda.mercadona.es/api/postal-codes/actions/change-pc/ \ | |
| grep -i "x-customer-wh" \ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import collections | |
import datetime | |
from os import path | |
import pickle | |
import sys | |
if len(sys.argv) < 2: | |
print('Usage: bindify.py zonefile') |