Skip to content

Instantly share code, notes, and snippets.

@plowsof
plowsof / get_debs.sh
Last active March 31, 2025 02:53
to be ran in a docker container - get the list of debs a list of packages installs for monero-gui Dockerfile.linux
#!/bin/bash
# Generate the tuple containing required debs '"download path" "filename" "md5sum"'
parse_apt_uris() {
local packagelist=$2
local formatted_strings=()
local tuple_name=$1
# Multi line comment https://stackoverflow.com/a/43158193
#: '
apt-get update >/dev/null 2>&1
@plowsof
plowsof / 2024_ccs_estimated.txt
Last active February 11, 2025 17:18
2024 estimated CCS earnings
2024 Contributor Rankings:
----------------------------------------------------
RANK AUTHOR XMR USD*
----------------------------------------------------
1 j-berman 798.00 $125,954.20
2 selsta 551.00 $83,716.59
3 jeffro256 512.00 $77,091.74
4 hinto 481.20 $71,404.22
5 boog900 410.00 $67,530.44
6 tobtoht 356.80 $56,383.40
@plowsof
plowsof / get_qt_git_hashes.sh
Last active October 1, 2024 21:32
monero gui: get commit hashes of qt gits
#!/bin/bash
QT_VERSION=$1
# List of Qt repositories
REPOS=(
"qtbase"
"qtdeclarative"
"qtgraphicaleffects"
"qtimageformats"
'http://archive.ubuntu.com/ubuntu/pool/main/g/gdbm/libgdbm3_1.8.3-13.1_amd64.deb' libgdbm3_1.8.3-13.1_amd64.deb 16926 MD5Sum:b2001800d7c61d4b0b12b077a0af2b5a
'http://archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-4_amd64.deb' libffi6_3.2.1-4_amd64.deb 17838 MD5Sum:b1ae23f2be1e7d0c86ea505982b6b5ab
'http://archive.ubuntu.com/ubuntu/pool/main/g/glib2.0/libglib2.0-0_2.48.2-0ubuntu4.8_amd64.deb' libglib2.0-0_2.48.2-0ubuntu4.8_amd64.deb 1120198 MD5Sum:b72e82a8e092af24b56932824e6c8833
'http://archive.ubuntu.com/ubuntu/pool/main/libx/libxau/libxau6_1.0.8-1_amd64.deb' libxau6_1%3a1.0.8-1_amd64.deb 8376 MD5Sum:af209429d197827db35c09cd232037c1
'http://archive.ubuntu.com/ubuntu/pool/main/libx/libxdmcp/libxdmcp6_1.1.2-1.1_amd64.deb' libxdmcp6_1%3a1.1.2-1.1_amd64.deb 11018 MD5Sum:18b73febf5dcdcea0b2fe2b145be5388
'http://archive.ubuntu.com/ubuntu/pool/main/libx/libxcb/libxcb1_1.11.1-1ubuntu1_amd64.deb' libxcb1_1.11.1-1ubuntu1_amd64.deb 40006 MD5Sum:7bbe1f1568c088c9ec34127fdcb6ed30
'http://archive.ubuntu.com/u
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
i run these nodes. they suffer from connctivity issues sadly.
plowsof3t5hogddwabaeiyrno25efmzfxyro2vligremt7sxpsclfaid.onion
plowsoffjexmxalw73tkjmf422gq6575fc7vicuu4javzn2ynnte6tyd.onion
plowsofe6cleftfmk2raiw5h2x66atrik3nja4bfd3zrfa2hdlgworad.onion
=== monero info ===
@plowsof
plowsof / matrix-bot-homeserver-msg.py
Created June 14, 2024 19:36
messages users on matrix.org homerver once if the bot sees them send a message,
import asyncio
import logging
from nio import (
AsyncClient, RoomMessageText, RoomCreateResponse, RoomCreateError,
LoginResponse, RoomPreset, RoomVisibility
)
import aiosqlite
from datetime import datetime
# Set up logging
@plowsof
plowsof / external_gitlab_ci.yml
Last active August 13, 2024 14:48
testing an external pipeline config file
external_ci_v1.0.1:
image: php:8.1
stage: deploy
script:
- |
apt-get -qq update &&
apt-get install -y jq &&
apt-get install git -yqq &&
apt-get install -y libyaml-dev &&
pecl install yaml &&
@plowsof
plowsof / background_sync_compare.py
Created November 10, 2023 01:38
restore a wallet from 0 with sync off / reuse password / custom password and compare balances
from monerorpc.authproxy import AuthServiceProxy, JSONRPCException
import os, requests, time
#./monero-wallet-rpc --disable-rpc-login --rpc-bind-port 18082 --stagenet --wallet-dir /home/human/monero/build/Linux/view_sync/release/bin --daemon-host node2.monerodevs.org:38089 --trusted --no-initial-sync
wallet_dir = "/home/human/monero/build/Linux/view_sync/release/bin"
daemon_address = "node2.monerodevs.org:38089"
rpc_url = "http://127.0.0.1:18082/json_rpc"
test_wallet = "stager"
rpc_connection = AuthServiceProxy(service_url=rpc_url)
original_balance = 0
@plowsof
plowsof / scan_tx_background_sync_2.py
Created November 8, 2023 12:34
scan_tx + custom-background-password issue
from monerorpc.authproxy import AuthServiceProxy, JSONRPCException
import os
#./monero-wallet-rpc --disable-rpc-login --rpc-bind-port 18082 --stagenet --wallet-dir /home/human/monero/build/Linux/view_sync/release/bin --daemon-host node2.monerodevs.org:38089 --trusted
wallet_dir = "/home/human/monero/build/Linux/view_sync/release/bin"
daemon_address = "node2.monerodevs.org:38089"
rpc_url = "http://127.0.0.1:18082/json_rpc"
test_wallet = "stager"
rpc_connection = AuthServiceProxy(service_url=rpc_url)
original_balance = 0
@plowsof
plowsof / scan_tx_background_sync.py
Last active November 7, 2023 05:39
restore wallet with scan_tx , repeat with background sync active then compare after background sync is stopped
from monerorpc.authproxy import AuthServiceProxy, JSONRPCException
import os
#./monero-wallet-rpc --disable-rpc-login --rpc-bind-port 18082 --stagenet --wallet-dir /home/human/monero/build/Linux/view_sync/release/bin --daemon-host node2.monerodevs.org:38089 --trusted
wallet_dir = "/home/human/monero/build/Linux/view_sync/release/bin"
daemon_address = "node2.monerodevs.org:38089"
rpc_url = "http://127.0.0.1:18082/json_rpc"
test_wallet = "stager"
rpc_connection = AuthServiceProxy(service_url=rpc_url)
original_balance = 0