Skip to content

Instantly share code, notes, and snippets.

@seaque
seaque / hosts
Created April 25, 2025 11:32
Windows hosts file.
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
@seaque
seaque / ffmpeg-batchcropdetect.sh
Created February 15, 2025 12:45
Bash drag and drop script to detect black borders on dropped videos and remove them.
#!/bin/bash
# Check if at least one file is provided
if [ "$#" -eq 0 ]; then
echo "No files provided. Drag and drop video files onto this script."
exit 1
fi
# Temporary file to store crop parameters
TEMP_FILE=$(mktemp)
@seaque
seaque / command.txt
Created December 14, 2024 14:01
FFmpeg very low quality meme material output.
ffmpeg -i in.mp4 -c:v libx264 -vf scale="192:144" -b:v 50k -c:a libopus -ac 1 -ar 16000 -b:a 8K out.mp4
@seaque
seaque / AnalyticsPatch.txt
Created February 17, 2024 12:25
Remove Android application analytics.
[MIN_ENGINE_VER]
1
[PACKAGE]
*
[MATCH_REPLACE]
TARGET:
AndroidManifest.xml
MATCH:
<meta-data.*?analytics.*?/>
REGEX:
@seaque
seaque / custom.css
Last active May 7, 2025 14:38
Custom CSS for BetterDiscord / Replugged / Vencord.
@import url(//fonts.googleapis.com/css2?family=Karla:wght@400;500;600;700&display=swap);
@import url(//raw.githubusercontent.com/KrstlSkll69/vc-snippets/main/OtherStuff/hideGlobalDiscovery.css);
@import url(//ukriu.github.io/cssCord/Other/noDistractions.css);
/* Includes variables */
:root {
/*--server-unread-colour: 255, 255, 255;
--server-hover-colour: 255, 255, 255;
--server-selected-colour: var(--accent, 0, 231, 169);
--server-spacing: 16px;
@seaque
seaque / apk-context-menu.reg
Created June 11, 2023 13:17
ADB and JADX context menu options for APK files in Windows.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\SystemFileAssociations\.apk]
[HKEY_CLASSES_ROOT\SystemFileAssociations\.apk\Shell]
[HKEY_CLASSES_ROOT\SystemFileAssociations\.apk\Shell\Android]
"Icon"="C:\\tools\\apktool\\android.ico"
"Subcommands"=""
@seaque
seaque / download.sh
Last active January 5, 2025 09:52
ReVanced related scripts.
repos=( cli patches integrations )
for i in "${repos[@]}"
do
curl -s https://api.github.com/repos/revanced/revanced-"$i"/releases/latest \
| grep "browser_download_url" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
done
@seaque
seaque / ffmpeg-trim.bat
Last active March 1, 2024 08:16
FFmpeg batch file for trimming videos with downmix 5.1 to stereo and subtitles from source video.
@echo off
:again
set /P start="Start: "
set /P end="End: "
set /P bit="Bitrate: "
set /P max="Maxrate: "
ffmpeg ^
-ss %start% ^
@seaque
seaque / ffmpeg-subs-extract.bat
Last active June 5, 2023 09:13
ffmpeg batch files.
@echo off
:again
ffmpeg ^
-i "%~1" ^
"%~p1%~n1.srt"
if NOT ["%errorlevel%"]==["0"] goto:error
echo %~n1 Done!
shift
@seaque
seaque / my-ublock-dynamic-rules.txt
Last active April 20, 2025 09:56
uBlock Origin static filters and dynamic rules.
no-csp-reports: * true
* * 3p block
* * 3p-frame block
* * 3p-script block
* cdn.cloudflare.net * noop
* cloudflare.com * noop
* cloudfront.net * noop
* gstatic.com * noop
* hcaptcha.com * noop
* jsdelivr.net * noop