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 | |
| # Check if array is started | |
| ls /mnt/disk[1-9]* 1>/dev/null 2>/dev/null | |
| if ! ls /mnt/disk[1-9]* | |
| then | |
| echo "ERROR: Array must be started before using this script" | |
| exit | |
| fi |
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 | |
| set -u | |
| set -o pipefail | |
| readonly INCOMING_HOST=$1 | |
| readonly INCOMING_PORT=$2 | |
| readonly SEARCH_DOMAIN=$3 | |
| # HOST=$(echo "$INCOMING_HOST" | sed -e "s/$SEARCH_DOMAIN//") | |
| HOST="${INCOMING_HOST//$SEARCH_DOMAIN/''}" |
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
| sh:**/node_modules/** | |
| sh:**/.android/avd/** | |
| sh:**/.android/build-cache/** | |
| sh:**/.eve/** | |
| sh:**/.gradle/caches/** | |
| sh:**/.config/discord/Cache/** | |
| sh:**/.config/google-chrome/** | |
| sh:**/.local/share/Steam/** | |
| sh:**/.steam/** |
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 | |
| # oneliner to copy and paste for installation | |
| # pre-commit hook to check code | |
| # cp python-pre-commit.sh .git/hooks/ | |
| # If any command fails, exit immediately with that command's exit status | |
| set -eo pipefail | |
| # Run flake8 against all code in the `source_code` directory | |
| # flake8 . --exclude="./venv/*" |
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
| { | |
| "song_origin": [ | |
| "Goblincore Mix", | |
| "Arabic Trap", | |
| "Nasty Bits" | |
| ] | |
| ,"filter_show": [ | |
| "spotify:show:4xQ4HKZjIg04Phtj2gaTbi", | |
| "spotify:show:5GcTIDkgnB9wP6CmUyOSqa", | |
| "spotify:show:6z4NLXyHPga1UmSJsPK7G1", |
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
| # update and upgrade installed packages | |
| apt update && apt upgrade | |
| # install cronie and termux-services | |
| pkg install cronie termux-services | |
| # enable the crond service | |
| sv-enable crond | |
| # install and enable vim |
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 | |
| import random | |
| defPrefixes = ["Ahn\'", "Ains", "Al", "Alb", "Ald", "Alla", "Alt", "Alta", "Amar", "Amber", "Amyr", "Ander", "Anti", "Apple", "Ar", "Arbor", "Ard", "Arrow", "Ash", "Ashen", "Asta", "Auburn", "Aura", "Aus", "Autumn", "Ava", "Avon", "Back", "Bad", "Bain", "Bal", "Bal\'", "Bald", "Baldr", "Baldur", "Bane", "Baron", "Barron", "Barrow", "Basalt", "Beach", "Bear", "Bedd", "Beech", "Bell", "Beetle", "Bele", "Beryl", "Big", "Birch", "Bitter", "Black", "Blade", "Blue", "Bog", "Bone", "Border", "Boulder", "Brav", "Break", "Breeze", "Briar", "Bridge", "Brier", "Bright", "Brim", "Bronze", "Buck", "Bug", "Burn", "By", "Cael", "Caer", "Carn", "Cassel", "Caster", "Castle", "Cedar", "Chamber", "Cherry", "Cheyd", "Chill", "Cinder", "Clam", "Clay", "Cloud", "Cobble", "Cold", "Con", "Condor", "Corner", "Crab", "Crag", "Craw", "Crow", "Crown", "Crystal", "Cumber", "Dag", "Dagger", "Dark", "Dart", "Dawn", "Daven", "Day", "Dead", "Deep", "Demon", "Destin", "Devil", "Dire", "Do\'", "Dorn", "Do |
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 | |
| # reference: https://rastating.github.io/creating-a-reboot-into-windows-button-in-ubuntu/ | |
| set -e | |
| # ensure running as root | |
| if [ "$(id -u)" != "0" ]; then | |
| exec sudo "$0" "$@" | |
| fi | |
| target=$(grep -i windows /boot/grub/grub.cfg | cut -d "'" -f 2) | |
| echo $target |
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 -o errexit | |
| set -o xtrace | |
| set -o nounset | |
| set -o pipefail | |
| VOLUMENAME="tempvolume" | |
| DROPLET_ID=$(curl -s http://169.254.169.254/metadata/v1/id) | |
| REGION=$(curl -s http://169.254.169.254/metadata/v1/region) |
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 -x | |
| date +%R | |
| function cmdCheck () { | |
| command -v $1 >/dev/null 2>&1 || { echo >&2 "I require $1 but it's not installed. Aborting."; exit 1; } | |
| } | |
| #cmdCheck youtube-dl | |
| cmdCheck ffmpeg | |
| #cmdCheck youtube-upload |
NewerOlder