Skip to content

Instantly share code, notes, and snippets.

View nolim1t's full-sized avatar
💭
Destablizing Authoritarian governments to ₿UIDL ₿ack ₿etter

nolim1t - f6287b82CC84bcbd nolim1t

💭
Destablizing Authoritarian governments to ₿UIDL ₿ack ₿etter
View GitHub Profile
467uy7xzWLji5rurva74Qkjn2yPnTiTfQEuUqos2RyeLFHD9tDihRwzAwsNWXUouEa8U4ow5hwamwE8ZihyLKpYiSTqFwMp
#!/bin/bash
getArray() {
array=()
while IFS= read -r line
do
array+=("$line")
done < "$1"
}
while :;do echo $LINES $COLUMNS $(($RANDOM%$COLUMNS)) $(perl -CO -E "say chr $(($RANDOM%99+180))");sleep .02;done|gawk '{a[$3]=0;for(x in a){o=a[x];a[x]++;printf "\033[%s;%sH\033[2;32m%s",o,x,$4;printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,$4;if(a[x]>$1)a[x]=0;}}'
@nolim1t
nolim1t / nginx-vhost.conf
Created December 15, 2021 05:45
Regex based forwarding for nginx
server {
# match all requests
location ~ ^(.*)$ {
# send headers to client
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
# forward to below
proxy_pass http://localhost:12345;
}
# listen on ports
@nolim1t
nolim1t / joinmarket-cli-install.md
Created August 15, 2021 06:29
CLI Joinmarket (Modified for joinmarket base)
@nolim1t
nolim1t / node-backup.sh
Created July 28, 2021 12:00
best used with github.com/lncm/thebox-compose-system (or probably citadel node which uses the same structure. May also work with umbrel too)
#!/bin/bash
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
@nolim1t
nolim1t / specter-data.asc
Last active March 29, 2021 11:37
鬼佬
-----BEGIN PGP MESSAGE-----
hQIMAy4nqL99ScBtAQ//TtyCIqwc+wdF8hmRPKU5dwvQDcqAglRcV2qOTAOdJxIT
aG03zyBPINhMY+HSnwTZt4TNLWpX1qTvwyU6cB3XKN8lLnxBuFaTDIu2DHPrKUup
0d31EzDv3sLfUXpElqxddZ/6UHHBdCcujsVTu7jHdQb8mDtrZMoRJ5q42QwKsd25
f9+JTt9hs2nmgU6vUihDOeLQm6x6kh6Op6/qQs7VmLGhEzZ+7ZYxtlUuMBdtmBMY
ippdaJXvptLxXbul0h88inq72vv1y9bh4jg5SS/jC2MQYyHiTnrvUvFONM4OqTqj
MQ6twApFnfLUQRsihmlI5novUymXwgPLLMJDpy0MYrRZ8DEtj/y6yoZZ5W+Mutvb
yyq1A76Me9TzraUVi1Ubyp+RqTSxCYl8GjEmhN0JLOoUep7Z12C43JtQZUAozPzL
BxIwWGX0xM0t5bTRCfbM/Bv00F8FsvxIut/LS9rHz42Y3ocvqqtPhqru27oH5v1l
@nolim1t
nolim1t / feeurl-format-lnd.md
Last active February 24, 2021 11:14
LND fee url

lnd.conf entry

feeurl=https://nodes.lightning.computer/fees/v1/btc-fee-estimates.json

feeurl format

{
@nolim1t
nolim1t / th-exchange-public-api.sh
Created January 26, 2021 09:34
THB Price APIs
# Weighted
curl "https://api.tdax.com/api/v3/ticker/24hr?symbol=btc_thb" | jq .weightedAvgPrice
# Last ask price
curl "https://api.tdax.com/api/v3/ticker/24hr?symbol=btc_thb" | jq .askPrice
-----BEGIN PGP MESSAGE-----
hQILA2n3eMMY0Vi9AQ/3ZSmElcdvIHYwxVbIs6A8WbW1G/MNYAebyOjWR3nOuVkj
S3lSMc8XucoMdVhQMgAanNmHigMwr4EVlwuQJ0pVUXgLdAddv/9JA5CYoJXwPp3p
ljFRCZSp+y1suXrDMIbe98oktAxS6DR1cF9mkcdpcw+MTl6f2riuFZg1D35BpUTo
0GLApKUVGyUDBL9itAAxg4Yah7/C3pJHnHOxAlxmwxaqDUCzdxf4NnpENN4krIum
x9LxBsPMikGKfWItgieHKuCpsxH+qj3G4yRLiqdW5ioGsPP6FJ0eQ816w34ME7mU
jTL2cwTpcEm4/ZDQ0q61bbaqoZPyzC3rI3QKA5EhnOlVSPP3St8iIb3Jao4OSfje
HSb4hj/WqaRjjCE2qfObqco9zEPwAC15FqFLO/IxkqwajsUv6df47vNJEAXj272r
MfWSO1pOu9cYX37NOB7YKbqbl4IZ2BrWzVjZM2JAx7NVpfTqjFGBO8ZcHqGTmFNA