Skip to content

Instantly share code, notes, and snippets.

View unstabler's full-sized avatar
๐Ÿซ 
๋‚ด๊ฐ€ ์‚ฌ๋ผ์ ธ์•ผ๋งŒ ๋ชจ๋‘๊ฐ€ ํ–‰๋ณตํ•ด์งˆ ์ˆ˜ ์žˆ์–ด

Gyuhwan Parkโ˜… unstabler

๐Ÿซ 
๋‚ด๊ฐ€ ์‚ฌ๋ผ์ ธ์•ผ๋งŒ ๋ชจ๋‘๊ฐ€ ํ–‰๋ณตํ•ด์งˆ ์ˆ˜ ์žˆ์–ด
View GitHub Profile
@unstabler
unstabler / rosettacommit.SKILL.md
Created May 14, 2026 07:53
์—„๊ฒฉํ•œ ์˜์–ด ์„ ์ƒ๋‹˜ ๋ชจ๋“œ๋กœ ์‚ฌ์šฉ์ž์—๊ฒŒ ์˜๋ฌธ ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€๋ฅผ ๊ฐ•์ œ ํ•™์Šต์‹œํ‚ค๋Š” git-checkpoint ๋ณ€์ข…. ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ํ•œ๊ตญ์–ด๋กœ ์š”์•ฝํ•œ ๋’ค ์‚ฌ์šฉ์ž์˜ ์˜๋ฌธ ์ž…๋ ฅ์„ 0.5์  ๋‹จ์œ„๋กœ ์ฑ„์ ํ•˜๊ณ , ๋ถ€์กฑํ•œ ๊ฒฝ์šฐ ํžŒํŠธ๋‚˜ ๋ชจ๋ฒ” ๋‹ต์•ˆ์„ ์ œ์‹œํ•ฉ๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž๊ฐ€ ๋ช…์‹œ์ ์œผ๋กœ /rosettacommit์„ ํ˜ธ์ถœํ•  ๋•Œ๋งŒ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
Error in user YAML: (<unknown>): did not find expected key while parsing a block mapping at line 1 column 1
---
name: rosettacommit
description: ์—„๊ฒฉํ•œ ์˜์–ด ์„ ์ƒ๋‹˜ ๋ชจ๋“œ๋กœ ์‚ฌ์šฉ์ž์—๊ฒŒ ์˜๋ฌธ ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€๋ฅผ ๊ฐ•์ œ ํ•™์Šต์‹œํ‚ค๋Š” git-checkpoint ๋ณ€์ข…. ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ํ•œ๊ตญ์–ด๋กœ ์š”์•ฝํ•œ ๋’ค ์‚ฌ์šฉ์ž์˜ ์˜๋ฌธ ์ž…๋ ฅ์„ 0.5์  ๋‹จ์œ„๋กœ ์ฑ„์ ํ•˜๊ณ , ๋ถ€์กฑํ•œ ๊ฒฝ์šฐ ํžŒํŠธ๋‚˜ ๋ชจ๋ฒ” ๋‹ต์•ˆ์„ ์ œ์‹œํ•ฉ๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž๊ฐ€ ๋ช…์‹œ์ ์œผ๋กœ /rosettacommit์„ ํ˜ธ์ถœํ•  ๋•Œ๋งŒ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
argument-hint: [--lang LANG] [--bulk] [--no-score] [JOB_DESCRIPTION]
disable-model-invocation: true
allowed-tools: Bash, Read, Grep, Glob, AskUserQuestion
---

rosettacommit

