全部 新建

user:thomas 由使用者建立的 Gists

title:mygist Gists 的標題

filename:myfile.txt Gists 的檔案名稱

extension:yml Gists 的副檔名

language:go Gists 的程式語言

topic:homelab gists with given topic

註冊

登錄

全部 新建 註冊 登錄

dominic

加入 1 year ago

倒序排序 創建
順序排序 創建
倒序排序 更新
順序排序 更新
所有 Gists 40

dominic / send-suspicips.sh

0 喜歡
0 分支
1 檔案
最後活躍 1 year ago
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 喜歡
0 分支
1 檔案
最後活躍 1 year ago
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 喜歡
0 分支
1 檔案
最後活躍 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 喜歡
0 分支
1 檔案
最後活躍 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 喜歡
0 分支
1 檔案
最後活躍 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 喜歡
0 分支
1 檔案
最後活躍 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 喜歡
0 分支
1 檔案
最後活躍 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 喜歡
0 分支
1 檔案
最後活躍 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 喜歡
0 分支
1 檔案
最後活躍 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 喜歡
0 分支
1 檔案
最後活躍 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'
上一頁 下一頁

由 Opengist 提供支持 ⋅ Load: 95ms⋅

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