Skip to content

Instantly share code, notes, and snippets.

View GamerKingFaiz's full-sized avatar

Faiz-ur Rahman GamerKingFaiz

View GitHub Profile
@GamerKingFaiz
GamerKingFaiz / 1-intro.md
Last active June 17, 2025 00:05
Visualize UniFi AP Antenna Radiation in 3D

Intro

I tried to find if anyone else had tried to do this and found this forum post, which seemed to indicate that you could view the visualization of the antenna file (.ant) that Ubiquiti publishes using an old program called Octave, but I wasn't able to get that running on neither Windows nor Mac.

That post did give a hint that the ant files are using Radio Mobile's V3 format, though it was an assumption by the original poster.
Important notes to pull from the V3 format docs:

The antenna file formatted for V3 has 720 lines.

The first 360 lines describe the horizontal plane of the radiation pattern. Starting at the front beam from 0 to 359 degrees. The horizontal plane of the pattern is level.

@GamerKingFaiz
GamerKingFaiz / plex-cgnat-vpn-guide.md
Created January 18, 2025 07:24
Bypass CGNAT for Plex via your own Wireguard VPN on a VPS

Bypass CGNAT for Plex via your own Wireguard VPN on a VPS

Intro

I just recently switched to an ISP that uses CGNAT. I needed a way to access my Plex server remotely now that I didn't have a public IPv4 address. Thankfully for most of my other web hosted projects, I was able to use Cloudflare tunnels. But it's ambigous if Cloudflare is okay with you using Tunnels for Plex traffic.

Instead people suggested buying a VPS and hosting a VPN (like Wireguard) to route your traffic through. I couldn't find a complete guide to do this. I struggled for a couple days with trial and error until I finally found a configuration that worked. I wanted to document this for anyone else in the same situation (and future me).

Prerequisites

@GamerKingFaiz
GamerKingFaiz / secure-linux-server.md
Last active January 18, 2025 04:27
Basic steps to secure a Linux server

Basic steps to secure a Linux server

Intro

Just got a new Linux based server or have an existing one and want to secure it? Follow these steps!

These steps are from Alexzander's wonderful YouTube video (<8 min), which you should watch for full context. He goes into the details of what each command does and why you want to do it.

I will call out steps that I added (i.e. steps that were not covered in the video) with a ➕.