Skip to content

Instantly share code, notes, and snippets.

View m0wer's full-sized avatar

m0wer m0wer

View GitHub Profile
@m0wer
m0wer / fiat2sats.user.js
Created May 6, 2025 13:47
Fiat to Sats Converter Greasemonkey user script
// ==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
@m0wer
m0wer / mercadona_wh.sh
Created October 28, 2024 16:27
Obtain Mercadona warehouses
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" \
@m0wer
m0wer / px_bug_datetime_tz.ipynb
Created March 25, 2020 12:45
Plotly express bug pandas datetime with timezone
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@m0wer
m0wer / bindify.py
Created March 23, 2019 17:34
Convert tinydns zone files to bind. From [gmr/bindify.py](https://gist.github.com/gmr/10434366) but updated for python3.
#!/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')