Skip to content

Instantly share code, notes, and snippets.

@dowonkang
dowonkang / toss-frontend-rules.mdc
Created April 23, 2025 05:39 — forked from toy-crane/toss-frontend-rules.mdc
토스 프론트엔드 가이드라인 기반으로 만든 Cursor rule
# Frontend Design Guideline
This document summarizes key frontend design principles and rules, showcasing
recommended patterns. Follow these guidelines when writing frontend code.
# Readability
Improving the clarity and ease of understanding code.
@dowonkang
dowonkang / dev.xml
Created December 10, 2024 10:35
Dev Feeds
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Feeds of Dowon Kang tagged as Dev from Inoreader [https://www.inoreader.com]</title>
</head>
<body>
<outline text="Dev" title="Dev">
<outline text="44BITS" title="44BITS" type="rss" xmlUrl="https://www.44bits.io/ko/feed/all" htmlUrl="https://www.44bits.io/"/>
<outline text="A List Apart" title="A List Apart" type="rss" xmlUrl="https://alistapart.com/main/feed/" htmlUrl="http://alistapart.com/"/>
<outline text="Adrian Roselli" title="Adrian Roselli" type="rss" xmlUrl="https://adrianroselli.com/feed" htmlUrl="http://adrianroselli.com/"/>
@dowonkang
dowonkang / user.js
Last active January 3, 2024 03:13 — forked from brainfucksec/user.js
user.js - brainfucksec
/*********************************************************************
*
* name: user.js | brainfucksec
* descr.: Mozilla Firefox configuration file: `user.js`
* version: 0.20.1
* date: 2023-10-15
* url: https://gist.github.com/brainfucksec/68e79da1c965aeaa4782914afd8f7fa2
* maintainer: brainf+ck
*
* info:
@dowonkang
dowonkang / ffmpeg_frames.sh
Created December 2, 2022 01:52 — forked from loretoparisi/ffmpeg_frames.sh
Extract all frames from a movie using ffmpeg
# Output a single frame from the video into an image file:
ffmpeg -i input.mov -ss 00:00:14.435 -vframes 1 out.png
# Output one image every second, named out1.png, out2.png, out3.png, etc.
# The %01d dictates that the ordinal number of each output image will be formatted using 1 digits.
ffmpeg -i input.mov -vf fps=1 out%d.png
# Output one image every minute, named out001.jpg, out002.jpg, out003.jpg, etc.
# The %02d dictates that the ordinal number of each output image will be formatted using 2 digits.
ffmpeg -i input.mov -vf fps=1/60 out%02d.jpg
@dowonkang
dowonkang / plink-plonk.js
Created February 21, 2020 00:54 — forked from tomhicks/plink-plonk.js
Listen to your web pages

(a gist based on the old toolmantim article on setting up remote repos)

To collaborate in a distributed development process you’ll need to push code to remotely accessible repositories.

This is somewhat of a follow-up to the previous article setting up a new rails app with git.

For the impatient

Set up the new bare repo on the server:

@dowonkang
dowonkang / ftsubset.sh
Created September 9, 2019 01:55
otf/ttf 폰트 서브셋 후 woff, woff2 형식으로 변환
#!/usr/bin/env bash
# - 폰트 서브셋을 위한 pyftsubset의 단순한 wrapper 스크립트임
# - fonttools Python 라이브러리를 사용하므로 의존 패키지들 설치
# pip install fonttools[woff] brotli zopfli
# - 본 스크립트 파일을 실행 가능토록 준비
# - 실행 권한 부여: chmod +x ftsubset.sh
# - 접근 가능한 경로($PATH 환경 변수에 있는 경로)로 이동
# - 폰트 파일들이 있는 디렉토리에 서브셋 할 문자들을 담은 텍스트 파일 준비
# (예: https://github.com/spoqa/spoqa-han-sans/blob/master/Subset/SpoqaHanSans/glyphs.txt)
# - `ftsubset.sh glyphs.txt` 실행
@dowonkang
dowonkang / remove-youtube-watch-later-videos.js
Created July 29, 2019 07:43
Remove all YouTube watch later videos
(function() {
// https://www.youtube.com/playlist?list=WL&disable_polymer=true
function removeVideo() {
const removeButton = document.querySelector("button.pl-video-edit-remove");
if (removeButton) {
removeButton.click();
} else {
const loadMoreButton = document.querySelector("button.load-more-button");
if (loadMoreButton) {
loadMoreButton.click();
@dowonkang
dowonkang / delete-slack-messages.js
Created February 14, 2019 07:47 — forked from firatkucuk/delete-slack-messages.js
Deletes slack public/private channel and chat messages.
#!/usr/bin/env node
// Channel ID is on the the browser URL.: https://mycompany.slack.com/messages/MYCHANNELID/
// Pass it as a parameter: node ./delete-slack-messages.js CHANNEL_ID
// CONFIGURATION #######################################################################################################
const token = 'SLACK TOKEN'; // You can learn it from: https://api.slack.com/custom-integrations/legacy-tokens
// GLOBALS #############################################################################################################
@dowonkang
dowonkang / fcitx-hangul-on-void-linux.md
Last active November 9, 2017 10:46
Void Linux fcitx-hangul 설치

Void Linux에서 제공하는 fcitx 패키지에 fcitx-hangul이 포함되어 있지 않아 직접 컴파일하여 설치해주어야 함.

우선 fcitx 설치 후 컴파일에 필요한 의존 패키지들 설치

$ sudo xbps-install -Su git base-devel cmake fcitx-devel

fcitx-hangul 저장소 클론 후 저장소의 설치 가이드에 따라 설치