Skip to content

Instantly share code, notes, and snippets.

#!/bin/ash
uci show firewall | grep 'Proxy-HTTP-' | while read -r line; do
uci_path="$(echo "$line" | sed -n 's/\(firewall.*\)\.name=.*/\1/p')";
domain="$(echo "$line" | sed -n "s/.*='Proxy-HTTP-\(.*\)'/\1/p")";
ipaddr="$(nslookup -type=a $domain 1.1.1.1 | sed -n 's/address: \(.*\)/\1/pi' | head -n1)";
dest_ip="$(uci get "${uci_path}.dest_ip")";
if [ -z "$uci_path" ] || [ -z "$domain" ] || [ -z "$ipaddr" ] || [ -z "$dest_ip" ]; then
>&2 echo "something went wrong. abort.";
>&2 echo "uci_path='$uci_path'";

2026Q1

  • 한밤중 하트튠 PV

function which {
(Get-Command $args).Source
}
function whoami {
echo $Env:UserName
}
function prompt {
$currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())

2025Q4

  • 22:00 기계 인간 마리 (→ 2025-10-05 TOKYOMX) PV
  • 22:30 제대로 빨지 못하는 흡혈귀쨩 (→ 2025-10-12 AT-X) PV
  • 23:00 아르마쨩은 가족이 되고 싶어 (→ 2025-10-05 AT-X) PV
  • 23:30 아빠는 영웅, 엄마는 정령, 딸인 나는 전생자. (→ 2025-10-05 TOKYOMX/BS日テレ/AT-X) PV
  • 25:00 길티 홀 (→ 2025-10-05 TOKYOMX/BS11) PV
  • 25:05 만지지 마세요 코테사시군 (→ 2025-10-05 TOKYOMX / 2025-10-09 AT-X) PV
@koreapyj
koreapyj / 2025Q3.md
Last active September 16, 2025 20:47

2025Q3

  • 17:00 위치 워치 (→ 2025-04-06 TBS1) PV
  • 22:30 이세계 묵시록 마이노그라 (→ 2025-07-06 TOKYOMX) PV
  • 23:30 게임 센터 소녀와 이문화 교류 (→ 2025-07-06 AT-X) PV
  • 23:30 추남 진성 파이터 (→ 2025-07-06 TOKYOMX) PV
  • 23:45 호텔 인휴먼즈 (→ 2025-07-06 テレ東)

/**
* Javascript SAMI subtitle loader
* @license GPL-3.0-or-later
* @copyright koreapyj, 2014
*/
class SAMILoader {
/**
* Item of TimedText
* @typedef {object} TimedTextItem
@koreapyj
koreapyj / auth-ubus.sh
Created February 24, 2025 15:27
OpenVPN user pass auth script for OpenWRT ubus
#!/bin/sh
. /usr/share/libubox/jshn.sh
userpass=`cat $1`
username=`echo $userpass | awk '{print $1}'`
password=`echo $userpass | awk '{print $2}'`
json_init
json_add_string "username" "$username"

2025Q2

  • 22:30 착각하는 공방주 (→ 2025-03-30 ABEMA) PV
  • 23:30 고릴라 신의 가호를 받은 영애는 왕립기사단의 사랑을 받는다 (→ 2025-04-06 AT-X) PV
  • 23:45 LAZARUS 라자로 (→ 2025-04-06 テレ東) PV
  • 25:05 조금 사랑이 과한 다크엘프가 이세계에서 따라왔다 (→ 2025-04-06 TOKYOMX1) PV
  • 25:20 숨겨! 마키나 양!! (→ 2025-04-06 TOKYOMX1) PV

2025년 1분기 목록

  • 22:00 왕비 교육에서 도망치고 싶은 나 (→ 2025-01-05 TOKYO MX1) PV
  • 22:30 너를 너무너무너무너무 좋아하는 100명의 그녀 2 (→ 2025-01-12 TOKYO MX1) PV
  • 23:30 전대 레드 이세계에서 모험가 되다 (→ 2025-01-12 AT-X) PV
  • 23:45 전수. (→ 2025-01-05 テレ東)

  • 22:00 마법사의 약속 (→ 2025-01-06 TOKYO MX1)
@koreapyj
koreapyj / coupang_search.user.js
Last active October 8, 2025 06:48
잡것들 모음
// ==UserScript==
// @name Coupang Search
// @namespace https://koreapyj.dcmys.kr
// @downloadURL https://gist.github.com/koreapyj/9e79843a4d414b490c3b6c88024a50ae/raw/coupang_search.user.js
// @updateURL https://gist.github.com/koreapyj/9e79843a4d414b490c3b6c88024a50ae/raw/coupang_search.user.js
// @version 2025-10-08
// @description 복수할테다 쿠팡
// @author koreapyj
// @match https://www.coupang.com/np/search?*
// @icon https://www.google.com/s2/favicons?sz=64&domain=coupang.com