Skip to content

Instantly share code, notes, and snippets.

View Alex4386's full-sized avatar
🎓
졸업시켜줘

Sanghee Park Alex4386

🎓
졸업시켜줘
View GitHub Profile
@Alex4386
Alex4386 / IJustReallyWantedToPlayMinecraft.py
Last active January 17, 2021 15:47 — forked from RealLogical/IJustWantedToPlayMinecraft.py
Editted IJustWantedToPlayMinecraft using Recursion
# DP 써도 되긴 하는데 그냥
# Recursive 로 싸아악
# 색깔 코드
# A B C D E
colors = [ 0, 0, 0, 0, 0 ]
# 조건에 충족하는 지 확인하는 코드
def check_condition(colors):
return (
@Alex4386
Alex4386 / Joycon Support.desktop
Last active February 24, 2021 09:34
QJoypad Configuration for Nintendo Switch: ~/.qjoypad3
[Desktop Entry]
# The type as listed above
Type=Application
# The version of the desktop entry specification to which this file complies
Version=0.0.1
# The name of the application
Name=Joycon Support
@Alex4386
Alex4386 / setup.sh
Last active February 24, 2021 10:33
Switchroot On The Go Script
#!/bin/bash
# Switchroot config
echo "Alex4386's Switchroot-On-The-Go Script"
echo
echo "This software will download various utility to make sure you switchroot on the go with joycon"
echo
echo "Starting up..."
echo
@Alex4386
Alex4386 / wordpress.conf
Created March 25, 2021 14:22
Wordpress Nginx Rule
index index.php index.html index.htm /index.php;
if (!-e $request_filename) {
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;
}
location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
@Alex4386
Alex4386 / a-nginx-conf.conf
Created March 25, 2021 14:32
Personal collection of Nginx conf
# This is the collection of nginx conf files that I use
@Alex4386
Alex4386 / parseNatlId.ts
Last active April 4, 2025 01:07
한국 주민등록번호 파싱용 스크립트
const koNatlIDRegex = /^([0-9]{6})(-|)([0-9]{7})$/;
function getBirthdayFromNatlID(idNo: string): {
year: number;
month: number;
date: number;
} | null {
const formatValidityCheck = koNatlIDRegex.test(idNo);
if (!formatValidityCheck) return null;
@Alex4386
Alex4386 / devifier.sh
Last active January 2, 2022 07:05
An Automatic development environment Setup for 사이버지식정보방 HamoniKR Military Edition
#!/bin/bash
# version of this script
VERSION="0.2.0"
WORKING_DIR=$(pwd)
# since HamoniKR does give a f--- on .profile, use .bashrc instead
TARGET="$HOME/.bashrc"
# These are the styling variables that... gives you an eyecandy I guess?
@Alex4386
Alex4386 / setup-certbot.sh
Last active September 11, 2022 02:56
certbot setup script
#!/bin/bash
sudo snap install core
sudo snap refresh core
sudo snap install --classic certbot
sudo snap set certbot trust-plugin-with-root=ok
sudo snap install certbot-dns-cloudflare
sudo snap connect certbot:plugin certbot-dns-cloudflare
@Alex4386
Alex4386 / code-server.ecosystem.config.js
Created September 12, 2022 01:49
code-server ecosystem.config.js
module.exports = {
apps : [{
name: "code-server",
interpreter: "/bin/bash",
cmd: "code-server serve-local --disable-telemetry --without-connection-token"
}]
}
@Alex4386
Alex4386 / xoa.ecosystem.config.js
Created November 12, 2022 10:48
Xen Orchestra PM2
module.exports = {
apps: [
{
name: 'Xen Orchestra',
cwd: './packages/xo-server/',
script: 'yarn',
args: ['start'],
env: {
// You should configure it here.
NODE_ENV: 'production',