Skip to content

Instantly share code, notes, and snippets.

View chalkpe's full-sized avatar
🏳️‍🌈

Seol Park chalkpe

🏳️‍🌈
  • Republic of Korea
View GitHub Profile
@chalkpe
chalkpe / ng-quiz.js
Last active September 8, 2020 18:38
arrQuizDetail.questions.map(q => new DOMParser().parseFromString(q.options.find(o =>
o.questionOptionId === q.chQuestionOptionId).content, 'text/html').body.textContent.trim())
const fs = require('fs')
const puppeteer = require('puppeteer-core')
const MAKER_ENDPOINT = `https://thtl1999.github.io/elf-knight-maker/`
const DATABASE_ENDPOINT = `https://www.db.yugioh-card.com/yugiohdb/card_search.action`
async function fetchCardsFromText (browser, text) {
const page = await browser.newPage()
await page.goto(MAKER_ENDPOINT, {waitUntil: 'networkidle0'})
await page.click('#reset-button')
const {join} = require('path')
const {readdir} = require('fs').promises
const id3 = require('node-id3')
const iconv = require('iconv-lite')
const songs = f => f.isFile() && f.name.endsWith('.mp3')
const albums = f => f.isDirectory() && f.name.startsWith('HTD')
const ls = iconv.skipDecodeWarning = p => readdir(p, {withFileTypes: true})
async function* patch (path) {
@chalkpe
chalkpe / e4s.txt
Created April 1, 2020 23:17
FFXIV Korean macros
 대지의 울림
    
    
━━━━━━━━━━━━━━━━━━━━━━━━━
 바퀴/완갑
 주황      
━━━━━━━━━━━━━━━━━━━━━━━━━
 바위폭탄
 : A→B
 : C→D
@chalkpe
chalkpe / act-cwls.sh
Last active October 11, 2019 23:14
ACT 로그에서 서버 초월 링크셸 대화를 하루씩 텍스트 파일로 추출해 주는 스크립트
#!/usr/bin/env bash
rm -rf ./cwls && awk -F\| '$1 == "00" && $3 == "0025" {
if (!dd[d="./cwls/" substr($2,0,4) "/" substr($2,6,2)]) { system("mkdir -p " d); dd[d] = 1; print d };
print gensub(/\x02[^\x03]+?\x03/, "", "g", "[" substr($2,12,8) "] <" $4 "> " $5) > d "/" substr($2,9,2) ".txt" }' "$@"
@chalkpe
chalkpe / FallenAngel.mml
Created August 8, 2019 12:38
FINAL FANTASY XIV - Fallen Angel (MML)
/* (c) 2010 - 2019 SQUARE ENIX CO., LTD. All Rights Reserved. */
T150
D8A8G8A8 F8G8E8F8
D8A8G8A8 B-8A8G+8A8
B-8A8G8A8 F8G8E8F8
D8A8G8A8 B-8A&A8

문제

트위터 @hibiyasleep

풀이

수비 태세: 받는 회복마법의 효과가 20% 향상

ㄱ) 자애 -> 성소 -> 심판 -> 케알가 -> 신의 이름

자애: 자신의 회복마법 회복량이 20% 증가

{
"sources": [
{
"name": "Final Fantasy XIV",
"path": "/mnt/c/Users/amato/Documents/My Games/FINAL FANTASY XIV - KOREA/screenshots",
"rules": [
"ffxiv_[YYYY][MM][DD]_[HH][mm][ss].png",
"ffxiv_[YYYY][MM][DD]_[HH][mm][ss]_[SSS].png"
]
}, {
@chalkpe
chalkpe / .zshrc
Last active March 31, 2020 23:33
Windows Terminal + WSL Ubuntu + Oh My Zsh
source /home/chalk/antigen.zsh
antigen use oh-my-zsh
antigen bundle git
antigen bundle sudo
antigen bundle common-aliases
antigen bundle command-not-found
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle MichaelAquilina/zsh-you-should-use
@chalkpe
chalkpe / kt-egg.md
Last active February 4, 2019 18:01

KT 에그 간단 설명

모든 요청 기본값

  • POST http://192.168.1.1/cgi-bin/webmain.cgi
  • Content-Type: multipart/form-data

로그인 세션 얻기

요청

이름