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 | |
| set -e | |
| SCRIPT_NAME="${0##./}" | |
| # shellcheck disable=SC2120 | |
| print_help() { | |
| local exit_error | |
| exit_error="${1:-1}" |
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
| """A snippet for converting between permissions formats. | |
| These aren't complete compared to `chmod`. They don't account for the sticky | |
| bit, set user/group ID, or extra leading characters on octal modes. | |
| symbolic_to_octal: Convert a set of symbolic mode permissions to its octal | |
| string equivalent. | |
| symbolic_to_int: Same as `symbolic_to_octal` but returns an `int` instead of an | |
| octal string. | |
| octal_to_symbolic: Convert octal mode permissions to symbolic mode permissions. |
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 | |
| # A script to help locate winlink gateways | |
| # Adapted from `findardop` and `getardoplist` by km4ack | |
| # License: GPL-3-only | |
| set -e -o pipefail | |
| CACHE_DIR="${HOME}/.cache/$(basename "$0")" | |
| ALL_RMS_FILE="${CACHE_DIR}/all.list" |
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 | |
| set -e | |
| usage() { | |
| echo "$0 <app name> <flatpak> [flatpak run args]" | |
| } | |
| case $1 in | |
| -h|--help|help) |
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 | |
| # Requires https://www.dell.com/support/kbdoc/en-us/000178000/dell-command-configure | |
| case $1 in | |
| safe) | |
| sudo cctk --PrimaryBattChargeCfg=Custom:50-80 | |
| exit 0 | |
| ;; | |
| max|full) |
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 | |
| set_govs() { | |
| local mode=$1 | |
| for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do | |
| echo $mode | sudo tee $i | |
| done | |
| } | |
| get_govs() { |
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 | |
| # This script downloads an activity log from PSKReporter and some space weather | |
| # stats. | |
| # Create the log directory, make the script executable, and add the following | |
| # to your crontab: | |
| # | |
| # @daily <Path to the script>/pskreporter-logger.sh daily | |
| # 0 6 * * * <Path to the script>/pskreporter-logger.sh past_UTC_0000 | |
| # | |
| # Replace `6` with the hour of the day for UTC 00:00 for your |
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 | |
| """Random wire antenna length calculator. | |
| Options: | |
| `--help` - Show the help message. | |
| `-i`, `--imperial` - Use imperial units (feet). | |
| `-m`, `--metric` (default) - Use metric units (meters). | |
| `-h`, `--harmonics <count>` - The amount of harmonics to include in the | |
| calculations. Defaults to `5`. | |
| `-c`, `--check <length>` - Check the given length to see if it is a good |
NewerOlder