Skip to content

Instantly share code, notes, and snippets.

@jeff47
jeff47 / Pionex BTC pairs.txt
Last active August 31, 2021 11:22
Pionex Pairs to import for TradingView
BINANCE:AAVEBTC,BINANCE:ADABTC,BINANCE:AGIBTC,BINANCE:AKROBTC,BINANCE:ALGOBTC,BINANCE:ANTBTC,BINANCE:ASTBTC,BINANCE:ATOMBTC,BINANCE:BALBTC,BINANCE:BANDBTC,BINANCE:BATBTC,BINANCE:BCDBTC,BINANCE:BCHBTC,BINANCE:BEAMBTC,BINANCE:BNBBTC,BINANCE:BNTBTC,BINANCE:BQXBTC,HUOBI:BSVBTC,BINANCE:BTGBTC,HUOBI:BTMBTC,BINANCE:BZRXBTC,BINANCE:CELRBTC,BINANCE:COMPBTC,BINANCE:COTIBTC,HUOBI:CROBTC,BINANCE:CRVBTC,BINANCE:DASHBTC,BINANCE:DATABTC,BINANCE:DCRBTC,HUOBI:DGDBTC,BINANCE:DNTBTC,BINANCE:DOGEBTC,BINANCE:DOTBTC,BINANCE:EGLDBTC,BINANCE:ELFBTC,BINANCE:ENJBTC,BINANCE:EOSBTC,BINANCE:ETCBTC,BINANCE:ETHBTC,BINANCE:EVXBTC,BINANCE:FETBTC,BINANCE:FILBTC,BINANCE:FTMBTC,BINANCE:FTTBTC,BINANCE:GRSBTC,BINANCE:GRTBTC,HUOBI:GTBTC,HUOBI:HTBTC,BINANCE:ICXBTC,BINANCE:IDEXBTC,BINANCE:IOSTBTC,BINANCE:IOTABTC,BINANCE:IRISBTC,BINANCE:JSTBTC,BINANCE:KAVABTC,BINANCE:KMDBTC,BINANCE:KNCBTC,BINANCE:KSMBTC,HUOBI:LAMBBTC,BINANCE:LINKBTC,BINANCE:LRCBTC,BINANCE:LSKBTC,BINANCE:LTCBTC,BINANCE:LUNABTC,HUOBI:LYMBTC,BINANCE:MANABTC,BINANCE:MATICBTC,BINANCE:MKRB
@jeff47
jeff47 / funding_fee_history.py
Created April 13, 2021 18:57
Get funding fee history from Binance for all tokens in one spreadsheet
#!/usr/bin/python3
import json
import requests
import csv
# This will obtain the funding fee history from Binance for all the perpetual crypto contracts, for the given time period.
# Results will be saved in JSON and CSV format. It's easiest to load the CSV into Sheets and use a pivot table for analysis.
# All the data here is also available at https://www.binance.com/en/futures/funding-history/1, but the history is available
# only for single tokens at a time.
@jeff47
jeff47 / funding_fee_alert.py
Last active August 31, 2021 11:24
Funding Fee alerts for Binance/Pionex
#!/usr/bin/python3
import json, urllib, http.client
import requests
# Pionex does not currently have a way to send alerts if the funding fee for the Spot-Arbitrage bot falls below a
# certain level. In some cases, the funding fee can even be negative. I created this script to check the new funding
# fees from Binance, and send an alert via Pushover if the upcoming fee is below a cutoff. This will give me time to close
# the bot if the conditions are not favorable.
# To use this script, you'll need to register a Pushover account, get a Pushover ID and an API token. Those are all free.

Tdarr_Plugin_A47j_FFMPEG_NVENC_HEVC_Video_Only

Overview

The basis for this plugin is the work of JarBinks.

This is a Tdarr plugin that converts videos to H265/HEVC using nvenc GPU-accelerated encoding. Resolutions higher than 1080p are resized to 1080p. The target bitrate is calculated based on the resolution, frame rate, bitrate, and a compression factor selected by the user.

Audio, subtitles, chapters, and metadata are untouched.

Dependencies:

@jeff47
jeff47 / docker-openvpn-torrent.md
Last active July 16, 2020 15:10
Using docker to provide OpenVPN networking to other containers

Docker: Using an OpenVPN container to protect torrent

Overview

There are a number of docker containers that bundle VPN software with different torrent software (such as these projects for Transmission or rTorrent). You can certainly use those projects, but they don't follow the general Docker ethos of "one job per container". Additionally, some flexibility is lost by combining packages like this. So here I'm doing to go over how to get the same functionality using different containers, working together.

OpenVPN