-
Make the directory
/opt/reports/logs -
Add configuration to
/opt/reports/logger.envFLASK_APP=report_logger FLASK_RUN_HOST=0.0.0.0 FLASK_RUN_PORT=5001
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # SPDX-License-Identifier: GPL-3.0-or-later | |
| # For issues or updated versions of this script, browse to the following URL: | |
| # https://gist.github.com/AfroThundr3007730/958f17bce3c631df233b14a05159d194 | |
| """Convert ADS ACLs to human readable syntax""" | |
| __author__ = "AfroThundr" | |
| __modified__ = "2026-04-30" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Source: https://www.leeholmes.com/adjusting-token-privileges-in-powershell/ | |
| Set-StrictMode -Version Latest | |
| enum TokenPrivilege { | |
| SeAssignPrimaryTokenPrivilege | |
| SeAuditPrivilege | |
| SeBackupPrivilege | |
| SeChangeNotifyPrivilege | |
| SeCreateGlobalPrivilege |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Several powershell functions to invoke methods on raw COM objects | |
| # Last updated 2026-04-18 by AfroThundr | |
| # From: https://stackoverflow.com/questions/20248032/ | |
| Set-StrictMode -Version Latest | |
| function Invoke-ComObject { | |
| <# .SYNOPSIS | |
| Invoke a method on a COM object or get/set a property #> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Save Twitch live streams via streamlink | |
| set -euo pipefail | |
| shopt -s extdebug | |
| declare -gr \ | |
| BASEDIR='/mnt/pool0/media/archive/twitch' \ | |
| BASEURL='https://api.twitch.tv/helix/streams' \ | |
| CLIENT="${CLIENT:-}" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Build binary ZFS module packages and publish repo | |
| RequiresMountsFor=/mnt/pool0/data/app /mnt/pool0/mirror/repo | |
| [Service] | |
| Type=exec | |
| Restart=no | |
| TimeoutSec=10 | |
| ExecStart=/mnt/pool0/data/app/repo/debian-zfs/bin/zfs-module-build -y | |
| EnvironmentFile=-/mnt/pool0/data/app/repo/debian-zfs/etc/environment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| config=' | |
| [ca_cert] | |
| basicConstraints=critical,CA:true,pathlen:1 | |
| authorityKeyIdentifier=keyid:always,issuer | |
| subjectKeyIdentifier=hash | |
| keyUsage=critical,keyCertSign,cRLSign | |
| [sign_cert] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Splice VOD list via ffmpeg (in remote container) | |
| set -euo pipefail | |
| shopt -s extdebug | |
| export REMOTE=debsrv01.dm4productions.com | |
| export VOD_DIR=/mnt/pool0/media/archive/twitch | |
| export OHNO=twitch_disconnect_4s.m2t |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # SPDX-License-Identifier: GPL-3.0-or-later | |
| # For issues or updated versions of this script, browse to the following URL: | |
| # https://gist.github.com/AfroThundr3007730/1ec8a10df9345b337c19363a8094ab04 | |
| """ | |
| Fixup JSON dates exported by .NET JavaScriptSerializer | |
| Example input file: |
NewerOlder