Skip to content

Instantly share code, notes, and snippets.

View yuuahp's full-sized avatar
🍊
Working from home

yuuaHP yuuahp

🍊
Working from home
View GitHub Profile
// kotlin ./webp-to-png.main.kts webp-folder
@file:DependsOn("com.sksamuel.scrimage:scrimage-core:4.1.1")
@file:DependsOn("com.sksamuel.scrimage:scrimage-webp:4.1.1")
import com.sksamuel.scrimage.ImmutableImage
import com.sksamuel.scrimage.nio.PngWriter
import java.io.File
import kotlin.system.exitProcess
@yuuahp
yuuahp / chat-to-discord.sh
Created January 4, 2025 09:02
Send Minecraft chat to Discord via webhook. For vanilla Minecraft server.
DISCORD_WEBHOOK_URL="WEBHOOK URL HERE"
# send a message to Discord via webhook
call_webhook() {
curl -X POST \
-H "Content-Type: application/json" \
-d "{\"content\": \"$1\"}" \
"$DISCORD_WEBHOOK_URL"
}
@yuuahp
yuuahp / compose.yml
Created May 4, 2025 10:53
Simple Immich + Nginx configuration with self-signed HTTPS access
name: immich
services:
nginx:
image: nginx:latest
container_name: reverse_proxy
ports:
- 3001:3001
- 3000:3000
volumes:
// ==UserScript==
// @name No t.co Redirects
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Skip t.co redirects on X/Twitter and jump directly to the actual website.
// @author yuua
// @match https://x.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=x.com
// @grant none
// ==/UserScript==