Skip to content

Instantly share code, notes, and snippets.

@asheroto
asheroto / README.md
Last active November 17, 2025 21:12
Easily install and configure GeoIP for use with iptables which enables you to block/allow entire countries.

Configure GeoIP for iptables

Important

This setup forces iptables-legacy (not nftables) and installs a custom-built xt_geoip_query tool written in C to properly read modern GeoIP databases (xtables-addons ≥ 3.20). The script does not modify firewall rules automatically; it only echoes recommended examples.

Caution

If you use Docker or containerized services, switching to iptables-legacy can temporarily break container networking. This happens because Docker manages its own NAT and MASQUERADE rules, which can be lost when iptables backends change or modules are reloaded. SEE NOTES BELOW.

@amunchet
amunchet / noVNCCopyPasteProxmox.user.js
Last active December 7, 2025 11:36
Copy/Paste for noVNC Proxmox
// ==UserScript==
// @name noVNC Paste for Proxmox
// @namespace http://tampermonkey.net/
// @version 0.2a
// @description Pastes text into a noVNC window (for use with Proxmox specifically)
// @author Chester Enright
// @match https://*
// @include /^.*novnc.*/
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @grant none
@mvaisakh
mvaisakh / Bringup.md
Last active November 25, 2025 06:47
An Android Device Tree Bringup Guide

A small Device Tree Bringup Guide

Introduction

So, you guys might be wondering, how do these "Developers" get your favourite Custom roms, such as LineageOS, Paranoid Android etc., to their own devices. Well I'm here to Guide you on how to do it, specifically on how to bringup or make your own device tree from scratch or adapting.

Gist of this Guide: This is for people with genuine interest in Android OS porting/development. After going through this guide, you should be able to do a total device tree bringup on your own.

Prerequisite: Certain requirements are to be met before you start with this amazing journey.

@dreamwhite
dreamwhite / gsync_adapters.md
Created April 11, 2021 11:09
[Google Sync Adapters] How to sync them with microG

Mammamia Marcello what's this?

I know what you're thinking of while reading this gist, but I don't have much spare time to setup a Nextcloud server for syncing my contacts and my calendar This guide is intended for those users like me (lazy af) who wanna sync contacts and calendar with Google server, even if using microG.

Requirements

import io
offset0 = 0x4000
offset1 = 0x5000
offset2 = 0x740000
offset3 = 0xD2F000
offset4 = 0x146A000
outpt = open("logo_new_mi9t.img", "wb")
@kidGodzilla
kidGodzilla / mailthisto-example.html
Last active September 11, 2023 08:00
Mailthis.to Example
<form action="https://mailthis.to/example" method="POST" encType="multipart/form-data">
<h3>Contact Form (example)</h3>
<!-- Name -->
<input type="email" name="name" placeholder="Your name">
<!-- Email -->
<input type="email" name="email" placeholder="you@mail.com">
<!-- Phone Number -->
<input type="text" name="phone" placeholder="+1 (255) 555-5555">
<!-- Textarea (Message) -->
<textarea name="message" placeholder="Enter your message here" style="height:90px"></textarea>