This has moved to https://github.com/bitcoin/bitcoin/blob/master/doc/reduce-memory.md
This file contains 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
''' | |
Convenience utility for connecting to a bitcoind instance through RPC. | |
''' | |
# W.J. van der Laan 2021 :: SPDX-License-Identifier: MIT | |
import base64 | |
import decimal | |
from http import HTTPStatus | |
import http.client | |
import json | |
import logging |
This file contains 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 python3 | |
# Distributed under the MIT software license | |
import binascii, struct, sys, io, argparse | |
from PIL import Image | |
IMG_WIDTH = 512 # could be made adaptive... | |
MIN_HEIGHT = 4 # minimum height of image; twitter won't let us upload anything smaller | |
BYTES_PER_PIXEL = 4 # RGBA, 8 bit | |
def div_roundup(x,y): |
This file contains 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
9D3CC86A72F8494342EA5FD10A41BDC3F4FAFF1C Aaron Clauson (sipsorcery) | |
617C90010B3BD370B0AC7D424BB42E31C79111B8 Akira Takizawa | |
E944AE667CF960B1004BC32FCA662BE18B877A60 Andreas Schildbach | |
152812300785C96444D3334D17565732E08E5E41 Andrew Chow (achow101) | |
590B7292695AFFA5B672CBB2E13FC145CD3F4304 Antoine Poinsot (darosior) | |
0AD83877C1F0CD1EE9BD660AD7CC770B81FD22A8 Ben Carman (benthecarman) | |
912FD3228387123DC97E0E57D5566241A0295FA9 BtcDrak | |
C519EBCF3B926298946783EFF6430754120EC2F4 Christian Decker (cdecker) | |
18AE2F798E0D239755DA4FD24B79F986CBDF8736 Chun Kuan Le (ken2812221) | |
F20F56EF6A067F70E8A5C99FFF95FAA971697405 centaur |
This file contains 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/python3 | |
# Copyright (c) 2014 Wladimir J. van der Laan, Visucore | |
# Distributed under the MIT software license, see | |
# http://www.opensource.org/licenses/mit-license.php. | |
''' | |
urbit UDP sniffer | |
Usage: urbit_sniffer.py [-p <port1>-<port2>,<port3>,...] [-i <interface>] | |
''' | |
import socket, struct, sys, io, argparse |
This file contains 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 python3 | |
import easyrpc | |
import socks | |
import sys | |
out = sys.stdout | |
log = sys.stderr | |
log.write(f"Getting addresses from local node…\n") | |
p = easyrpc.get_rpc_proxy(network='main') |
This file contains 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 python3 | |
import io | |
import struct | |
import sys | |
import pprint | |
import macholib.MachO | |
from macholib.mach_o import LC_CODE_SIGNATURE | |
import asn1crypto.x509 | |
from asn1crypto.cms import ContentInfo, SignedData, CMSAttributes |
This file contains 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/python3 | |
import datetime | |
import bisect | |
import ephem | |
DAY = 1.0/29.33 | |
MOONPHASE = [ | |
(0.0/4.0 + DAY, '🌑', 'New moon'), | |
(1.0/4.0 - DAY, '🌒', 'Waxing crescent moon'), | |
(1.0/4.0 + DAY, '🌓', 'First quarter moon'), |
This file contains 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
udp://tracker.openbittorrent.com:80 | |
udp://tracker.opentrackr.org:1337 | |
udp://tracker.coppersurfer.tk:6969 | |
udp://tracker.leechers-paradise.org:6969 | |
udp://zer0day.ch:1337 | |
udp://explodie.org:6969 |
This file contains 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
set disable-randomization off | |
set $_exitcode = -999 | |
set height 0 | |
handle SIGTERM nostop print pass | |
handle SIGPIPE nostop | |
define hook-stop | |
if $_exitcode != -999 | |
quit | |
else | |
shell echo | mail -s "NOTICE: app has stopped on unhandled signal" root |
NewerOlder