Skip to content

Instantly share code, notes, and snippets.

@dowonkang
dowonkang / Navicon-Transformicons.markdown
Created October 8, 2013 00:32
A Pen by Bennett Feely.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Eli Perelman http://eliperelman.com
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@dowonkang
dowonkang / .babelrc
Created June 10, 2016 04:29 — forked from bdchauvette/.babelrc
Minimal babel boilerplate
{
"presets": [ "es2015" ]
}
@dowonkang
dowonkang / youtube-params.html
Created July 5, 2017 06:08
YouTube 영상 삽입 시 사용할 수 있는 파라메터
<iframe src="https://www.youtube.com/embed/KaOC9danxNo?modestbranding=1&amp;playsinline=1&amp;rel=0"></iframe>
<!--
showinfo=0 : 영상 정보 미노출
modestbranding=1 : 유튜브 로고 제거 (showinfo=0 사용하지 않아야 함)
playsinline=1 : [iOS] 전체 화면 전환 없이 인라인으로 재생
rel=0 : 관련 영상 미노출
※ 전체 목록: https://developers.google.com/youtube/player_parameters?hl=ko#Parameters
-->
@dowonkang
dowonkang / hosts.txt
Created September 28, 2017 04:26
국내외 광고 사이트 차단 (기멀전)
This file has been truncated, but you can view the full file.
# 국내외 광고 사이트 차단
# 출처 : 기멀전 godpeople.or.kr
# https://godpeople.or.kr/hosts.txt
# 최종업데이트 : 20170928
# hosts 파일 적용시 느려질 경우, HostsOptimizer v0.5 를 사용하세요.
# block address
# adult
127.0.0.1 kkdate.com
#!/bin/sh
SHOW_ALL_FILES=$(defaults read com.apple.finder AppleShowAllFiles)
if [ "$SHOW_ALL_FILES" = "NO" ]; then
defaults write com.apple.finder AppleShowAllFiles YES; killall Finder
else
defaults write com.apple.finder AppleShowAllFiles NO; killall Finder
fi
@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 저장소 클론 후 저장소의 설치 가이드에 따라 설치

@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 / 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 / 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` 실행