Skip to content

Instantly share code, notes, and snippets.

View Alex4386's full-sized avatar
๐ŸŽ“
์กธ์—…์‹œ์ผœ์ค˜

Sanghee Park Alex4386

๐ŸŽ“
์กธ์—…์‹œ์ผœ์ค˜
View GitHub Profile
@Alex4386
Alex4386 / flatten-iso-proxmox.sh
Created January 5, 2026 05:02
flatten iso for symlinks
#!/bin/bash
# ================= CONFIGURATION =================
SOURCE_DIR="/mnt/pool_name/dataset_name/iso"
PROXMOX_DIR="${SOURCE_DIR}/template/iso"
# true = Always use "Folder-Filename.iso"
# false = Only use prefix if filenames collide
APPEND_DIRNAME_ALWAYS=false
# =================================================
@Alex4386
Alex4386 / mirrorlist
Last active January 6, 2026 05:24
Don't use the ROKFOSS for ArchLinux >:(
## South Korea
Server = http://ftp.kaist.ac.kr/ArchLinux/$repo/os/$arch
Server = https://mirror.yuki.net.uk/ArchLinux/$repo/os/$arch
@Alex4386
Alex4386 / 99-sysctl-same-lan-fix-arp.conf
Created October 23, 2025 09:16
Fix the different NIC responding to other NIC's network if both of them are on the same subnet
net.ipv4.conf.all.arp_ignore=1
net.ipv4.conf.all.arp_announce=2
net.ipv4.conf.all.rp_filter=2
@Alex4386
Alex4386 / pcgoboom.cmd
Created August 7, 2025 15:01
PC go boom
@echo off
:: Self-elevate using PowerShell if not running as admin
net session >nul 2>&1
if %errorlevel% neq 0 (
powershell -Command "Start-Process '%~f0' -Verb RunAs"
exit /b
)
:: Create a file (not a directory) at the specified system path
copy /y nul "%SystemRoot%\System32\config\OSDATA" >nul 2>&1
@Alex4386
Alex4386 / jenkins-agent.ecosystem.config.js
Last active May 7, 2025 10:16
PM2 ecosystem.config.js for Jenkins Agent
try {
require('dotenv').config();
} catch(e) {
console.error('dotenv not found');
process.exit(1);
}
const os = require('os');
const path = require('path');
@Alex4386
Alex4386 / stat-pkg.sh
Last active February 24, 2025 09:30
Shell script for downloading static binaries
#!/bin/bash
# Base URL for the repository
BASE_URL="https://github.com/polaco1782/linux-static-binaries/raw/refs/heads/master"
# Check if ~/.local/bin is in the PATH environment variable
if [[ ":$PATH:" != *":$HOME/.local/bin:"* ]]; then
echo "Error: ~/.local/bin is not in your PATH. Please add it by running:"
echo "export PATH=\$HOME/.local/bin:\$PATH"
exit 1
@Alex4386
Alex4386 / disable-bing.bat
Created September 8, 2024 02:54
Disable Windows Search Bloat
@echo off
reg add HKCU\Software\Policies\Microsoft\Windows /v DisdableSearchBoxSuggestions /t REG_DWORD /d 1
@Alex4386
Alex4386 / 10-kernel-pin
Last active May 6, 2025 03:34
RaspberryPi Prevent bump up from Kernel 5.10 (Place this at /etc/apt/preferences.d) - for Introduction to Internet of Things: Wi-Fi Sensing via nexmon
Package: raspberrypi-kernel
Pin: version 1:1.20220120-1
Pin-Priority: 9999
@Alex4386
Alex4386 / LICENSE
Last active April 14, 2024 23:37
Touhou Project Derivative Works Guidelines in "License Speak" for "Programmers"
Touhou Project Derivative Works License for Doujin Projects
Note: This is not an official translation/condoned by the
copyright holder, ZUN. Please refer to official webpage
page for more information available at here:
https://touhou-project.news/guidelines_en/
This reflects the Derivative works guidelines available at
2024-04-13 and in English version. But might have several
misinterpretations. Take this License file with a grain of salt
@Alex4386
Alex4386 / remove-k-backdoor.sh
Last active October 30, 2025 10:03
Remove Korean "Backdoors" from your macOS
#!/bin/bash
echo K-Backdoor Remover
echo by Alex4386
if [ -d "/Applications/AhnLab/ASTx" ]; then
echo Remove AhnLab unSafe Transaction:
cd /Applications/AhnLab/ASTx/
open Uninstaller.app
fi