Skip to content

Instantly share code, notes, and snippets.

View FiskFan1999's full-sized avatar
💭
Student

William Rehwinkel FiskFan1999

💭
Student
View GitHub Profile
@FiskFan1999
FiskFan1999 / peertube-upload.bash
Last active March 29, 2022 03:08
Upload video to peertube in single request
#!/usr/bin/env bash
# +--------------------------+
# | PEERTUBE UPLOAD SCRIPT |
# | by William Rehwinkel |
# | (implements example in |
# | REST API documentation) |
# +--------------------------+
# | Note that some param- |
# | eters, such as "comments |
@FiskFan1999
FiskFan1999 / tor_only_ergo_blocker.sh
Created March 4, 2022 05:40
Ergo Tor-exit checking script
#!/usr/bin/env bash
# Script compatible with ergo IRC daemon
#
# Reads a json input in the form
# {"ip": "1.2.3.4"} from standard in; checks
# it against the database of tor exit nodes.
# This script returns the result in json
# form, in which "result" = 2 is a tor exit
# node, which is intended to be blocked.