Skip to content

Instantly share code, notes, and snippets.

@hax0r31337
hax0r31337 / ipset.py
Last active March 1, 2026 03:15
Generate IPSet rule to block all Chinese IP addresses to prevent unwanted bittorrent leecher
import ipaddress
import requests
def fetch_country_ipv4_prefixes(resource_type):
r = requests.get(
"https://stat.ripe.net/data/country-resource-list/data.json",
params={"resource": resource_type, "v4_format": "prefix"},
timeout=30,
@julianxhokaxhiu
julianxhokaxhiu / README.md
Last active January 25, 2026 13:34
Windows 11 25H2 - Create local account on first boot and other useful tricks

Create a local account on Windows 11 25H2 clean install ( and first boot ):

NEW METHOD

Feel free to try this method if it works, if not switch back to the one below.

PLEASE NOTE: Replace User with the user you want to use locally ( eg. John )

  1. Reach the country selection window
  2. Press Shift + F10
@RatserX
RatserX / debian-ubuntu-apache-fastcgi-php.md
Last active November 28, 2024 16:18
Setup Apache, FastCGI and PHP on Debian/Ubuntu for hosting sites on different ports and PHP versions

Setup Apache, FastCGI and PHP on Debian/Ubuntu for hosting sites on different ports and PHP versions

Prerequisites

Update the installed packages.

apt update

Install the Ondřej PHP repository.

apt install software-properties-commonsudo

add-apt-repository ppa:ondrej/php

@alirobe
alirobe / reclaimWindows10.ps1
Last active March 18, 2026 18:42
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
### OR take a look at
### https://github.com/HotCakeX/Harden-Windows-Security