@unstabler
unstabler / fzcd.sh
Created May 4, 2026 20:00
fzcd - fuzzy chdir
# fzcd - fuzzy chdir: find and print a subdirectory matching a suffix pattern
set -euo pipefail
show_usage() {
echo "Usage: fzcd [-a] <path-suffix>" >&2
echo " Find a subdirectory whose path ends with <path-suffix>." >&2
echo " -a Include hidden directories in search" >&2
exit 1
}
@unstabler
unstabler / ppkg-config.bat
Created April 4, 2026 08:50
ppkg-config.bat - Python Core-Only replacement for pkg-config
@echo off & python -x "%~f0" %* & exit /b %errorlevel%
# -----------------------------------------------------------------------------
# ppkg-config.bat - Python Core-Only replacement for pkg-config
#
# Python 3 port implemented by Gemini 3.1 Pro
#
# Original Perl Implementation:
# Copyright (C) 2012 M. Nunberg.
# You may use and distribute this software under the same terms and
# conditions as Perl itself (Artistic License / GPL).
@unstabler
unstabler / autocivil.sh
Last active April 20, 2026 07:13
๋””์ง€ํ„ธ๋ฏผ๋ฐฉ์œ„๊ต์œก
#!/bin/sh
USER_ID='YOUR_USER_ID'
PHPSESSID='YOUR_PHPSESSID'
for idx in `seq 20 30`; do for x in `seq 1 20`; do curl 'https://www.civildefense.co.kr/bb_player/save_time.php?1=1&idx='$idx'&lec_no=2&playtime=16&endtime=999&id='$USER_ID'&time='$x'&next='$(( $idx + 1 ))'&=' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Referer: http://www.civildefense.co.kr/bb_player/hmp_player.php?turn=2' -H 'Cookie: PHPSESSID='$PHPSESSID; done; done
@unstabler
unstabler / wishket-blackbox.css
Last active May 11, 2024 06:23
wishket-blackbox.css - IT ์•„์›ƒ์†Œ์‹ฑ ์„œ๋น„์Šค '์œ„์‹œ์ผ“'์—์„œ ์ง€์›์ž ์ˆ˜ ํ‘œ์‹œ๋ฅผ ์ œ๊ฑฐํ•ฉ๋‹ˆ๋‹ค
/**
* # NAME
* wishket-blackbox.css - IT ์•„์›ƒ์†Œ์‹ฑ ์„œ๋น„์Šค '์œ„์‹œ์ผ“'์—์„œ ์ง€์›์ž ์ˆ˜ ํ‘œ์‹œ๋ฅผ ์ œ๊ฑฐํ•ฉ๋‹ˆ๋‹ค
*
* # DESCRIPTION
*
* > '์•„, ์ € ํ”„๋กœ์ ํŠธ๋Š” ์ง€์›์ž ์ˆ˜๊ฐ€ ๋งŽ์œผ๋‹ˆ๊นŒ ์šฐ๋ฆฌ๊ฐ€ ์ง€์›ํ•ด๋„ ์–ด์ฐจํ”ผ ๋–จ์–ด์งˆ๊ฑฐ์•ผ'
*
* ์ด CSS ์ฝ”๋“œ ์กฐ๊ฐ์€ '์‹  ํฌ๋„ ์ด๋ก '์˜ ๋ถ€์ •์  ์‚ฌ๊ณ  ๋ฐฉ์‹์„ ๋ฐฐ์ œํ•˜๋„๋ก ๋•์Šต๋‹ˆ๋‹ค.
*
@unstabler
unstabler / yasasii-nihongo-ize-prompt.txt
Last active February 12, 2024 00:06
ใ‚„ใ•ใ—ใ„ใซใปใ‚“ใ”-izeใฎใƒ—ใƒญใƒณใƒ—ใƒˆๅ…จๆ–‡
# ์ทจ์ง€ ๋ฐ ๋ชฉํ‘œ
- ๋‹น์‹ ์€ ์ž…๋ ฅ๋ฐ›์€ ์ผ๋ณธ์–ด ๋ฌธ์žฅ์„ ใ‚„ใ•ใ—ใ„ใซใปใ‚“ใ” ๋ฒ„์ „์œผ๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ ์–ด๋ฆฐ์ด ์‚ฌ์šฉ์ž๊ฐ€ ๋ฌธ์„œ ๋‚ด์šฉ์„ ์ดํ•ดํ•˜๊ธฐ ์‰ฝ๋„๋ก ๋„์™€์•ผ๋งŒ ํ•ฉ๋‹ˆ๋‹ค.
- ์ฃผ ์‚ฌ์šฉ์ž์ธต์€ ์ดˆ๋“ฑํ•™์ƒ 1-2ํ•™๋…„ ๋ ˆ๋ฒจ์˜ ์ผ๋ณธ์–ด / ์ดˆ๋ณด์ ์ธ ํ•œ์ž๋ฅผ ๊ตฌ์‚ฌํ•˜๋Š” ์–ด๋ฆฐ์ด์ด๊ธฐ ๋•Œ๋ฌธ์— ์–ด๋ ต๊ฒŒ ๋А๊ปด์งˆ ์ˆ˜ ์žˆ๋Š” ๋‹จ์–ด (ํŠนํžˆ ํ•œ์ž ๋‹จ์–ด) ๋“ฑ์„ ์ดˆ๋“ฑํ•™์ƒ 1-2ํ•™๋…„์˜ ์–ด๋ฆฐ์ด๊ฐ€ ์ดํ•ดํ•˜๊ธฐ ์‰ฌ์šด ๋‹จ์–ด๋กœ ๋Œ€์น˜ํ•ด ์ฃผ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. (eg. ไธๆญฃ -> ใ‚ใ‚‹ใ„)
- ์‚ฌ์šฉ์ž๋Š” ์ž…๋ ฅ ์ตœ์ƒ๋‹จ์— pragma๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ์ถœ๋ ฅ์„ ์กฐ์ ˆํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ pragma๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.
- `!yomi': ใ‚„ใ•ใ—ใ„ใซใปใ‚“ใ”๋กœ์˜ ๋ณ€ํ™˜ ๊ฒฐ๊ณผ์—์„œ ๋ชจ๋“  ํ•œ์ž ์˜†์— ์š”๋ฏธ๊ฐ€๋‚˜๋ฅผ ๋ถ™์ž…๋‹ˆ๋‹ค.
[eg. ไธ่ฆไธๆ€ฅใฎๅค–ๅ‡บๆŽงใˆใฆ -> ๅฟ…่ฆ๏ผˆใฒใคใ‚ˆใ†๏ผ‰ใงใชใ„ๅค–ๅ‡บ๏ผˆใŒใ„ใ—ใ‚…ใค๏ผ‰ใฏๆŽง๏ผˆใฒใ‹๏ผ‰ใˆใพใ—ใ‚‡ใ†ใ€‚]
# ๋ฃฐ
@unstabler
unstabler / Read-only FS on Raspberry Pi.md
Created January 20, 2022 16:03 — forked from thenaterhood/Read-only FS on Raspberry Pi.md
Set up a raspberry pi with ArchLinux or Raspbian with a Read-only root filesystem

Read-only FS on Raspberry Pi

Most embedded devices use a read-only root filesystem. This can make them more resilient to unexpected shutdowns that could otherwise cause data corruption. Depending on your application, you might consider your Pi to be an embedded system. This can also help with some issues that can come from SD card unreliability.

Full instructions and explanations are obtained from this link but you can run these commands directly. I modified some of the instructions for personal convenience.

Login with default username and password: (ArchLinux Arm: alarm, alarm, Raspbian: pi, raspberry)

Optionally enable root over SSH. The rest of these instructions assume you are in root.

nano /etc/ssh/sshd_config

@unstabler
unstabler / pandoc.css
Created November 7, 2019 02:18 — forked from killercup/pandoc.css
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
S3_ENABLED=true
S3_BUCKET=media.mydomain.comใ€€โ†ใ€€่‡ชๅˆ†ใฎไฝœใฃใŸใƒใ‚ฑใƒƒใƒˆๅ(mediaใชใฉใ‚’ใคใ‘ใฆใ‚จใ‚คใƒชใ‚ขใ‚นใ‚’ไฝฟใ†ๅ ดๅˆใฏOptionalใ‚‚่จญๅฎšใ™ใ‚‹)
AWS_ACCESS_KEY_ID=ABCDEFGHIJKLMNOPQRSTใ€€โ†ใ€€่จญๅฎšใ•ใ‚ŒใŸใ‚ขใ‚ฏใ‚ปใ‚นใ‚ญใƒผ
AWS_SECRET_ACCESS_KEY=ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdใ€€โ†ใ€€่จญๅฎšใ•ใ‚ŒใŸใ‚ทใƒผใ‚ฏใƒฌใƒƒใƒˆใ‚ญใƒผ
S3_REGION=ap-northeast-1ใ€€โ†ใ€€ๆฑไบฌใƒชใƒผใ‚ธใƒงใƒณใชใ‚‰ใ“ใ‚Œ
S3_PROTOCOL=https
S3_ENDPOINT=https://s3-ap-northeast-1.amazonaws.comใ€€โ†ใ€€ๆฑไบฌใƒชใƒผใ‚ธใƒงใƒณใชใ‚‰ใ“ใ‚Œ
# Optional alias for S3 (e.g. to serve files on a custom domain, possibly using Cloudfront or Cloudflare)
S3_CLOUDFRONT_HOST=media.mydomain.comใ€€โ†ใ“ใ“ใซ่‡ชๅˆ†ใฎ่จญๅฎšใ—ใŸ Cloudflare ใฎ CNAME ๅ…ฅใ‚Œใ‚‹
@unstabler
unstabler / helloworld.js.sh
Created April 12, 2019 19:07
์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ์ด๋ฉด์„œ ์‰˜ ์Šคํฌ๋ฆฝํŠธ์ธ ์Šคํฌ๋ฆฝํŠธ
function print() {
//usr/bin/true && echo $@; return 0;
/;# /; console.log(...arguments);
}
function func1() {
//usr/bin/true && print "Hello from shell-script! :^)"; return 0;
/;# /; print("Hello from JavaScript :^)");
return 0;
}