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 intended to work with https://github.com/greenhost/certbot-haproxy | |
DOMAIN="my.supercool.domain" # Replace this with your actual domain that certbot will be using | |
# Force renewal of certificate | |
certbot renew --force-renewal | |
# Sleep for authorization to complete |
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 | |
# Really crappy script that works to delete private packages stored on Github Packages | |
# Intended to simplify deleting packages that are counting against your limit | |
# By Troy Fontaine (github.com/troyfontaine) | |
# First displays the private packages name then the version finally the ID needed to delete it | |
# Then prompts you if you want to delete the packages based on the ID | |
GITHUB_TOKEN=$SUPERSECRETTOKEN | |
REPO_OWNER=$YOURGITHUBUSERNAME |
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: "3" | |
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/ | |
services: | |
pihole: | |
container_name: pihole | |
image: pihole/pihole:latest | |
ports: | |
- "53:53/tcp" | |
- "53:53/udp" |
This brief tutorial assumes you already have an SSH public key you want to use
-
Install chocolatey via Powershell
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
-
Close Powershell
-
Open a new Powershell session
/Volumes/cloudimg-rootfs/var/lib/cloud/seed/nocloud-net/user-data
Netplan seems to not play nicely with VLANs (or so it would appear), further testing required
systemd-resolve issues, solution
Create the following file: /etc/vim/vimrc.local
" This file loads the default vim options at the beginning and prevents
" that they are being loaded again later. All other options that will be set,
" are added, or overwrite the default settings. Add as many options as you
" whish at the end of this file.
" Load the defaults
Why, that's simple! Copy this script to your USG, run chmod +x on it and then, as a user with sudo permission, execute it.
Shamelessly borrowed from Brittanic on the Ubiquiti Unifi forums
Simply run the following command (note, if you are at all security concious-don't run it and instead review the script, then copy it to your USG to execute).
curl https://gist.githubusercontent.com/troyfontaine/7e6f93e32621177fc9a94e823adc52b5/raw/fix_ddns.sh | sudo bash
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 | |
# Create fullchain | |
cat ~/cert/*.ca-bundle ~/cert/*.crt >> fullchain.cer | |
# Generate pkcs12 cert from acme output | |
openssl pkcs12 -export -in ~/cert/fullchain.cer -inkey \ | |
~/cert/mydomain.key \ | |
-out ~/cert/unifi.p12 -name unifi -password pass:aircontrolenterprise | |