This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Generic python script that notifies the user via ntfy | |
# if it crashes or misbehaves. Also prevents multiple running | |
# instances. | |
import argparse | |
import fcntl | |
import sys | |
import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This script is a workaround for a bug that exists | |
# in Tor since at least 2022. The bug causes the relay to not | |
# automatically update its IPv6 address, if the server | |
# is behind a NAT with dynamic IPv6 prefix. | |
# | |
# Related discussion: https://forum.torproject.org/t/ipv6-with-dynamic-prefix-behind-nat/5296 | |
# | |
# The script should only be used as a parameter of `postscript=` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Script to remove the write protection from all worksheets | |
# in an excel `.xlsx` file. | |
# | |
# DISCLAIMER: I tested this script with a single file on an arch linux system. The | |
# type of the file before and after editing is 'Microsoft Excel 2007+'. Check this | |
# first with `file table.xlsx`! | |
# | |
# The process of removing the write protection is really simple and looks like the following: |