Skip to content

Instantly share code, notes, and snippets.

View Alex4386's full-sized avatar
πŸŽ“
μ‘Έμ—…μ‹œμΌœμ€˜

Sanghee Park Alex4386

πŸŽ“
μ‘Έμ—…μ‹œμΌœμ€˜
View GitHub Profile
@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 / 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 / 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 / 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 / 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 / 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 / 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 / .update-homebrew.zsh
Last active April 9, 2021 08:31
A shell-script based Automatic homebrew package manager updater for zsh
brew_update_version=$(date +"%Y%m%d")
brew_update_version_file="$HOME/.homebrew-lastupdate"
brew_update_in_progress_file="$HOME/.homebrew-update-in-progress"
brew_upgrade_required=0
test -f "$brew_update_version_file" || brew_upgrade_required=1
if [[ $brew_upgrade_required -eq 0 ]]; then
this_brew_version=$(cat "$brew_update_version_file")
test "$this_brew_version" = "$brew_update_version" || brew_upgrade_required=1
@Alex4386
Alex4386 / volcano.json
Last active January 1, 2021 13:46
Volcanoes of the Japan - PoC data results of https://github.com/Alex4386/jp-earthquake-volcano-archive
[
{
"id": 101,
"region": "sapporo",
"area": 1,
"lastUpdate": "2020-12-24T09:38:28.459Z",
"name": "Shiretoko-Iozan",
"location": "Hokkaido, Japan",
"craters": [
{
@Alex4386
Alex4386 / icantspeaksushi.txt
Last active December 13, 2020 14:54
How to speak "Sorry, I don't speak sushi" in sushi.
γ™γΏγΎγ›γ‚“γ€η§γ―ε―ΏεΈγŒθ©±γ›γΎγ›γ‚“γ€‚