Skip to content

Instantly share code, notes, and snippets.

View michele-tn's full-sized avatar
🎯
Focusing

michele-tn

🎯
Focusing
View GitHub Profile

AdGuard DNS + Shadowsocks (Android) β€” Complete Setup Guide

A clean and reliable way to block ads (ADV) on Android is to combine AdGuard DNS with Shadowsocks. This guide shows the correct configuration, explains why each step matters, and helps you avoid common mistakes (like DNS leaks).


🎯 What You Get

  • βœ… System-wide ad blocking (apps + browser)
@michele-tn
michele-tn / Kill All Active Shadowsocks (`ss-server`) Connections in One Command.md
Created May 4, 2026 09:54
Kill All Active Shadowsocks (ss-server) Connections in One Command.

Kill All Active Shadowsocks (ss-server) Connections in One Command

When running a Shadowsocks server (ss-server), it’s important to understand that all client sessions are typically multiplexed through a single process. This design is efficient, but it also means that controlling individual connections is not straightforward.

In scenarios such as abuse mitigation, debugging, or emergency shutdown, you may need a fast way to terminate all active sessions at once.


πŸš€ One-liner Solution

@michele-tn
michele-tn / How to Remove Old Devices from the Windows Security Passkey Prompt.md
Last active April 10, 2026 10:02
If you use passkeys on Windows, you may eventually notice that old, reset, renamed, or no-longer-available phones and devices still appear in the Windows Security prompt when you try to sign in with a passkey. At the time of writing, Windows does not provide a visible graphical interface to clean up these stale passkey-linked devices.

How to Remove Old Devices from the Windows Security Passkey Prompt

If you use passkeys on Windows, you may eventually notice that old, reset, renamed, or no-longer-available phones and devices still appear in the Windows Security prompt when you try to sign in with a passkey.

At the time of writing, Windows does not provide a visible graphical interface to clean up these stale passkey-linked devices. The practical workaround is to review and remove the corresponding entries from the Windows Registry.

This guide explains the process in a careful, reversible way.


@michele-tn
michele-tn / kill_hbbs_hbbr_connections.md
Last active January 28, 2026 18:23
kill_hbbs_hbbr_connections.sh is a Bash script designed to terminate active network connections on specific RustDesk server ports without stopping or killing the RustDesk server processes (hbbs and hbbr).

kill_hbbs_hbbr_connections.sh β€” Description

image

Overview

kill_hbbs_hbbr_connections.sh is a Bash script designed to terminate active network connections on specific RustDesk server ports without stopping or killing the RustDesk server processes (hbbs and hbbr).

The script is intended for system administrators running a self-hosted RustDesk server who need to:

  • Reset active or stuck connections
@michele-tn
michele-tn / Ubuntu Cleanup Script (Safe or Aggressive Modes).md
Last active April 16, 2026 02:46
Bash script for deep Ubuntu system cleanup with an interactive safety prompt. Supports Safe and Aggressive profiles to balance disk recovery and log preservation. Removes Snap permanently, purges leftover kernels, optimizes APT behavior, vacuums journald logs, and optionally runs BleachBit with shredding. Designed for Ubuntu 22.04 (Jammy), VPS, …

Ubuntu Cleanup Script (Safe / Aggressive Modes)

This Gist contains a single Bash script that automates a deep cleanup of an Ubuntu system (Jammy-friendly).

The script includes an interactive safety prompt that adapts the cleanup strategy depending on how the system is used, allowing you to choose between a Safe and an Aggressive cleanup profile.

Everything is intended primarily for server / VPS / minimal Ubuntu systems.


πŸš€ v2rayN + Shadowsocks + TUN (Sing-box) β€” Windows Setup Guide

Platform Core Mode Protocol

Full system VPN-style tunneling using v2rayN, Shadowsocks, and Sing-box TUN mode.

IONOS VPS DNS Hardening Script v3

This project provides a hardened Bash script to enforce persistent, secure DNS configuration on Ubuntu VPS systems hosted on IONOS.

Key improvement vs v2: DHCP is still used for IP/gateway, but DHCP-provided DNS (IONOS 212.227.x.x) is ignored β€” see technical discussion.


Features

@michele-tn
michele-tn / Sublist3r Installation.md
Last active November 23, 2025 11:37
Sublist3r is a Python tool designed to enumerate subdomains of websites using OSINT.

Sublist3r Installation and Usage Guide (Ubuntu 22.04.5 LTS)

Sublist3r is a Python tool designed to enumerate subdomains of websites using OSINT. It helps penetration testers and bug hunters collect and gather subdomains for the domain they are targeting. Sublist3r enumerates subdomains using many search engines such as Google, Yahoo, Bing, Baidu, and Ask. Sublist3r also enumerates subdomains using Netcraft, Virustotal, ThreatCrowd, DNSdumpster, and ReverseDNS.

subbrute was integrated with Sublist3r to increase the possibility of finding more subdomains using bruteforce with an improved wordlist. The credit goes to TheRook who is the author of the subbrute.

image

This document explains how to install, run, and clean up Sublist3r when it is installed directly from the official GitHub repository.

RustDesk Portable Auto Downloader & Configurator (Windows x64)

This repository provides a PowerShell script that automatically downloads, configures, and launches the RustDesk Windows x64 portable client, using only your self-hosted ID server and public key.

It is ideal for:

  • πŸ”§ Mass deployment (RMM, GPO, Intune, etc.)
  • 🧰 Technicians who need a ready-to-use portable RustDesk client
  • πŸ’Ό Environments where software installation is restricted

Note

<#
RustDesk Portable (x64) Auto Downloader & Configurator
-----------------------------------------------------
β€’ Downloads the latest available RustDesk Windows x64 portable client from GitHub
β€’ No installation (single .exe)
β€’ Automatically sets:
- ID server
- Key
(Relay e API non impostati)
β€’ Creates and updates a download log