Skip to content

Instantly share code, notes, and snippets.

View KokoseiJ's full-sized avatar
🏠
Y'all, Stay home with your IDE.

Wonjun Jung KokoseiJ

🏠
Y'all, Stay home with your IDE.
View GitHub Profile
@KokoseiJ
KokoseiJ / config_mon.sh
Created December 10, 2025 10:44
Wayland Monitor detection and configuration based on model number
#!/bin/bash
MAIN_MODEL="D32L251"
SUB_MODEL="T2454pA"
INTERNAL_MODEL="LP140WU4-SPK1"
WLR_RANDR=$(wlr-randr)
MAIN_PORT=$(printf "$WLR_RANDR" | grep $MAIN_MODEL | grep -o '^[^ ]*')
SUB_PORT=$(printf "$WLR_RANDR" | grep $SUB_MODEL | grep -o '^[^ ]*')
@KokoseiJ
KokoseiJ / bg.sh
Created December 10, 2025 10:43
wallpaper rotation using swaybg
#!/bin/bash
while true; do
swaybg -m fill -i $(find ~/orangestar/4x_esrgan -type f -name "*.png" -or -name "*.jpg" | shuf -n 1) &
sleep 3;
kill $PIDTOKILL;
sleep 300;
PIDTOKILL=$(pidof swaybg);
done
@KokoseiJ
KokoseiJ / ardour-x-mingw-fix.patch
Created November 17, 2025 16:37
Fix for ardour-build-tools/x-mingw.sh for preparing Ardour mingw build chain
diff --git a/x-mingw.sh b/x-mingw.sh
index 45d5a1f..23b1b5a 100755
--- a/x-mingw.sh
+++ b/x-mingw.sh
@@ -40,8 +40,8 @@
### influential environment variables
-: ${MAKEFLAGS=-j4}
-: ${STACKCFLAGS="-O2 -g"}
@KokoseiJ
KokoseiJ / taikoIO.cpp
Last active July 13, 2025 08:28
experimental Taiko no Tatsujin IO implementation for ESP32
#include <Arduino.h>
#include <PN532.h>
#include <PN532_SPI.h>
#include <PN532_debug.h>
#include <esp_adc/adc_oneshot.h>
// #define DEBUG
#define CARD_RESET_INTERVAL 1000
@KokoseiJ
KokoseiJ / compose.yml
Created June 24, 2025 08:08
Docker Deluge setup with PIA
name: deluge-pia
services:
pia:
image: thrnz/docker-wireguard-pia
cap_add:
- NET_ADMIN
- SYS_MODULE
env_file: .env
environment:
@KokoseiJ
KokoseiJ / lockdown.bat
Last active April 20, 2025 23:21
Enable System Lockdown features for Arcade Embedded Systems
net user administrator /active:yes
dism /online /enable-feature /featureName:Client-EmbeddedLogon /all
bcdedit.exe -set {globalsettings} advancedoptions false
bcdedit.exe -set {globalsettings} optionsedit false
bcdedit.exe -set {globalsettings} bootuxdisabled on
@KokoseiJ
KokoseiJ / uwf_disable.bat
Created March 29, 2025 03:47
UWF management scripts
echo off
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
) ELSE (
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
)
@KokoseiJ
KokoseiJ / clock.html
Created March 29, 2025 03:07
Simple JS clock
<!DOCTYPE html>
<html>
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
<style>
body {margin: 0; padding: 0;}
* * {margin: 0; padding: 0;}
p#text {
@KokoseiJ
KokoseiJ / torrent_hardlink.py
Last active February 8, 2025 04:31
Torrent hardlink duplicator
@KokoseiJ
KokoseiJ / startStream.bat
Created November 9, 2024 05:06
Zenith Studio stream script
@echo off
echo Scheduling Youtube Broadcast...
start /MIN /D "C:\Program Files\Google\Chrome\Application\" chrome.exe --profile-directory="Profile 1" "https://script.google.com/macros/s/AKfycbzuJEOnUuFaWvFEmFwpJdX7szbNkPw4XskdBCDhQ3TMO6S7O-I1Er-CNDJvlnd-U7v-/exec/onboot?gameId=pump&isUnlisted=false"
timeout 15
echo Starting OBS Studio...
start /D "C:\Program Files\obs-studio\bin\64bit" obs64.exe --profile "pump" --scene "PIU Studio Stream" --startstreaming --disable-shutdown-check
timeout 15