Skip to content

Instantly share code, notes, and snippets.

View phoenixthrush's full-sized avatar
🦝
coding through nights

lulu phoenixthrush

🦝
coding through nights
View GitHub Profile
@phoenixthrush
phoenixthrush / mac_to_ipv6_link_local_converter.py
Created December 5, 2025 08:54
A command-line tool that converts a MAC address into its IPv6 link-local address by building the EUI-64 interface ID, inserting FF:FE, flipping the UL-bit, and outputting both full and compressed LLA formats. #IPv6 #EUI64 #Networking
@phoenixthrush
phoenixthrush / bellesoft-java.sh
Created November 15, 2025 15:47
BellSoft Java 21 Repo #BellSoft #Java #Minecraft #Apt
# Create keyring directory if it doesn't exist
sudo mkdir -p /etc/apt/keyrings
# Download and store BellSoft GPG key
wget -q -O - https://download.bell-sw.com/pki/GPG-KEY-bellsoft | sudo gpg --dearmor -o /etc/apt/keyrings/bellsoft-archive-keyring.gpg
# Add BellSoft APT repository
echo "deb [signed-by=/etc/apt/keyrings/bellsoft-archive-keyring.gpg] https://apt.bell-sw.com/ stable main" | sudo tee /etc/apt/sources.list.d/bellsoft.list
sudo apt update
@phoenixthrush
phoenixthrush / disable_gamingoverlay.bat
Last active August 13, 2025 02:05
How to stop the ms-gamingoverlay popup #Windows #Registry #GameConfigStore #GameDVR
reg add HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR /f /t REG_DWORD /v "AppCaptureEnabled" /d 0
reg add HKEY_CURRENT_USER\System\GameConfigStore /f /t REG_DWORD /v "GameDVR_Enabled" /d 0
@phoenixthrush
phoenixthrush / fetch.sh
Last active November 7, 2025 00:02
Mass download xHamster creator profiles #Bash #xhamster.com #Scraper
#!/bin/env bash
while read -r url; do
creator="${url##*/}"
mkdir -p "./$creator"
archive="./$creator/archive.txt"
curl -s "$url" | grep -o 'https://xhamster.com/videos/[^"]*' | sort -u | while read -r video; do
yt-dlp -P "./$creator" --download-archive "$archive" "$video"
done
done < links.txt
@phoenixthrush
phoenixthrush / fetch.sh
Last active August 13, 2025 02:04
yt-dlp vr.stripchat.com #Python #stripchat.com #Scraper
# https://github.com/yt-dlp/yt-dlp/blob/6bee0016d7c06831e15a1a70ff1e7c391d41b4b4/yt_dlp/extractor/stripchat.py
@phoenixthrush
phoenixthrush / main.py
Last active August 13, 2025 02:01
Extract instagram.com cookies.txt #Cookies #Instagram #Python
import browser_cookie3
import time
# Get cookies from Brave for Instagram
cookies = browser_cookie3.brave(domain_name='instagram.com')
# Save to cookies.txt in Netscape format
with open("cookies.txt", "w") as f:
f.write("# Netscape HTTP Cookie File\n")
f.write("# This file was generated by browser-cookie3\n\n")
@phoenixthrush
phoenixthrush / layout-grid-injector.user.js
Last active August 13, 2025 02:01
Adds layout=grid param to all links on file browse served by Caddy #Caddy #FileBrowser #UserScript
// ==UserScript==
// @name Layout Grid Injector
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Adds layout=grid param to all links on file browse served by Caddy
// @match https://files.bla.local/*
// @grant none
// ==/UserScript==
(function() {
@phoenixthrush
phoenixthrush / main.py
Last active August 13, 2025 02:00
Video Thumbnail Grid Generator #Thumnail #FFmpeg #Python
"""
Copyright (c) 2025 phoenixthrush
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@phoenixthrush
phoenixthrush / translate.py
Last active August 13, 2025 01:59
Translate ASS Dialogues #Subtitles #Translation
"""
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
@phoenixthrush
phoenixthrush / baka.py
Last active August 13, 2025 01:59
Python mass downloader for baka.ms (images only) #baka.ms #Python #Scraper
"""
MIT License
Copyright (c) 2025 phoenixthrush
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is