Skip to content

Instantly share code, notes, and snippets.

View imaginator's full-sized avatar
🏗️
building

Simon Tennant imaginator

🏗️
building
View GitHub Profile
Received log [ INFO ]: SDK v0.6.6 (f7406ef8a6)
Received log [ INFO ]: Initializing signer for v24.02 (60a206abf192a3405ea804fe230bad893ef0754c) (VLS)
Received log [ INFO ]: New node 03f6e77468556929694c3f9e66525cdd6380e3932a2893fd4703bf13ed3c8ba1da
Received log [ INFO ]: vls_protocol_signer::handler::HandlerBuilder::build:: NodeState::summary 03f6: 0 invoices, 0 issued_invoices, 0 payments, excess_amount 0
Received log [ INFO ]: signer protocol_version 6, node hsm_wire_max_version 5, setting protocol_version to 5
Received log [ INFO ]: Restore node 03f6e77468556929694c3f9e66525cdd6380e3932a2893fd4703bf13ed3c8ba1da
Received log [ INFO ]: Restore node 03f6e77468556929694c3f9e66525cdd6380e3932a2893fd4703bf13ed3c8ba1da on bitcoin
Received log [ INFO ]: vls_protocol_signer::handler::HandlerBuilder::build:: NodeState::summary 03f6: 0 invoices, 0 issued_invoices, 0 payments, excess_amount 0
Received log [ INFO ]: signer protocol_version 6, node hsm_wire_max_version 2, setting protocol_version to 2
Received
def send_bolt12_payment(bolt12_offer: str, amount_sats: int):
ross_bolt12 = "lno1zrxq8pjw7qjlm68mtp7e3yvxee4y5xrgjhhyf2fxhlphpckrvevh50u0qtn2mq3gzvt8mkq4fy7vgt34s3kkdpllgshz3ak3d8st0texhm2hqqszvedh6tvvyt2zyvcl39chzqja08y3zu27f8jjl7mgyyp2kw5da6cqqvc3naftwk24xr90uqhwqv2p2znatq2tgh63ny3vd4slykgcx87ftuh28jwpvygshf34gfc8ywnkxlw89dh2qvmz9da8dw6nx5gty895tllv3t2lzk02l7vzna3m9dnpphjftncwvqqs4zrs72t38qscfe49vnwwmucwhg"
try:
optional_amount = PayAmount.RECEIVER(amount_sats)
print(bolt12_offer)
print(amount_sats)
prepare_req = PrepareSendRequest(destination=ross_bolt12, amount=optional_amount)
prepare_res = sdk_services.prepare_send_payment(prepare_req)
logging.info(f"Prepared to send {amount_sats} to {bolt12_offer}. Estimated fees: {prepare_res.fees_sat} sats")
WARNING: StatReload detected changes in 'services/lightning_service.py'. Reloading...
INFO: Application startup complete.
/home/simon/Documents/src/tips/.venv/lib/python3.12/site-packages/google/auth/_default.py:76: UserWarning: Your application has authenticated using end user credentials from Google Cloud SDK without a quota project. You might receive a "quota exceeded" or "API not enabled" error. See the following page for troubleshooting: https://cloud.google.com/docs/authentication/adc-troubleshooting/user-creds.
warnings.warn(_CLOUD_SDK_CREDENTIALS_WARNING)
INFO: Started server process [1998234]
INFO: Waiting for application startup.
Breez Connected Successfully
[startup_event] Nodeless event listener added, ID: 1943D2C2741
[MyNodelessListener] Received event: SdkEvent.SYNCED()
lno1zrxq8pjw7qjlm68mtp7e3yvxee4y5xrgjhhyf2fxhlphpckrvevh50u0q0w3z70yzmlg590ff0pw6aa28sjdnvy44utj2cjwkj0t0dmchnfzqqszhnxavycffmdwe2j9x2nhuu5hw6w9nxfry8xczc8m3qezg0kxgfaqqvc60x5he462w3vkpux4tewulmxswyms0kal9a4fzk6h8
def pull_unpaid_invoices_since(last_timestamp: datetime):
"""
Lists all payments (both sent and received).
"""
if not sdk_services:
raise RuntimeError("Breez SDK not connected yet. Call connect_breez() first.")
last_timestamp = 0
print("Last Timestamp: ", last_timestamp)
try:
Jasper Toxopeus <[email protected]>
Fri, 10 Jan 1997, 12:13
to me
Welcome to ecash!
Thank you for your interest in our payment technology. You now receive
your ecash account information for downloading the ecash software and
to open a CyberBuck account. CyberBucks is a non-value currency for
#!/bin/bash
# BIP39 wordlist URL
WORDLIST_URL="https://raw.githubusercontent.com/bitcoin/bips/master/bip-0039/english.txt"
# Function to download the BIP39 word list if it doesn't exist
download_wordlist() {
if [ ! -f bip39_wordlist.txt ]; then
echo "Downloading BIP39 word list..."
curl -s $WORDLIST_URL -o bip39_wordlist.txt
@imaginator
imaginator / WifiConfigStore.xml
Created October 20, 2023 11:39
from /data/misc/wifi
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<WifiConfigStoreData>
<int name="Version" value="3" />
<NetworkList>
<Network>
<WifiConfiguration>
<string name="ConfigKey">&quot;imagiFi IoT 5&quot;WPA_PSK</string>
<string name="SSID">&quot;imagiFi IoT 5&quot;</string>
<null name="BSSID" />
<string name="PreSharedKey">&quot;xxxxxxx&quot;</string>
@imaginator
imaginator / hostapd-phy0.conf
Created October 20, 2023 10:27
Openwrt hostapd-phy0.conf
bss=iot5
ctrl_interface=/var/run/hostapd
ap_isolate=1
bss_load_update_period=60
chan_util_avg_period=600
disassoc_low_ack=0
@imaginator
imaginator / wifi.log
Created October 20, 2023 09:07
wifi-debugging.log
--------- beginning of system
--------- beginning of main
10-20 10:32:40.858 1075 1075 E wpa_supplicant: nl80211: Failed to set IPv4 unicast in multicast filter
10-20 10:32:40.869 1075 1075 I wpa_supplicant: wpa_driver_nl80211_driver_cmd: wlan0 recv cmd BTCOEXMODE 2
10-20 10:32:40.897 1075 1075 I wpa_supplicant: wpa_driver_nl80211_driver_cmd: wlan0 recv cmd BTCOEXMODE 2
10-20 10:32:42.288 1075 1075 I wpa_supplicant: wlan0: GAS-QUERY-START addr=04:b4:fe:af:a5:af dialog_token=12 freq=2437
10-20 10:32:42.303 1075 1075 I wpa_supplicant: wpa_driver_nl80211_driver_cmd: wlan0 recv cmd MACADDR
10-20 10:32:42.307 1075 1075 I wpa_supplicant: wpa_driver_nl80211_driver_cmd: wlan0 recv cmd MACADDR
10-20 10:32:42.446 1075 1075 I wpa_supplicant: wpa_driver_nl80211_driver_cmd: wlan0 recv cmd MACADDR
10-20 10:32:42.447 1075 1075 I wpa_supplicant: wpa_driver_nl80211_driver_cmd: wlan0 recv cmd MACADDR
# fix bad digitization date
exiftool -r -overwrite_original '-alldates<datetimeoriginal' '-XMP:alldates<datetimeoriginal' /srv/photos/originals/1999
# confirm
exiftool -G0:1 -time:all /srv/photos/originals/1998/1998\ 12\ 2005\ 07\ 02\ London\ with\ Ulrika/DSCN0271.jpg
# remove crap by setting to null
exiftool '-xmp-microsoft:all='
exiftool '-xmp-video:all='