Skip to content

Instantly share code, notes, and snippets.

@galvesribeiro
galvesribeiro / EFG-Broken.md
Last active May 13, 2026 11:24
Why Your Ubiquiti EFG Can't Push 25 Gbps Inter-VLAN — and What's Actually Going On

Why Your Ubiquiti EFG Can't Push 25 Gbps Inter-VLAN — and What's Actually Going On

Or: How I Reproduced the Problem on x86, Tried to Load the Missing Modules on the Real Device, and What That Tells Us About Ubiquiti's Kernel


TL;DR

Ubiquiti markets the Enterprise Fortress Gateway (EFG) as a 25-gigabit-class router. The product page lists two 25 GbE SFP28 ports for WAN/LAN, and Ubiquiti positions the device as a flagship for medium and large enterprise deployments. Its silicon — a Marvell Octeon CN9670 — supports hardware-accelerated forwarding through purpose-built network engines (NIX) that should sustain tens of millions of packets per second. The UDM Beast, Ubiquiti's next-generation gateway, pairs a Marvell Octeon CN10K SoC (with ARM Neoverse N2 cores) with a dedicated Marvell Prestera-class switching ASIC accessed via PCIe — capabilities that, properly used, would offload most of the per-packet forwarding work into hardware.

Setting up Unifi Talk without Touch device

I recently came across the issue that I wanted to setup Unifi Talk but I didn't want to buy a talk device just to set it up (this was the recommended way from Unifi)

For Unifi Talk 4.2.4 its a little more difficult but still possible:

  1. Go to your Unifi Talk setup page and press right mouse button -> Inspect
  2. Go to Network tab in Dev Tools
  3. Search for index-
@r0ckbeard
r0ckbeard / Backup-DNSZoneData.ps1
Last active February 20, 2026 15:43 — forked from compwiz32/Backup-DNSZoneData.ps1
DNS backup script with logging and error handling
<#
.SYNOPSIS
DNS Backup Script.
.DESCRIPTION
This script connects to a specified DNS server, retrieves DNS zone and forwarder information, exports the zones and forwarders to files,
compresses the files, and performs cleanup operations. It logs all actions and sends an email notification if an error occurs.
.PARAMETER LogFilePath
The path to the log file where script actions and messages will be recorded. If run from ISE script pane with "Run selection", log file will be saved to C:\Temp\Backup
@camerahacks
camerahacks / Rock_CM3_Setup.md
Last active June 9, 2023 00:17
Rock CM3 Setup

Radxa Rock CM3 on a CM4 carrier board

Out of the box, the Radxa Rock CM3 does not work with boards designed for the Raspberry Pi CM4. Here are the steps to get the most functionlity working on a CM4 board.

Before we get started, if you appreciate the work I do with rpilocator.com, hwlocator.com, and dphacks.com, consider buying me a coffee.

ko-fi

First Boot Config

@dgrnbrg
dgrnbrg / appdaemon_irk.yaml
Last active November 30, 2023 13:09
Randomized key resolution for apple device tracking
tracker_test:
class: IrkTracker
module: irk_tracker
training_input_text: input_text.irk_tag
data_loc: tracker_logs/
rows_per_flush: 100
@gagarine
gagarine / win11-mouse-scroll-reverse.md
Last active May 11, 2026 08:49
Reverse Mouse Wheel scroll in Windows 11 (Natural Mode like MacOS)

Reverse Mouse Wheel scroll in Windows 11

Chose between natural mode like MacOS or Windows default mode.

Step 1: Open Windows PowerShell in Administrator Mode.

You can do this by going to Start Menu, type PowerShell, and click Run as Administrator.

Step 2: Copy the following code and paste it in the command line of Windows PowerShell:

$mode = Read-host "How do you like your mouse scroll (0 or 1)?"; Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object { "$($_.Name): $($_.DeviceID)"; Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name FlipFlopWheel -Value $mode; "+--- Value of FlipFlopWheel is set to " + (Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters").FlipFlopWheel + "`n" }
@quonic
quonic / PID.ps1
Last active July 27, 2023 18:08
A PID controller class adapted for PowerShell. Made it because I haven't seen anyone make one for PowerShell.
#Requires -Version 5
# License: MIT
class PID {
# Adapted to PowerShell from: https://github.com/tommallama/CSharp-PID/blob/master/PID_Controller/PID.cs
#region Public Variables
# Upper output limit of the controller.
# This should obviously be a numerically greater value than the lower output limit.
@krzys-h
krzys-h / Hyper-V GPU-PV with Linux guest.md
Last active May 7, 2026 17:33
Ubuntu 21.04 VM with GPU acceleration under Hyper-V...?

Ubuntu 21.04 VM with GPU acceleration under Hyper-V...?

Modern versions of Windows support GPU paravirtualization in Hyper-V with normal consumer graphics cards. This is used e.g. for graphics acceleration in Windows Sandbox, as well as WSLg. In some cases, it may be useful to create a normal VM with GPU acceleration using this feature, but this is not officially supported. People already figured out how to do it with Windows guests though, so why not do the same with Linux? It should be easy given that WSLg is open source and reasonably well documented, right?

Well... not quite. I managed to get it to run... but not well.

How to do it?

  1. Verify driver support
@howellcc
howellcc / backupHubitat.sh
Last active September 22, 2025 22:58
Backup script for Hubitat Elevation that runs on Synology NAS
#!/bin/bash
#https://gist.github.com/howellcc/70f5c45a9902f9a3fe4e566ceedf1bca
#This is a backup script that I'm running on my Synology NAS to back up my Hubitat Elevation.
he_login=[Hubitat Username]
he_passwd=[Hubitat Password]
he_ipaddr=[Hubitat IP Address]
backupdir='[Backup Location]' #no trailing space
hubname='Hubitat' #in case you have multiple hubs
@archmangler
archmangler / linux-pwshell-windns-management.txt
Last active September 22, 2023 22:29
PowerShell Remoting from Linux to Windows (DNS Server Configuration)
Overview
========
This is a set of notes I kept resulting in development of a terraform module wrapper to configure windows DNS.
(Original gist location: https://gist.github.com/1de3be6a95400bce427008e04e53e26f)
Objective:
=========