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 / rpt.py

0 likes
0 forks
1 files
Last active 1 year ago
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 1 year ago
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 1 year ago
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 1 year ago
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 1 year ago
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 1 year ago
1 #!/bin/sh
2 #
3 # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com>
4
5 exec alacritty --title Newmail -e neomutt "$@"

dominic / mailopenhtml.sh

0 likes
0 forks
1 files
Last active 1 year ago
1 #!/bin/sh
2 # Open HTML mails with your browser (xdg-open)
3 #
4 # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com>
5
6 BROWSER=xdg-open
7 #BROWSER=firefox
8 #BROWSER=librewolf
9 #BROWSER=zen-browser
10 #BROWSER=thorium-browser

dominic / lock.sh

0 likes
0 forks
1 files
Last active 1 year ago
1 #!/bin/sh
2 #
3 # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com>
4
5 BLANK='#00000000'
6 CLEAR='#ffffff22'
7 DEFAULT='#ff00ffcc'
8 TEXT='#ee00eeee'
9 WRONG='#880000bb'
10 VERIFYING='#bb00bbbb'

dominic / lh.py

0 likes
0 forks
1 files
Last active 1 year ago
1 #!/usr/bin/env python3
2
3 """
4 Author: Dominic OE7DRT <quick.hat4396@qtztsjosmprqmgtunjyf.com>
5 """
6
7 """open the lastheard page on brandmeister
8 """
9
10 import re, argparse, webbrowser

dominic / lh.sh

0 likes
0 forks
1 files
Last active 1 year ago
1 #!/usr/bin/env bash
2 # Get last heard time via ham-digital.org
3 # Author: Dominic Reich, OE7DRT <quick.hat4396@qtztsjosmprqmgtunjyf.com>
4 #
5 # Good DX and vy 73 de OE7DRT
6
7 command -v w3m > /dev/null 2>&1 || { echo >&2 "w3m not found"; exit 1; }
8
9 print_usage () {
10 echo >&2 "usage: `basename $0` [dmr_id | callsign]"
Newer Older

Powered by Opengist ⋅ Load: 86ms⋅

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