Skip to content

Instantly share code, notes, and snippets.

@ank-everstake
ank-everstake / Trello Parser.md
Last active January 13, 2023 18:29 — forked from RealOrangeOne/README.md
Trello JSON parser

Trello Parser

Parses Trello board contents in stdout in Slack format for fast reporting in text way
Modify if card["list"] == "Backlog": and other lines as needed

Download

Open a terminal, run this:

wget https://gist.githubusercontent.com/ank-everstake/1618a5a52b36d15e21d780e75e554497/raw/trello-parser.py 
chmod +x ./trello-parser.py
0. (Optional but recommended) Make a dump/backup of your DB
1. STOP your node
2. Set env vars: ETH_GAS_BUMP_WEI=10000000000 and ETH_GAS_BUMP_THRESHOLD=1 and ETH_GAS_PRICE_DEFAULT=200000000000 on the node
3. Make sure your gas updater is updated to latest master from github and running with MAX_GAS_PRICE set high (suggest 500000000000 or more). Note that units are in GWei.
4. Get the keystore file from the node (found in the .env/tempkeys directory on the server). To extract the private key inside the container:
$ yum install python3
$ pip3 install eth-keyfile
$ python3 -c "import eth_keyfile; password = input('enter your password: '); print(eth_keyfile.extract_key_from_keyfile('.env/tempkeys/0xYOUR_KEY_FILE.json', password).hex())"
@ank-everstake
ank-everstake / gelf_to_file.py
Last active October 28, 2023 09:48 — forked from idlethreat/gelf-listener.py
Gelf Log Listener in Python
#!/usr/bin/env python
############### // gelfListener 0.2 // ###############
#
# Listens on UDP 12201 for Gelf messages
# Extracts the event data and writes the message to disk
# updated to handle both zlib (nxlog) and gzip (graylog server) compressed events
# not perfect, but works okay
#
# Bugs: