Skip to content

Instantly share code, notes, and snippets.

Update: This isn't necessary since UniFi Network 10.4 as it supports generating Let's Encrypt certificates.

Using Let's Encrypt with Unifi Dream Machine SE

Tested on a Dream Machine SE — your mileage may vary.

I used the acme.sh shell script to issue a certificate and set up automated renewal.

SSH Into Your Console

Installing FlareSolverr on FreeBSD or FreeNAS/TrueNAS jail

FlareSolverr is a proxy server to bypass Cloudflare protection.

I found it while looking for a way to fix a problem: my Jackett installation one day started to give errors when trying to access 1337x. You got the point...

Here are the instructions in order to get FlareSolverr configured and running at boot in a FreeBSD system or in a FreeNAS/TrueNAS jail (which is my case, by the way).

This works only for version 2.1.0. For version 2.2.0, I was unable to make it work. I'm sorry.

/*
* Broadcom/Avago/LSI HBA/RAID cards are made to be used in servers where there's plenty of airflow (minimum of 200 linear feet per minute (LFM)).
* These conditions are not always attainable in Desktop PCs without generating a considerable amount of noise.
* In this scenario, there's a need of constantly monitoring the IOC core temperature to dynamically regulate fan speed.
*
* Unfortunately, those idiotic devs at Broadcom couldn't be bothered to add this feature to "sas3ircu" so a DIY approach had to be followed.
*
* The IOC has internal sensors that measure the temperature of each core.
*
* This very simple PoC displays the IOC core temperature (MAX(Sensor[0->N-1])) for Broadcom/Avago/LSI HBA cards. No kernel mods required.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UnifiedBar</key>
<dict>
<key>DisclosureRequired</key>
<string>ace440ac-b4f6-4b43-aade-02bba1589aef</string>
<key>Enabled</key>
<false/>
@GetVladimir
GetVladimir / Force-RGB-Color-on-M1-Mac.md
Last active August 29, 2026 19:45
Force RGB Color on M1 Mac

Force RGB Color on M1 Mac

How to Force RGB Color Output instead of YPbPr on your M1 Apple Silicon Mac for an External Monitor.

This step-by-step video tutorial will guide you through the procedure of forcing RGB color output on your M1 Mac.

Force RGB Color on M1 Mac

Here is the direct link to the video tutorial: https://www.youtube.com/watch?v=Z1EqH3fd0V4

The video also has Closed Captions (Subtitles) that you can enable, to make it easier to follow if needed.

@aaronmdjones
aaronmdjones / freenode-resign-letter.txt
Created May 19, 2021 10:20
My resignation from freenode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
My resignation from freenode staff
==================================
I joined the freenode staff in March 2019 [1].
Before I joined the staff, Freenode Ltd was sold [2] to a person named
Andrew Lee as part of a sponsorship deal. The informal terms of that
@darrenpmeyer
darrenpmeyer / decrypt-howto.md
Created December 23, 2020 02:36
Decrypt Unifi .unf backups

NB: these instructions are for Ubuntu; they work under WSL on Windows 10 as well

Get the decrypt.sh file from here: https://github.com/zhangyoufu/unifi-backup-decrypt

Make sure prerequisites are installed:

sudo apt update && sudo apt install zip unzip openssl mongo-tools
@joshuata
joshuata / 0_gistfile1.md
Last active July 26, 2022 19:33
Setting up spotlight search using elasticsearch and Samba on TrueNAS 12

IMPORTANT: This is not safe! This currently requires root login over SSH.

Step 0: Enable SSH password login for root on TrueNAS. This is a huge security risk, so only do this if the system is completely firewalled from the open internet, and if there is no mission-critical data on the NAS.

First off, you will need a host running docker. Maybe eventually I will figure out a way to run this all natively, but that time is not now.

Create a folder each for your elasticsearch data and fscrawler configuration. They are labeled $ES_DATA and $FSCRAWL_CONFIG in this write-up.

Next you will need an fscrawler configuration file. This file will be placed at $FSCRAWL_CONFIG/$JOBNAME/_settings.yaml. I have included an example below, but you will need to fill in the details for your own system. I disabled the index_content settings to reduce space usage, but that can be changed for your own usage. You can also enable PDF OCR if desired.

@felddy
felddy / no-aaaa.py
Last active August 9, 2023 23:56 — forked from FiloSottile/no-aaaa.py
Unbound python-script to block AAAA records of Netflix domains.
def init(id, cfg):
return True
def deinit(id):
return True
def inform_super(id, qstate, superqstate, qdata):
return True
domains = [
@nan0tEch
nan0tEch / no-aaaa.py
Created June 3, 2019 08:37 — forked from FiloSottile/no-aaaa.py
Unbound python-script to route websites over IPv4.
def init(id, cfg):
return True
def deinit(id):
return True
def inform_super(id, qstate, superqstate, qdata):
return True
domains = [