# clone
cd ~/Downloads
git clone https://gist.github.com/d76520b1bfa66713a5e27ead5e2c4e93.git archive
# create local bin directory
mkdir -p ~/.local/bin
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 | |
| # SOURCE: https://github.com/pythoninthegrass/m3u_prsr | |
| import sys | |
| class track(): | |
| def __init__(self, length, title, path): | |
| self.length = length |
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 bash | |
| # shellcheck disable=SC2046,SC2086,SC2164 | |
| cat << 'DESCRIPTION' >/dev/null | |
| compile_python.sh compiles and installs a specific version of Python from source. | |
| USAGE | |
| ./compile_python.sh "<version>" |
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.11 | |
| import sys | |
| """ | |
| Convert Imperial Credits to US Dollars and vice versa. | |
| Based on the exchange rate of 4.50 Imperial Credits to 1 US Dollar. | |
| cf: |
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
| # code: language=ansible | |
| --- | |
| - hosts: localhost | |
| connection: local | |
| gather_facts: true | |
| any_errors_fatal: true | |
| vars: | |
| base_dir: "{{ home_dir }}/git/nerd-fonts" | |
| repo_url: https://github.com/ryanoasis/nerd-fonts.git |
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 bash | |
| # SOURCE: https://discussion.fedoraproject.org/t/78971/7 | |
| sudo dnf -y install gnome-remote-desktop | |
| read -s -p "VNC Password: " VNC_PASSWD | |
| grdctl vnc enable | |
| grdctl vnc disable-view-only | |
| grdctl vnc set-auth-method password | |
| grdctl vnc set-password "${VNC_PASSWD::8}" |
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 bash | |
| set -x # activate debugging (execution shown) | |
| set -o pipefail # capture error from pipes | |
| set -eu # exit immediately, undefined vars are errors | |
| # $USER | |
| [[ -n $(logname >/dev/null 2>&1) ]] && logged_in_user=$(logname) || logged_in_user=$(whoami) | |
| # $UID |
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
| #cloud-config | |
| output: {all: '| tee -a /var/log/cloud-init.log'} # store logs inside vm | |
| timezone: "America/Chicago" | |
| hostname: ubuntu | |
| package_update: true | |
| package_upgrade: true |
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
| # /etc/dnf/automatic.conf | |
| # SOURCE: https://www.ctrl.blog/entry/how-to-dnf-automatic.html | |
| [commands] | |
| # What kind of upgrade to perform: | |
| # default = all available upgrades | |
| # security = only the security upgrades | |
| upgrade_type = security | |
| random_sleep = 0 |