Skip to content

Instantly share code, notes, and snippets.

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

Sanghee Park Alex4386

๐ŸŽ“
์กธ์—…์‹œ์ผœ์ค˜
View GitHub Profile
@Alex4386
Alex4386 / thwiki-crawler.js
Last active March 9, 2021 10:51
Mirror of Character List of Touhou Wiki
const data = [];
const characters = $0.getElementsByTagName("li")
for (const character of characters) {
const charName = character.getElementsByTagName("a")[0].innerText;
console.log(charName);
data.push(charName);
}
@Alex4386
Alex4386 / db-jinda-parser.js
Created December 10, 2019 05:54
์ดํ˜ธ์‹ ์•„์ €์”จ์˜ ํ•œํŽธ ๋‚˜๋ผ๊ฐ€ ๋””๋น„์ง„๋‹ค์—์„œ ํ•ต์‹ฌ์„ ์ถ”์ถœํ•ด ๋ƒ…๋‹ˆ๋‹ค. ๋ธŒ๋ผ์šฐ์ € ์ฝ˜์†”์—์„œ ์ด ๊ฒƒ์„ ์‹คํ–‰ ํ•˜์„ธ์š”.
try {
let e;
let tweets;
} catch(e) { }
d = document;
tweets = d.getElementsByClassName("r-1j3t67a");
for ( const tweet of tweets ) {
try {
@Alex4386
Alex4386 / ASM4Newbies.md
Last active December 3, 2019 10:43
16-bit assembly information for contributing ReC98 Project

Registers

  • ax, bx, cx, dx general purpose registers (16 bits)

ah: 8bit from front (a-HIGH)
al: 8bit from back (a-LOW)

  • ip, sp, bp ip: instruction pointer
    sp, bp: stack stuff. get it?
@Alex4386
Alex4386 / .zshrc
Created November 6, 2019 10:58
NEW .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# whether you need verbose boot results: 0 to disable
VERBOSE=0
# Verbose Terminal Start
if [ ! $VERBOSE = 0 ]; then
figlet Alex4386
echo "Copyright (c) Alex4386"
@Alex4386
Alex4386 / mac-addr-changer.sh
Created November 1, 2019 11:25
The MAC Address Changer
#!/bin/bash
echo "The Mac Changer"
echo
echo "Copyright (c) Alex4386, Distributed under HRPL"
read -p "Type Interface you want to change: " interface
read -p "Type Mac Address you want to change: " mac
echo
echo Backing up your previous mac
ifconfig $interface | grep ether > mac_bak.txt
echo Backup is now available at mac_bak.txt
@Alex4386
Alex4386 / SevenSegments.h
Last active September 23, 2019 05:35
Seven Segments Display Library for Arduino
typedef struct SevenSegmentCombination {
bool pinA;
bool pinB;
bool pinC;
bool pinD;
bool pinE;
bool pinF;
bool pinG;
} SevenSegmentCombination;
@Alex4386
Alex4386 / sevensegments.ino
Last active September 17, 2019 09:21
SevenSegmentsDisplay Library for Arduino
typedef struct SevenSegmentCombination {
bool pinA;
bool pinB;
bool pinC;
bool pinD;
bool pinE;
bool pinF;
bool pinG;
} SevenSegmentCombination;
@Alex4386
Alex4386 / remove-ahnlab.sh
Created August 29, 2019 11:04
Simple shell script to remove AhnLab (un)Safe Transaction from your precious macOS system
#!/bin/bash
echo Remove AhnLab unSafe Transaction:
cd /Applications/AhnLab/ASTx/
open Uninstaller.app
@Alex4386
Alex4386 / jotmax2usable.sh
Last active August 15, 2019 22:31
Simple shell script to make TmaxOS "usable" (But It doesn't make garbage less stinky)
#!/bin/bash
echo "Add Debian Sources.list"
sudo echo "deb http://ftp.kr.debian.org/debian/ stable main contrib non-free" >> /etc/apt/sources.list
sudo echo "deb-src http://ftp.kr.debian.org/debian/ stable main contrib non-free" >> /etc/apt/sources.list
sudo apt update
sudo apt upgrade -y
sudo apt install dh-python
sudo apt install -f
@Alex4386
Alex4386 / launch-idrac.sh
Last active August 9, 2019 11:58
domistyle/docker-idrac6 launch
#!/bin/bash
echo ===================================
echo " _ ____ ____ _ ____ __ "
echo "(_) _ \\| _ \\ / \\ / ___/ /_ "
echo "| | | | | |_) | / _ \\| | | '_ \\ "
echo "| | |_| | _ < / ___ \\ |__| (_) |"
echo "|_|____/|_| \\_\\/_/ \\_\\____\\___/ "
echo ===================================