This file contains 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... | |
# Red Hat Enterprise Linux release 9.5 (Plow) | |
############################################# | |
# Remove bloatware | |
sudo dnf remove -y brasero totem cheese evolution cockpit gnome-tour |
This file contains 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 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 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 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 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 |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
# k4mobidedrm.py | |
# Copyright © 2008-2020 by Apprentice Harper et al. | |
__license__ = 'GPL v3' | |
__version__ = '6.0' | |
# Engine to remove drm from Kindle and Mobipocket ebooks |
This file contains 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 | |
export AUTOBRR_HOST="127.0.0.1" | |
export AUTOBRR_API_KEY="abcdefghijklmnopqrstuvwxyz" | |
# Backup indexers | |
curl -X GET "http://${AUTOBRR_HOST}:7474/api/indexer" -H "X-API-Token: ${AUTOBRR_API_KEY}" | jq > autobrr_indexers$(date +%Y%m%d).json | |
# Backup IRCs | |
curl -X GET "http://${AUTOBRR_HOST}:7474/api/irc" -H "X-API-Token: ${AUTOBRR_API_KEY}" | jq > autobrr_ircs$(date +%Y%m%d).json | |
# Backup RSS Feeds |
This file contains 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
# wget https://github.com/itaysk/kubectl-neat/releases/download/v2.0.3/kubectl-neat_linux_amd64.tar.gz | |
# tar xvzf kubectl-neat_linux_amd64.tar.gz | |
# sudo mv -v kubectl-neat /usr/local/bin/ | |
cat << EOF | oc neat [2024-04-04 | 12:46:23] | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
annotations: | |
openshift.io/scc: anyuid |
This file contains 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 | |
find . -type f -iname "*.wav" -execdir sh -c 'flac --compression-level-8 --verify "{}"' \; |
NewerOlder