I hereby claim:
- I am willjasen on github.
- I am willjasen (https://keybase.io/willjasen) on keybase.
- I have a public key whose fingerprint is 1573 8C45 5256 7964 4184 079B 6E41 B853 F8FF 092E
To claim this, I am signing this object:
| # Allow this user to not require sudo password | |
| #USER_TO_ALLOW=choco-test; SUDO_FILE=/etc/sudoers.d/no-password-$USER_TO_ALLOW; test -f $SUDO_FILE || echo "$USER_TO_ALLOW ALL=(ALL) NOPASSWD:ALL" | sudo tee $SUDO_FILE; sudo chmod 440 $SUDO_FILE; sudo visudo -c; | |
| # Install git | |
| #sudo apt update; | |
| #sudo apt install -y git; | |
| # Install Vagrant | |
| wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg; | |
| echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list; |
| #!/bin/bash | |
| # Moved to https://github.com/willjasen/proxmox-scripts/blob/main/bulk-toggle-proxmox-replication-jobs.sh | |
| # Output may show "trying to acquire cfs lock 'file-replication_cfg' ..." at some point but script should still finish | |
| # EDIT: true to disable jobs, false to enable jobs | |
| DISABLE=true; | |
| # Make sure jq is installed |
| #!/bin/bash | |
| # taken from https://tailscale.com/kb/1133/proxmox | |
| NAME="$(tailscale status --json | jq '.Self.DNSName | .[:-1]' -r)" | |
| tailscale cert "${NAME}" | |
| pvenode cert set "${NAME}.crt" "${NAME}.key" --force --restart |
| #!/usr/local/bin/php | |
| <?php | |
| /* | |
| This script can be used with OPNsense when using CARP in certain circumstances where CARP is desired on the LAN side | |
| but where CARP cannot run on the WAN side. This script runs each time an event by CARP is generated. In the event that | |
| there are multiple LAN interfaces where CARP is enabled, this script will check that all interfaces where CARP is | |
| enabled are in a particular state (MASTER/BACKUP) before enabling or disabling its WAN interfaces. | |
| */ |
| #!/bin/zsh | |
| # this script limits access to screen sharing on a macOS computer to only be accessible via Tailscale | |
| # variables | |
| TS_INT=$(netstat -i | grep -B1 $(/Applications/Tailscale.app/Contents/MacOS/Tailscale ip --4) | head -n1 | awk '{print $1}') | |
| PFANCHOR=/etc/pf.anchors/vnc-tailscale | |
| # set the pf anchor variable for the tailscale interface | |
| grep -q -e "ts_int = \"$TS_INT\"" $PFANCHOR || \ | |
| echo "ts_int = \"$TS_INT\"" | sudo tee -a $PFANCHOR >/dev/null |
| #!/bin/sh | |
| # Image version - v2.3 | |
| # Update the operating system | |
| apt update; DEBIAN_FRONTEND=noninteractive apt upgrade -y; | |
| # Install common tools | |
| apt install curl git wget net-tools screen jq locate -y; |
| #!/bin/bash | |
| # Binary Revolution Radio - The Revolution will be Digitized | |
| # content also available on IPFS: QmfZqvTBdQJLEefgTVF2vY6Zfi5tGv5ePHkGBhUPiFwT8S | |
| linkroot="http://audio.textfiles.com/shows/binrev/" # available via audio.textfiles.com | |
| rootname="binrev" # every file starts with this name | |
| filetype=".mp3" # every file is an MP3 |
| #!/bin/bash | |
| # Backup a Plex database. | |
| # Author Scott Smereka | |
| # Author willjasen | |
| # Version 2.0 | |
| # Script Tested on: | |
| # Ubuntu 12.04 on 2/2/2014 [ OK ] |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| echo -n "Enter Git username: " | |
| read git_username | |
| echo -n "Enter Git user email: " | |
| read git_user_email | |
| # Update available packages | |
| sudo apt-get -y update |