- Credit: mriswithe goo.gl/72VsXo
- FW/SW Link: https://drive.google.com/folderview?id=0ByKYw0Ytlr3adEc1ekNpbXVacW8&usp=drive_web
- Firmware: .bin
- Software: .img
This file contains hidden or 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 | |
# | |
#DNS adblock/malware block for USG | |
# | |
#Orginal script: https://community.ubnt.com/t5/UniFi-Routing-Switching/Use-USG-to-block-sites-apps-like-ER/td-p/1497045 | |
# | |
#Howto: SSH into your USG: | |
#sudo su - | |
#vi /config/user-data/update-adblock-dnsmasq.sh (add file content) | |
#ESC :wq |
This file contains hidden or 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 | |
unifi_username=USERNAME | |
unifi_password='PASSWORD' | |
unifi_controller=https://EXAMPLE.COM:8443 | |
wifi_id=YOUR_WIFI_ID | |
cookie=/tmp/cookie | |
curl_cmd="curl -s -S --cookie ${cookie} --cookie-jar ${cookie} --insecure " |
This file contains hidden or 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
""" | |
Custom Sensor for Sunrail train times. | |
""" | |
from collections import defaultdict | |
from datetime import timedelta, datetime, time | |
import logging | |
import voluptuous as vol |
Last Updated: 8/30/18
I wanted to run an OpenVPN server on the USG. Since it has a Radius server built in, I figured this would be a much better way to handle OpenVPN authentication. Make sure you have the Radius server enabled on your USG under Settings > Services > Radius > Server
in the controller. Add OpenVpn users under Settings > Services > Radius > Server
.
Thanks to the following resources in helping to configure this:
This file contains hidden or 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
# Works Through telnet! | |
# Disable IR Illumination (Cuts down IR illumination) | |
/home/sendMq 0x10 1 0x1141 0 | |
# Enable IR Illumination (Cut the IR illumination) | |
/home/sendMq 0x10 1 0x1140 1 | |
# Enable IR Filter (IR cut filter) | |
/home/sendMq 0x10 1 0x1147 0 |
This file contains hidden or 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
tell application "Safari" | |
set tab_list to every tab in the front window | |
repeat with the_tab in tab_list | |
set the_url to the URL of the_tab | |
tell application "Firefox Nightly" to open location the_url | |
end repeat | |
end tell |
This file contains hidden or 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 | |
# Script to suspend and resume container | |
# (c) July 2020 JC Connell | |
# if you want to see your debug messages, uncomment this variable | |
#DEBUG_IS_ON=yes | |
# you can use this function for debug messages | |
# usage: command: "debug File Is Open" --(gives oputput)--> "At 11:44:00 File Is Open" | |
function debug() |
This file contains hidden or 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
--- === ChatGPT === | |
--- | |
--- Replace clipboard contents with ChatGPT | |
--- | |
--- Place this file in the ~/.hammerspoon directory with the following structure | |
--- ── Spoons | |
--- └── ChatGPT.spoon | |
--- └── init.lua | |
--- | |
--- To use, add the following lines to ~/.hammerspooon/init.lua. Replace with your preferred hot key. |