start new:
tmux
start new with session name:
tmux new -s myname
| 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" |
Chose between natural mode like MacOS or Windows default mode.
You can do this by going to Start Menu, type PowerShell, and click Run as Administrator.
$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" }
| #!/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 |