Zouppen is not trying to solve 'em all but just show some epic overoptimized stuff.
Usage:
lnaddress user@example.com 1000 "Thanks a lot!"
Probably not 100% compliant with LUDS but should almost fulfill LUD-01, LUD-06, and LUD-12.
This gist blocks incoming traffic from
Tor exit nodes. You can also use it to
MARK
or redirect the incoming traffic, depending of your needs.
This guide is for IPv4 only, feel free to contribute IPv6 support if you have it.
If your Raspberry Pi is overheating, a common solution is to add a fan. Sometimes it's not feasible and in most cases the computer is runnning smoothly without a fan.
To limit heating, CPU throttling is a solution which keeps your computer not crashing during long compiles or so, but gives out the peak performance for shorter period of times. It depends of your application, if this is good enough solution. For me it is. I like my
#!/bin/sh -eu | |
export ydin=`uname -r` | |
export os=`uname` | |
lspci | jq -Rs '{os: env.os, ver: env.ydin, laitteet: split("\n") | map(capture("^[^ ]* (?<key>[^:]*): (?<value>.*)$") ) | from_entries}' |
This useful little tool checks for changes in GPIO state without periodic polling by using the interrupt interface provided by Linux. It's useful in scripts to wait for a state change with Raspberry Pi, but works with any hardware with GPIOs.
Public domain.
To make this work, you need to export the pin and then enable interrupts. For example:
# Write all addresses containing 0.1 BTC to file | |
with open('/tmp/addresses.txt', 'w') as f: | |
f.write("\n".join([addr for addr in listaddresses() if wallet.get_addr_balance(addr)[0] == 10000000])) | |
# List all coins having balance of 0.1, with label starting with letter L containing transactions between blocks 395000 and 400350, inclusive. | |
[addr for addr in listaddresses() if wallet.get_addr_balance(addr)[0] == 10000000 and wallet.get_label(addr)[0] == 'L' and any([tx[1] >= 395000 and tx[1] <= 400350 for tx in wallet.get_address_history(addr)])] |