dominic / winlink-sync.sh
0 likes
0 forks
1 files
Last active
1 | #!/bin/sh |
2 | |
3 | # Sync the downloads from downloads.winlink.org to a local folder |
4 | # (and copy the most recent downloads into my own archive) |
5 | # |
6 | # Author: Dominic Reich (OE7DRT) <quick.hat4396@qtztsjosmprqmgtunjyf.com> |
7 | # Lastmod: 2024-10-06 |
8 | |
9 | # we need wget for this, check if its installed or abort |
10 | command -v wget > /dev/null 2>&1 || { echo >&2 "wget not found"; exit 1; } |
dominic / ubl-openbsd.sh
0 likes
0 forks
1 files
Last active
1 | #!/bin/sh |
2 | # |
3 | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> |
4 | # export the blacklist table from pf (pfctl -t blacklist) |
5 | # to the blocked.txt file on my http webroot |
6 | |
7 | if [[ $USER == "root" ]]; then |
8 | echo >&2 "user must not be root! exiting." |
9 | exit 1 |
10 | fi |
dominic / ubl-arch.sh
0 likes
0 forks
1 files
Last active
1 | #!/bin/sh |
2 | # 2024-05-26 |
3 | # lastmod: 2024-10-05 |
4 | # Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> |
5 | |
6 | BFILE=/srv/http/blocked.txt |
7 | IPFILE=~/ips |
8 | |
9 | if [[ $USER == "root" ]]; then |
10 | echo >&2 "User must not be root! Exiting" |
dominic / update-webfai.sh
0 likes
0 forks
1 files
Last active
1 | #!/usr/local/bin/zsh |
2 | # |
3 | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> |
4 | |
5 | DATE=$(date +%Y%d%m) |
6 | FILENAME=$(ls -1 *.iso) |
7 | BASENAME=$(basename ${FILENAME} .iso) |
8 | BACKUPFILE=${BASENAME}.backup-$DATE.iso |
9 | |
10 | # backup old image |
dominic / xbl-freebsd.sh
0 likes
0 forks
1 files
Last active
1 | #! /bin/sh |
2 | # FreeBSD version |
3 | # |
4 | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> |
5 | |
6 | print_usage () { |
7 | echo >&2 "usage: $(basename ${0}) [0..100]" |
8 | exit 1 |
9 | } |
dominic / xbl-openbsd.sh
0 likes
0 forks
1 files
Last active
1 | #!/bin/sh |
2 | # OpenBSD version |
3 | # integer scheck inspired from: https://stackoverflow.com/a/16444570 |
4 | # |
5 | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> |
6 | |
7 | print_usage () { |
8 | echo >&2 "usage: $(basename ${0}) [0..100]" |
9 | exit 1 |
10 | } |
dominic / toggle-touchpad.sh
0 likes
0 forks
1 files
Last active
1 | #!/bin/sh |
2 | # |
3 | # Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> |
4 | # |
5 | # Toggles (enables/disables) the Touchpad on my X1 Carbon running FreeBSD 13.2 |
6 | # Created: 2023-06-23 11:15 |
7 | |
8 | (xinput list SYNA8004:00\ 06CB:CD8B\ TouchPad | grep disabled) > /dev/null |
9 | |
10 | case $? in |
Newer
Older