Skip to content

Instantly share code, notes, and snippets.

@ioxorg
ioxorg / block_bittorrent.sh
Created March 6, 2025 20:01
Block BitTorrent via iptabls.
#!/usr/bin/env bash
echo "Applying Torrent blocking rules..."
# Block Torrent algo string using Boyer-Moore (bm)
BLOCK_STRINGS_BM=(
"BitTorrent"
"BitTorrent protocol"
"peer_id="
".torrent"
"announce.php?passkey="
"torrent"
@ahbanavi
ahbanavi / nyaa_rss_check.sh
Last active February 18, 2025 19:23
Nyaa.si RSS Feed Monitor with Telegram Notifications
#!/bin/bash
# RSS Feed Monitor for Nyaa.si
# ==========================
# This script monitors nyaa.si RSS feed for new items matching a keyword and sends
# notifications via Telegram.
# By default, this script only checks for english-translated anime items.
#
# Requirements:
# - curl
@ahbanavi
ahbanavi / switch_interface_ssh.sh
Last active July 3, 2024 18:16
swich / watch wan interfaces on router to swich between them based on cron or usage
#!/bin/bash
interface=$1
# Check if the interface is valid and set the other interface
if [[ $interface == "wan" ]]; then
other_interface="wanb"
elif [[ $interface == "wanb" ]]; then
other_interface="wan"
else
V2ray Tunnels
install v2ray
sudo apt install speedtest-cli
apt-get update -y && apt-get upgrade -y
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
@mahmoud-eskandari
mahmoud-eskandari / README.md
Last active April 16, 2025 09:38
Install v2ray on Bridge:(Ubuntu +18 via systemd) - Upstream (Ubuntu +18/CentOS +7 via docker)

پنل x-ui

پنل تحت وب مدیریت V2ray و ساخت کاربر و مدیریت سرور

mkdir x-ui && cd x-ui
docker run -itd --network=host \
    -v $PWD/db/:/etc/x-ui/ \
 -v $PWD/cert/:/root/cert/ \
@afzouni
afzouni / shit-for-brains.md
Last active October 27, 2022 13:26
Shit for Brains - Block List Farsi Twitter

Total Accounts: 50,550 (2022-09-24)

Block List

List of Accouns is Here contains JSON, CSV and Raw Text.

Accouts gathering using Like Blockers and below links are theirs API.

Changelog:

  • 2022-09-19 (1 to 52)
  • 2022-09-24 (53 to 242) - by @torabkheslat and @MohammadJavadJamali
@ofou
ofou / servers.csv
Created April 11, 2021 06:15
List of servers to test speedtest-cli
We can't make this file beautiful and searchable because it's too large.
Country,City,Provider,Host,ID
Abkhazia,Sukhum,Aquafon GSM,62.182.8.78:8080,9058
Abkhazia,Sukhum,"Systema, LTD",cyxym.net:8080,5089
Abkhaziya,Sukhum,A-Mobile,speedtest.a-mobile.biz:8080,9714
Afghanistan,Herat,Afghan Wireless,hrtspeedtest.afghan-wireless.com:8080,9622
Afghanistan,Kabul,Afghan Telecom,sp1.afghantelecom.af:8080,11019
Afghanistan,Kabul,etisalat Afghanistan,speedtest.etisalat.af:8080,21807
Afghanistan,Kabul,Afghan Wireless,speedtest.afghan-wireless.com:8080,5189
Afghanistan,Kabul,Afghan Wireless Communication Company,kdzspeedtest.afghan-wireless.com:8080,13501
Afghanistan,Kabul,Insta Telecom,speedtest.instatelecom.com:8080,12798
@devnoname120
devnoname120 / My macOS setup.md
Last active May 11, 2025 09:04
My macOS setup

ℹ️ Enable iCloud end-to-end encryption:

  • Nobody knows that, but iCloud actually supports end-to-end encryption (see “Advanced Data Protection for iCloud”) but it's disabled by default. If you care about data privacy, you should turn it on.
    • System settingsApple IDiCloud → Set Advanced Data Protection to On.
    • System settingsApple IDiCloud → Disable Access iCloud Data on the Web.
  • It supports almost all the native Apple apps, with the notable exceptions of iCloud Mail, Contacts, and Calendars. See official data protection matrix for more info.

Table of Contents

@soderlind
soderlind / Install.txt
Last active September 7, 2024 05:45
macOS DoH! (DNS over HTTPS) using cloudflared
1) Install cloudflared using homebrew:
brew install cloudflare/cloudflare/cloudflared
2) Create /usr/local/etc/cloudflared/config.yaml, with the following content
proxy-dns: true
proxy-dns-upstream:
- https://1.1.1.1/dns-query
- https://1.0.0.1/dns-query
@gdurastanti
gdurastanti / parallels-reset.sh
Created August 9, 2017 14:00
Reset Parallels' trial
#!/bin/sh
# Reset Parallels Desktop's trial and generate a casual email address to register a new user
rm /private/var/root/Library/Preferences/com.parallels.desktop.plist /Library/Preferences/Parallels/licenses.xml
jot -w pdu%[email protected] -r 1