Skip to content

Instantly share code, notes, and snippets.

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/>
@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
@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 = [
@pathsny
pathsny / Freenas 11.2 Setup.md
Last active October 3, 2021 17:59 — forked from zenxedo/TrueNAS Setup.md
Ultimate FreeNAS 11.2 iocage Setup

FreeNAS 11.2

WARNING READ THIS: This page contains incomplete and possibly incorrect info. The page is constantly being edited and worked on. Many of these should work but some may be broken. Read the code carefully to understand what you are doing, stuff may be nedd to be changed for your own use. These include but are not limited too JAIL AND ROUTER IPs, YOUR FREENAS MAIN VOLUME,THE MOST RECENT RELEASE OF DOWNLOADED FILES Use at your own risk.

**Find me in the FreeNAS forums

Thanks to the creator of this guide https://forums.freenas.org/index.php?resources/fn11-1-iocage-jails-plex-tautulli-sonarr-radarr-lidarr-jackett-ombi-transmission-organizr.58/

@flit
flit / eRPC_IDL.plist
Created October 27, 2018 21:25
BBEdit codeless language module for eRPC IDL
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BBEditDocumentType</key>
<string>CodelessLanguageModule</string>
<key>BBLMColorsSyntax</key>
<true/>
<key>BBLMIsCaseSensitive</key>
@Tras2
Tras2 / cloudflare-ddns-update.sh
Last active July 1, 2024 20:06
A bash script to update a Cloudflare DNS A record with the external IP of the source machine
#!/bin/bash
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine
# Used to provide DDNS service for my home
# Needs the DNS record pre-creating on Cloudflare
# Proxy - uncomment and provide details if using a proxy
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport>
# Cloudflare zone is the zone which holds the record