Skip to content

Instantly share code, notes, and snippets.

View SonnyRR's full-sized avatar
🧿

Vasil Kotsev SonnyRR

🧿
View GitHub Profile
@SonnyRR
SonnyRR / ublock-origin-filters.txt
Created March 4, 2025 11:21
🛑 Custom filters for uBlock Origin
! Youtube fixes
www.youtube.com##.ytd-rich-section-renderer.style-scope > .ytd-rich-shelf-renderer.style-scope
www.youtube.com##.ytp-gradient-bottom
! Prevent meta tracking
$3p,to=facebook.*|instagram.com,from=~facebook.*|~instagram.com|~messenger.com|~threads.net
@SonnyRR
SonnyRR / RARBG DB Magnet Search View.sql
Last active March 14, 2025 09:17
🔍Easily query the RARBG torrent sqlite database.
-- View to easily query the leaked RARBG torrent DB.
CREATE VIEW magnet_links as
SELECT id, title, cat, size, 'magnet:?xt=urn:btih:' || hash as magnetLink, imdb, dt
FROM items
ORDER BY dt DESC;
-- Example query:
SELECT * FROM magnet_links
WHERE title LIKE '%Apocalypse.Now.1979.Theatrical%'
LIMIT 501
@SonnyRR
SonnyRR / optimize-wsl-vdisk.ps1
Last active May 21, 2023 17:39
Optimize WSL2 virtual disk.
# Shutdown WSL2
wsl --shutdown
# If Hyper-V management tools + powershell module is enabled
optimize-vhd -Path "$($env:USERPROFILE)\AppData\Local\Docker\wsl\data\ext4.vhdx" -Mode full
# Otherwise use diskpart
diskpart
select vdisk file="$($env:USERPROFILE)\AppData\Local\Docker\wsl\data\ext4.vhdx"
attach vdisk readonly
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install