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 / 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
@phoenixthrush
phoenixthrush / main.py
Last active August 13, 2025 01:59
Nine Men's Morris in Python #Python #NineMenMorris
import pygame
import sys
# Initialize pygame
pygame.init()
# Set up the display dimensions
game_width, game_height = 600, 600 # Original game area size
padding = 50 # Padding around the game area
window_width = game_width + (padding * 2)
@phoenixthrush
phoenixthrush / pimpbunny.py
Last active August 13, 2025 01:58
Python mass downloader for pimpbunny.com #pimpbunny.com #Scraper #Python
"""
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
@phoenixthrush
phoenixthrush / wallpaper.ps1
Last active August 13, 2025 01:58
Sets a random Rule34 image of Albedo or Shalltear as your desktop wallpaper #Windows #Rule34 #Wallpaper
param()
function Get-RandomTag {
$tags = @('albedo_(overlord)','shalltear_bloodfallen')
Get-Random -InputObject $tags
}
function Get-RandomWallpaperUrl {
$tag = Get-RandomTag
$encodedTag = [System.Net.WebUtility]::UrlEncode($tag)
@phoenixthrush
phoenixthrush / fetch_tor_portable.ps1
Last active August 13, 2025 01:58
Fetch latest Tor x86_64 portable #Tor
$baseUrl = "https://dist.torproject.org/torbrowser/"
$directoryListing = Invoke-WebRequest -Uri $baseUrl
$latestVersion = ($directoryListing.Links | Where-Object { $_.href -match "^\d+\.\d+\.\d+/$" } | Sort-Object -Property { [version]$_.href.TrimEnd('/') } -Descending | Select-Object -First 1).href.TrimEnd('/')
$latestVersionUrl = "$baseUrl$latestVersion/tor-browser-windows-x86_64-portable-$latestVersion.exe"
Write-Host $latestVersionUrl
@phoenixthrush
phoenixthrush / aligning-images.md
Last active August 13, 2025 01:57 — forked from DavidWells/aligning-images.md
Guide to aligning images in github readme.md files. https://davidwells.io/snippets/how-to-align-images-in-markdown #Markdown

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@phoenixthrush
phoenixthrush / stress.sh
Last active August 13, 2025 01:57
Stress Test CPU #Linux #stress-ng
stress-ng --cpu 4 --cpu-method matrixprod --timeout 300