I hereby claim:
- I am paul-chambers on github.
- I am paulchambers (https://keybase.io/paulchambers) on keybase.
- I have a public key ASCurpxOID6GqlcTvchnLxQDIIfVcFWcAdKsLtiFuoqKZwo
To claim this, I am signing this object:
| #!/bin/bash | |
| # Helper script for deluge or qBittorrent bittorrent clients | |
| # Intended to be run when the torrent download completes | |
| # | |
| # for qBittorrent, enable 'Run external program on torrent completion' under 'Downloads' in the options dialog. | |
| # in the text field, enter: | |
| # | |
| # <path to>/torrent-complete.sh "%K" "%N" "%D" | |
| # |
| # | |
| # assumes you have a user called 'traefik', with the home directory '/var/lib/traefik', | |
| # containing the 'traefik' executable and a 'trafik.toml' configuration file. | |
| ## adduser --system --shell /sbin/nologin --home /var/lib/traefik traefik | |
| # | |
| [Unit] | |
| Description=Traefik | |
| Documentation=https://docs.traefik.io | |
| After=network-online.target |
I hereby claim:
To claim this, I am signing this object:
| +sel:all,-sel:(audio|subtitle)&!(favlang|nolang|single),=100:all,-10:favlang |
| #!/bin/bash | |
| set -x | |
| USER=miniupnp | |
| PROJECT=miniupnp | |
| repo=https://github.com/${USER}/${PROJECT}.git | |
| if [ -d "${PROJECT}" ]; then | |
| rm -rf "${PROJECT}" | |
| fi |
| #!/bin/bash | |
| # In both host and container, add the nVidia repros (see https://nvidia.github.io/nvidia-container-runtime/) | |
| set -x | |
| which curl > /dev/null || apt install curl | |
| # add the repo key: | |
| curl -s -L https://nvidia.github.io/nvidia-container-runtime/gpgkey | sudo apt-key add - | |
| # add the 'nvidia container runtime' repo to apt's sources | |
| distribution=$(. /etc/os-release;echo $ID$VERSION_ID) |
| #!/bin/bash | |
| set -x | |
| dir="${1:-./}" | |
| if [ ! -z "${dir}" ] | |
| then | |
| find "${dir}" -regex '.*[\.-_][Ss]ample[\.-_].*' -delete | |
| find "${dir}" -regex '.*proof.*\.jpg' -delete | |
| find "${dir}" -regex '.*\/screen[0-9]+\.png' -delete | |
| find "${dir}" -regex '.*\.\(exe\|idx\|nfo\|lnk\|nzb\|sfv\|srr\|srs\|srt\|sub\|sup\|txt\|url\)' -delete |
| #!/bin/bash | |
| # a script that uses ffmpeg to detect the 'black bars' that are sometimes encoded into the video and then | |
| # reencodes the video stream (only) to remove them and restore the content's original aspect ratio. | |
| # if the original video codec used was MPEG2 or h264, it also re-encodes it to libx264. | |
| input="${1}" | |
| output="${input%.*}.crop.${input##*.}" | |
| # scan 5 seconds of video, starting one minute in, to autodetect the cropping dimensions to use |
| Some custom Scripts to update things that depend on the WAN IP address |
| #!/bin/bash | |
| # | |
| # Powered by <a href="http://www.ipdeny.com">IPDENY.COM</a> IP database. | |
| # | |
| # Pull the agregated zone lists from denyip.com, and create country-specific ipsets from them | |
| # | |
| # This approach doesn't require an additional 'geoip' kernel module or the Maxmind database. | |
| # | |
| # When updating, the new ipset replaces the existing one with a 'swap', so there isn't any | |
| # time period when the set is empty. |