Skip to content

Instantly share code, notes, and snippets.

@enuno
enuno / unifi-lets-encrypt.sh
Created November 27, 2019 16:01
unifi cloud key letsencrypt script
#!/bin/bash
# UniFi Let's Encrypt script.
# Version | 1.1.3
# Author | Glenn Rietveld
# Email | glennrietveld8@hotmail.nl
# Website | https://GlennR.nl
###################################################################################################################################################################################################
# #
//Creates the External IP address within region us-east4 (you may have to just enter the command and then select option 19)
gcloud compute addresses create unifi-external \
--region us-east4
//Create the Firewall Rules required to have Unifi work
gcloud compute firewall-rules create "unifi-http" \
--allow tcp:80,tcp:8443,tcp:8880,tcp:8843 \
--description="Ports used for HTTP and HTTPS on non-standard ports https://help.ubnt.com/hc/en-us/articles/218506997-UniFi-Ports-Used" \
--target-tags=unifi-server
@TRPB
TRPB / arch-macbook2018.md
Last active November 20, 2023 13:21
Guide: Running Arch on a 2018 MacBook Pro

Hardware Prerequisites

You'll need at least the following hardware:

  • At least 3 USB-A to USB-C converters or hub with enough ports for at least 3 USB devices if all your devices are USB-A then:
  • A USB drive
  • A USB keyboard
  • USB to Ethernet adapter, compatible USB dongle or USB tethering on a phone
@mattrude
mattrude / Unifi-Letsencrypt-Updater.sh
Last active March 13, 2020 15:24
This small script will update your Unifi Controller's TLS Cert
#!/bin/bash
#########################################################
# A Small script to update the UniFi Keystore file from #
# an letsencrypt auto generated certificate. #
#########################################################
# The Domain of the UniFi Controller
DOMAIN='unifi.lan.therudes.com'
@Hellowlol
Hellowlol / throttle_nzbclient.py
Last active January 3, 2020 02:48
Simple script to throttle sabnsbd and nzbget
from __future__ import print_function
import argparse
import requests # pip install requests
import sys
from jsonrpclib import jsonrpc # pip install jsonrpclib-pelix
"""
Simple script to throttle nzb clients for plexpy