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 | |
| sudo aptitude install xdg-user-dirs xdg-user-dirs-gtk | |
| xdg-user-dirs-update --force | |
| xdg-user-dirs-gtk-update | |
| rm -r ~/.local/share/user-places.xbel* | |
| sudo systemctl restart sddm |
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 | |
| script_directory="$(dirname "$(realpath "${BASH_SOURCE[0]}")")" | |
| cd "${script_directory}" | |
| version="${1:-0.140.0}" | |
| wget -O "codex-npm-linux-x64-${version}.tgz" "https://github.com/openai/codex/releases/download/rust-v${version}/codex-package-x86_64-unknown-linux-musl.tar.gz" | |
| tar xzf "codex-npm-linux-x64-${version}.tgz" bin/codex | |
| mv bin/codex codex |
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 | |
| count="3" | |
| window="60" | |
| length="300" | |
| ip_mask="255.255.255.0" | |
| ip6_mask="ffff:ffff:ffff:ffff::" | |
| iptables -A INPUT -p tcp --dport 22 \ |
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 | |
| watermark="${1}" | |
| shift | |
| wm_pdf="$(mktemp -t watermark_XXXXXX.pdf)" | |
| convert -background none -fill "rgba(128, 128, 128, 0.7)" -gravity center -font Arial -pointsize 96 "label:${watermark}" -bordercolor none -border 10x10 "${wm_pdf}" | |
| for input in "$@"; 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
| # export PYTHONSTARTUP=~/.pythonrc | |
| import atexit | |
| import base64 | |
| import binascii | |
| import json | |
| import os | |
| import re | |
| import socket | |
| import string |
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 -x | |
| images=$(ls some_directories/*.ova) | |
| suffix="test_A" | |
| for image in ${images}; do | |
| image_name=$(basename "${image}" ".ova") | |
| count=1 |