Skip to content

Instantly share code, notes, and snippets.

View plasmadice's full-sized avatar

Herman plasmadice

View GitHub Profile
#!/bin/env bash
# This script is used to backup from Proxmox Virtual Environment (PVE) to the Proxmox Backup Server (PBS).
# Can be run manually or scheduled using cron with no user input. Provides output to the terminal and logs to a file.
# Must have a valid API token for the user on the Proxmox Backup Server (PBS) to run this script.
# ==================== Define variables (Edit Below) ==================== #
DRY_RUN=false # true/false, for testing purposes true (only logs will be generated), for production false (actual run)
CLIENT_HOSTNAME="$(hostname)"
PBS_USER="pbsuser" # user name of the PBS user must have DatastoreAdmin privilages on /datastore
@gagarine
gagarine / win11-mouse-scroll-reverse.md
Last active December 9, 2025 12:34
Reverse Mouse Wheel scroll in Windows 11 (Natural Mode like MacOS)

Reverse Mouse Wheel scroll in Windows 11

Chose between natural mode like MacOS or Windows default mode.

Step 1: Open Windows PowerShell in Administrator Mode.

You can do this by going to Start Menu, type PowerShell, and click Run as Administrator.

Step 2: Copy the following code and paste it in the command line of Windows PowerShell:

$mode = Read-host "How do you like your mouse scroll (0 or 1)?"; Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object { "$($_.Name): $($_.DeviceID)"; Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name FlipFlopWheel -Value $mode; "+--- Value of FlipFlopWheel is set to " + (Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters").FlipFlopWheel + "`n" }
@iGlitch
iGlitch / bd.sh
Last active June 18, 2024 21:49
BetterDiscord Automatic Manual Installer - Mac OS
if [ -d "/Applications/Discord.app" ]; then
pkill -x Discord
rm -rf /Applications/Discord.app/Contents/Resources/app
wget -q https://github.com/rauenzi/BetterDiscordApp/archive/injector.zip
unzip -qq injector.zip
rm -rf injector.zip
mv BetterDiscordApp-injector app
mv app /Applications/Discord.app/Contents/Resources/
chown -R $(whoami) /Applications/Discord.app/Contents/Resources/app
echo "BD updated, you may now open Discord"
@subfuzion
subfuzion / curl.md
Last active December 5, 2025 19:15
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active December 8, 2025 03:35
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname