Skip to content

Instantly share code, notes, and snippets.

View unstabler's full-sized avatar
๐Ÿง€
cheese rulez!

Gyuhwan Parkโ˜… unstabler

๐Ÿง€
cheese rulez!
View GitHub Profile
#!/usr/bin/env perl
use 5.010;
use utf8;
use strict;
use warnings;
use JSON;
use LWP::UserAgent;
sub LIST_URL {
@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;
}
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 / 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%;
}
@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 / yasasii-nihongo-ize-prompt.txt
Last active February 12, 2024 00:06
ใ‚„ใ•ใ—ใ„ใซใปใ‚“ใ”-izeใฎใƒ—ใƒญใƒณใƒ—ใƒˆๅ…จๆ–‡
# ์ทจ์ง€ ๋ฐ ๋ชฉํ‘œ
- ๋‹น์‹ ์€ ์ž…๋ ฅ๋ฐ›์€ ์ผ๋ณธ์–ด ๋ฌธ์žฅ์„ ใ‚„ใ•ใ—ใ„ใซใปใ‚“ใ” ๋ฒ„์ „์œผ๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ ์–ด๋ฆฐ์ด ์‚ฌ์šฉ์ž๊ฐ€ ๋ฌธ์„œ ๋‚ด์šฉ์„ ์ดํ•ดํ•˜๊ธฐ ์‰ฝ๋„๋ก ๋„์™€์•ผ๋งŒ ํ•ฉ๋‹ˆ๋‹ค.
- ์ฃผ ์‚ฌ์šฉ์ž์ธต์€ ์ดˆ๋“ฑํ•™์ƒ 1-2ํ•™๋…„ ๋ ˆ๋ฒจ์˜ ์ผ๋ณธ์–ด / ์ดˆ๋ณด์ ์ธ ํ•œ์ž๋ฅผ ๊ตฌ์‚ฌํ•˜๋Š” ์–ด๋ฆฐ์ด์ด๊ธฐ ๋•Œ๋ฌธ์— ์–ด๋ ต๊ฒŒ ๋А๊ปด์งˆ ์ˆ˜ ์žˆ๋Š” ๋‹จ์–ด (ํŠนํžˆ ํ•œ์ž ๋‹จ์–ด) ๋“ฑ์„ ์ดˆ๋“ฑํ•™์ƒ 1-2ํ•™๋…„์˜ ์–ด๋ฆฐ์ด๊ฐ€ ์ดํ•ดํ•˜๊ธฐ ์‰ฌ์šด ๋‹จ์–ด๋กœ ๋Œ€์น˜ํ•ด ์ฃผ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. (eg. ไธๆญฃ -> ใ‚ใ‚‹ใ„)
- ์‚ฌ์šฉ์ž๋Š” ์ž…๋ ฅ ์ตœ์ƒ๋‹จ์— pragma๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ์ถœ๋ ฅ์„ ์กฐ์ ˆํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ pragma๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.
- `!yomi': ใ‚„ใ•ใ—ใ„ใซใปใ‚“ใ”๋กœ์˜ ๋ณ€ํ™˜ ๊ฒฐ๊ณผ์—์„œ ๋ชจ๋“  ํ•œ์ž ์˜†์— ์š”๋ฏธ๊ฐ€๋‚˜๋ฅผ ๋ถ™์ž…๋‹ˆ๋‹ค.
[eg. ไธ่ฆไธๆ€ฅใฎๅค–ๅ‡บๆŽงใˆใฆ -> ๅฟ…่ฆ๏ผˆใฒใคใ‚ˆใ†๏ผ‰ใงใชใ„ๅค–ๅ‡บ๏ผˆใŒใ„ใ—ใ‚…ใค๏ผ‰ใฏๆŽง๏ผˆใฒใ‹๏ผ‰ใˆใพใ—ใ‚‡ใ†ใ€‚]
# ๋ฃฐ
@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 / autocivil.sh
Created August 23, 2024 08:58
๋””์ง€ํ„ธ๋ฏผ๋ฐฉ์œ„๊ต์œก
#!/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 'http://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