Skip to content

Instantly share code, notes, and snippets.

@Baccega
Baccega / autoIndexersImporter.js
Last active June 21, 2025 17:17
This script allows you to automatically import indexers from your Jackett server to your Sonarr or Radarr instance.
// Auto indexers importer from Jackett to Sonarr/Radarr
// Author: Baccega Sandro
// 1) Fill the constants values: JACKETT_API_KEY, SONARR_RADARR_API_KEY, JACKETT_CONFIG
// 2) Copy this code and run it on Sonarr/Radarr's a browser window's console
(async function () {
const JACKETT_HOST_PORT = "PUT_JACKETT_HOST_PORT"; // Example: 192.168.1.10:9117
const JACKETT_API_KEY = "PUT_JACKETT_API_KEY_HERE";

adding BURP (or another) ca certificate in android

Firstly export the certificate: Proxy > Options > Import/Export CA certificate > DER Format or download this via http://burp

without root

  • put the certificate in android, access with a file manager, and install for "VPN and apps" (can be needed to rename the extension 'der' to 'cer')
  • since android 7 (nougat), Apps that target API Level 24 and above no longer trust user or admin-added CAs for secure connections, by default. [1]

with root

@mdonkers
mdonkers / server.py
Last active June 14, 2025 20:50
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
@davydany
davydany / IPTABLES-CHEATSHEET.md
Last active June 1, 2025 22:08
IP Tables (iptables) Cheat Sheet

IP Tables (iptables) Cheat Sheet

IPTables is the Firewall service that is available in a lot of different Linux Distributions. While modifiying it might seem daunting at first, this Cheat Sheet should be able to show you just how easy it is to use and how quickly you can be on your way mucking around with your firewall.

Resources

The following list is a great set of documentation for iptables. I used them to compile this documentation.

@othyn
othyn / factorio_headless_guide.md
Last active April 13, 2025 18:46
How to setup a Factorio Headless Server

[LINUX] Factorio Headless Server Guide

So, with credit to the Factorio wiki and cbednarski's helpful gist, I managed to eventually setup a Factorio headless server. Although, I thought the process could be nailed down/simplified to be a bit more 'tutorialised' and also to document how I got it all working for my future records.

The specific distro/version I'm using for this guide being Ubuntu Server 16.04.1 LTS. Although, that shouldn't matter, as long as your distro supports systemd (just for this guide, not a Factorio headless requirement, although most distros use it as standard now). The version of Factorio I shall be using is 0.14.20, although should work for any version of Factorio 0.14.12 and higher.

Just a note to newcomers: If there are any issues with the installation steps, people in the comments are doing a good job