All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Register

Login


All New Register Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated

dominic / toggle-touchpad.sh

0 likes
0 forks
1 files
Last active 1731171683
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

dominic / get-suspic-ips.sh

0 likes
0 forks
1 files
Last active 1731171563
1 #!/bin/sh
2
3 GREP=/usr/bin/grep
4
5 $GREP -Eh 'pma|admin|sql|w00t|CONNECT|wp-admin|wp-login|wordpress|cgi-bin' /var/log/httpd/access_log | mutt -s "Suspicious Webserver URLs (celeste/new)" -- recipient@domain
6
7 $GREP -h '404' /var/log/httpd/access_log | grep ".zip" | mutt -s "Suspicious Webserver URLs (celeste/new) zip files" -- recipient@domain

dominic / send-suspicips.sh

0 likes
0 forks
1 files
Last active 1731171438
1 #!/bin/sh
2 #
3 # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com>
4
5 suspicfile=~/suspic
6 tmpfile=/tmp/ips
7
8 clean_up() {
9 echo -n "Removing tmp file..."
10 rm -f $tmpfile

dominic / savemail.sh

0 likes
0 forks
1 files
Last active 1731171329
1 #!/bin/sh
2 #
3 # Saves an incoming email as plain text file (or .eml)
4 # somewhere in the webservers directories
5 # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com>
6 # License: MIT
7
8 #umask 133
9
10 date=`date +%Y%m%d-%H%M%S`

dominic / rpt.py

0 likes
0 forks
1 files
Last active 1731171237
1 #!/usr/bin/env python3
2
3 """Lookup DMR users on radioid.net
4
5 This script fetches repeater information from radioid.net API and
6 prints them to stdout.
7
8 Author: Dominic Reich (OE7DRT) <quick.hat4396@qtztsjosmprqmgtunjyf.com>
9 Created: 2022-08-27 12:08:11+0200
10 Last modified: 2022-08-27 12:31:42+0200

dominic / powersave-freebsd.sh

0 likes
0 forks
1 files
Last active 1731171173
1 #! /bin/sh
2 #
3 # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com>
4
5 case $( sysctl -n hw.acpi.acline ) in
6
7 (0) # BATTERY
8 doas sysctl dev.hwpstate_intel.0.epp=100 1> /dev/null 2> /dev/null
9 doas sysctl dev.hwpstate_intel.1.epp=100 1> /dev/null 2> /dev/null
10 doas sysctl dev.hwpstate_intel.2.epp=100 1> /dev/null 2> /dev/null

dominic / powersave-openbsd.sh

0 likes
0 forks
1 files
Last active 1731171150
1 #! /bin/sh
2 #
3 # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com>
4
5 case $( sysctl -n hw.power ) in
6
7 (0) # BATTERY
8 doas wsconsctl display.brightness=$(cat ${HOME}/.backlight-bat) 1> /dev/null 2> /dev/null
9 ;;

dominic / intel_speedshift.sh

0 likes
0 forks
1 files
Last active 1731171123
1 #! /bin/sh
2 #
3 # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com>
4
5 case $( sysctl -n hw.acpi.acline ) in
6
7 (0) # BATTERY
8 doas sysctl dev.hwpstate_intel.0.epp=100 1> /dev/null 2> /dev/null
9 doas sysctl dev.hwpstate_intel.1.epp=100 1> /dev/null 2> /dev/null
10 doas sysctl dev.hwpstate_intel.2.epp=100 1> /dev/null 2> /dev/null

dominic / powersave-arch.sh

0 likes
0 forks
1 files
Last active 1731171054
1 #!/bin/sh
2 #
3 # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com>
4
5 case $( cat /sys/class/power_supply/AC/online ) in
6
7 (0)
8 blight set $(cat ${HOME}/.backlight-bat)% 1> /dev/null 2> /dev/null
9 ;;
10 (1)

dominic / mailtomutt.sh

0 likes
0 forks
1 files
Last active 1731171017
1 #!/bin/sh
2 #
3 # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com>
4
5 exec alacritty --title Newmail -e neomutt "$@"
Newer Older

Powered by Opengist ⋅ Load: 92ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文