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
import os | |
import subprocess | |
import re | |
from collections import defaultdict | |
# Directory containing the .torrent files like 534DB1275682C6F5CFC5EE0C10D414B84CB84BC4.torrent | |
torrent_dir = "~/Downloads" | |
# Map to track name collisions | |
name_counts = defaultdict(int) |
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_lists.sh |
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/zsh | |
# Parameters | |
DISC_LABEL=$(isoinfo -d -i /dev/sr0 | grep 'Volume id: ' | sed 's|Volume id: ||') | |
MOUNT_POINT="/mnt/bluray" | |
CATALOG_FILE="/home/$USER/Temp/Catalogs/bdr_catalog.txt" | |
# Ensure the catalog file exists | |
touch $CATALOG_FILE |
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 | |
CURRENT_PRICE=$(curl -k https://www.pbtech.com/au/product/DVBVER1863710/Verbatim-97284-Blu-Ray-BD-R-DL-50GB-25Pk-Spindle-W | grep '"price":' | sed 's|<script type="application/ld+json">||' | sed 's|</script>||' | jq '.[] | select(.offers) | .offers[].price') | |
LAST_KNOWN_PRICE=$(cat /home/$USER/pbtech.txt) | |
if [ "$CURRENT_PRICE" = "$LAST_KNOWN_PRICE" ]; | |
then | |
: | |
else |
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 is more of a notes, rather than script... I'll turn this into Ansible at some point | |
# Red Hat Enterprise Linux release 9.5 (Plow) | |
############################################# | |
# Remove bloatware | |
sudo dnf remove -y brasero totem cheese evolution cockpit gnome-tour | |
sudo subscription-manager repos --enable "codeready-builder-for-rhel-9-$(uname -m)-rpms" |
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 | |
##################################################### | |
## TO INSTALL THIS GIT HOOK: ## | |
## touch .git/hooks/pre-commit ## | |
## echo '!/bin/sh'> .git/hooks/pre-commit ## | |
## echo './pre-commit.sh' >> .git/hooks/pre-commit ## | |
## chmod +x pre-commit.sh .git/hooks/pre-commit ## | |
##################################################### |
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 | |
# Paths to the different hosts files | |
HOSTS_ADBLOCKER="/etc/hosts_adblocker" | |
HOSTS_DEFAULT="/etc/hosts_default" | |
HOSTS="/etc/hosts" | |
# Function to replace the /etc/hosts file | |
replace_hosts() { | |
local selected_file=$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
version: '1.0' | |
## | |
## Project variables: | |
## JFROG_GLOBAL_CONFIG = <REDACTED> | |
## GLOBAL_GIT_PROVIDER = github | |
## HELM_IMAGE = <REDACTED>/codefresh-image:latest | |
## ARTIFACTORY_REPO_PATH = common-release-helm | |
## |
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
[Desktop Entry] | |
Name[en_CA]=SabNZBd | |
Name[en_GB]=SabNZBd | |
Name=SabNZBd | |
Comment=SabNZBd | |
Keywords=shell;prompt;command;commandline;cmd; | |
TryExec=/home/lmaly/Projects/sabnzbd/START.sh | |
Exec=/usr/bin/zsh -c "cd /home/lmaly/Projects/sabnzbd ; ./START.sh" | |
Icon=/home/lmaly/Projects/sabnzbd/interfaces/Config/templates/staticcfg/ico/android-192x192.png | |
Type=Application |
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/zsh | |
at 16:58 <<END | |
/usr/lib/virtualbox/VBoxManage controlvm "{10a78d46-53a7-4483-a602-183436c6bcc2}" acpipowerbutton | |
noti -t "at_1658_close_vbox_machine.sh" -m "Windows10Ent has been shut down\!" -o | |
END |
NewerOlder