Linux 기반으로 작성되어 있습니다.
curl -o https://gist.github.com/dbwodlf3/b42f9404d24d48255bc6ef240b99eec4/raw/update_banlist.sh
chmod +x ./update_banlist.sh위의 명령어를 통해서, shell script 파일을 다운로드 받아주세요.
| #!/bin/bash | |
| tags=$(git tag -i --sort=taggerdate -l "prod-*" | tail -n 3) | |
| first=$(echo "$tags" | head -n 1) | |
| last=$(echo "$tags" | tail -n 1) | |
| range=$(echo "$first..$last") | |
| git-cliff --tag-pattern "(?i)prod-*" $range -o changelog.md |
| import fs from "fs"; | |
| import util from "util"; | |
| const logFile = fs.createWriteStream('output.log', { flags: 'a' }); | |
| console.log = function (msg) { | |
| logFile.write(util.format(msg) + '\n'); // 메시지를 파일에 쓰기 | |
| process.stdout.write(util.format(msg) + '\n'); // 표준 출력에도 쓰기 | |
| }; |
| git status --porcelain | grep '^??' | cut -c 4- | xargs rm -r |
| 1 |
| const INIT_TIME = new Date().getTime(); | |
| const _t = _ => console.log(`${new Date().getTime() - INIT_TIME}ms`); | |
| _t(); | |
| // Browser | |
| const INIT_TIME = performance.now(); | |
| const _t = _ => console.log(`${performance.now() - INIT_TIME}ms`); | |
| _t(); |
| <?php | |
| function my_parse_url($inputString){ | |
| $allowed_protocols = ["https", "http"]; | |
| $input_string = $inputString; | |
| $protocol = ""; | |
| $hostname = ""; | |
| $subdomain = ""; | |
| $domain = ""; |
| import os | |
| import re | |
| import zipfile | |
| root_dir_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "8")); | |
| dirs = os.listdir(root_dir_path); | |
| for dir in dirs: | |
| if(not re.match(".*_file_", dir)): continue; |
| export function generate_hash_color(text, weight={red: 0, green:1, blue: 2}){ | |
| let color1 = 0; | |
| let color2 = 0; | |
| let color3 = 0; | |
| if(text.length==0){ | |
| "rgb(0, 0, 0)"; | |
| } | |
| else if(text.length==1){ | |
| color1 = text.charCodeAt(0) * 2 % 256 |
| ================================================================================ | |
| SMC1.c | |
| ================================================================================ | |
| C언어. | |
| memcpy(ptr_key, instr10, 4); | |
| Binary. | |
| 801: 48 8d 05 4d 00 00 00 lea 0x4d(%rip),%rax # 855 <main+0x6b> | |
| 808: 48 89 45 e8 mov %rax,-0x18(%rbp) | |
| .... | |
| 85c: 48 8b 45 e8 mov -0x18(%rbp),%rax |