Skip to content

Instantly share code, notes, and snippets.

@noelhibbard
noelhibbard / pfatt_supplicant.sh
Last active February 26, 2024 02:29
AT&T Modem Bypass using ripped certs on pfSense
#!/usr/bin/env sh
#
# NOTES
# ==================
# - You must place your certificates (ca.pem, client.pem, private.pem) in /cf/conf/pfatt/wpa .
# - You must make this script executable (chmod +x /cf/conf/pfatt/pfatt_supplicant.sh).
# - Create an earlyshellcmd to launch /cf/conf/pfatt/pfatt_supplicant.sh
# - ngeth0 will be your WAN interface and it needs to be configured to have the
# same MAC as your ATT provided RG.
# - Make sure ONT_IF is unmanaged by pfSense
@noelhibbard
noelhibbard / Install-RustDesk.ps1
Last active February 21, 2024 15:04
RustDesk Install Script
# You can download/execute the script by running this from an elevetad PowerShell:
# irm https://gist.githubusercontent.com/noelhibbard/1cbbf22734f9736663545f4171e897df/raw/f52b4569df4c72dc04760a75842134d5e5fa1727/Install-RustDesk.ps1 | iex
$ErrorActionPreference = 'silentlycontinue'
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
$rustdesk_cfg = Read-Host -Prompt "Config string" -AsSecureString
$rustdesk_pw = Read-Host -Prompt "Password (leave blank to generate a password)" -AsSecureString
$rustdesk_pw = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto([System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($rustdesk_pw))
@noelhibbard
noelhibbard / Doorbell.env
Last active October 12, 2023 16:49
This gist shows how to pull the local stream from a Wyze camera and then push it to an RTMP server.
# Edit and rename this file and then place it in /etc/wyzecam-to-rtmp
WYZE_EMAIL="joeblow@example.com"
WYZE_PASSWORD="wyzepasshere"
WYZE_CAMERA_NAME="Doorbell"
RTMP_URL="rtmp://127.0.0.1/live/doorbell"
from wyzecam import get_camera_list, get_user_info, login
from wyzecam.iotc import WyzeIOTC
import getopt, sys, signal, subprocess
from time import sleep
def main():
def handler(signum, frame):
sys.exit()
C:\Program Files\shairport-sync>shairport-sync.exe -c shairport-sync.conf -v
Looking for the configuration file "shairport-sync.conf".
Version: "3.1d0-OpenSSL-tinysvcmdns-ao-stdout-pipe-metadata-sysconfdir:/usr/local/etc"
statistics_requester status is 0.
daemon status is 0.
rtsp listening port is 5001.
udp base port is 6001.
udp port range is 100.
Shairport Sync player name is "Noel's Desk".
Audio Output name is "(null)".
@noelhibbard
noelhibbard / jsonformaterbookmarklet.js
Last active March 10, 2017 20:52
Bookmarklet that JSON formats and also has a box to type JSONPaths
javascript: (function () {
function callback() {
(function ($) {
var jQuery = $;
javascript: (function () {
function refresh() {
$.ajax({
url: location,
type: "get",
dataType: "json",