Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🐍

Euphemia Deathridge ephdtrg

💭
🐍
View GitHub Profile
@ephdtrg
ephdtrg / docker-compose.yml
Created May 4, 2022
Geth on Docker Compose
View docker-compose.yml
version: '3.7'
services:
geth:
image: ethereum/client-go:stable
restart: unless-stopped
expose:
- "8545"
- "8546"
- "30303"
volumes:
@ephdtrg
ephdtrg / runserver.sh
Last active Mar 21, 2022
Shell script for running Django in runserver / gunicorn mode, based on config.yaml parameter of DEBUG
View runserver.sh
#!/bin/bash
source .env
debug=$(cat config.yaml | shyaml get-value debug)
echo "Starting server, debug mode: $debug"
if [ $debug = "True" ]; then
poetry run python manage.py runserver 0.0.0.0:$DJANGO_PORT
else
@ephdtrg
ephdtrg / installSourceCodePro.sh
Created Dec 28, 2021 — forked from agarzon/installSourceCodePro.sh
Install Source Code Pro fonts on Linux
View installSourceCodePro.sh
version=1.017R
echo "\n* Downloading version $version of source code pro font"
rm -f SourceCodePro_FontsOnly-$version.zip
rm -rf SourceCodePro_FontsOnly-$version
wget https://github.com/downloads/adobe/source-code-pro/SourceCodePro_FontsOnly-$version.zip
echo "\n* Unziping package"
unzip SourceCodePro_FontsOnly-$version.zip
mkdir -p ~/.fonts
@ephdtrg
ephdtrg / config.toml
Last active Oct 27, 2021
Parity Mainnet bootnodes
View config.toml
[network]
bootnodes = [
"enode://68f46370191198b71a1595dd453c489bbfe28036a9951fc0397fabd1b77462930b3c5a5359b20e99677855939be47b39fc8edcf1e9ff2522a922b86d233bf2df@144.217.153.76:30303",
"enode://ffed6382e05ee42854d862f08e4e39b8452c50a5a5d399072c40f9a0b2d4ad34b0eb5312455ad8bcf0dcb4ce969dc89a9a9fd00183eaf8abf46bbcc59dc6e9d5@51.195.3.238:30303",
"enode://054d61531281262e5d114478c6f4e159020409a6f94f07bf04694585d11969139eff2793d0bdda959e021773e5a12b018841f7d1c25747531bcf1dcf0668e750@81.71.133.252:38942",
"enode://2dac6fc83a334ef2e26e24ebb0b83dd6ac166b7ef2e2c46c0a2c3a12e60c77a7412e270ffba1993e6f6e9c3de81034d197a74d93798343651fe46e43e0c3e108@40.123.205.217:30303",
"enode://a205122dcac45d25b9823ce63e48ab3a57eb83fc266c034eb1ca0d3ce78adfe5dc50050d1e585aa808230134631e1af8997c1abdfe2c3fd0b91a091a10112dc4@165.232.50.152:30303",
"enode://571321b809f893517c7a856725a7a47f397cb53d87828c088b8c6ea96157fe24aab840dc82a72fedba1182b4e77d3850a01195dfd081eee261b5a99120a7ad2d@119.8.47.119:38942",
"enode://6e034a1bda588a64
View erc20_abi.json
[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
@ephdtrg
ephdtrg / logging_settings.py
Created Aug 3, 2021
Informative logging config with formatting
View logging_settings.py
# Enable logging
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'console': {
'format': '%(asctime)s %(levelname)s [%(name)s:%(lineno)s] %(module)s %(process)d %(thread)d | %(message)s',
},
},
'handlers': {
@ephdtrg
ephdtrg / gitkraken-wsl-bash.bat
Created Jun 29, 2021 — forked from carlolars/gitkraken-wsl-bash.bat
Use bash from WSL as sh.exe for GitKraken (5.0.4) for Windows
View gitkraken-wsl-bash.bat
@echo off
REM Make sure that the path to the script is correct!
@bash -l -c "~/bin/gitkraken-wsl-bash.sh %*"
@ephdtrg
ephdtrg / btc-mainnet.service
Created Jan 25, 2021
Bitcoind node service (systemd)
View btc-mainnet.service
[Unit]
Description=Bitcoin Node Mainnet
[Service]
User=bitcoind
Group=bitcoind
ExecStart=/usr/bin/bitcoind -server -rpcuser=username -rpcpassword=password -datadir=/home/bitcoind/.bitcoin -rpcbind=127.0.0.1 -rpcworkqueue=64
PIDFile=/home/bitcoind/bitcoin.pid
WorkingDirectory=/home/bitcoind
@ephdtrg
ephdtrg / tokenlist.json
Last active Oct 16, 2020
axion token list
View tokenlist.json
{
"name": "Axion token list",
"timestamp": "2020-08-25T12:00:15+00:00",
"keywords": [
"axion"
],
"version": {
"major": 0,
"minor": 0,
"patch": 0
@ephdtrg
ephdtrg / pion_tokenlist
Last active Oct 15, 2020
pion uniswap tokenlist
View pion_tokenlist
{
"name": "Pion token list",
"timestamp": "2020-08-25T12:00:15+00:00",
"keywords": [
"axion"
],
"version": {
"major": 0,
"minor": 0,
"patch": 0