Skip to content

Instantly share code, notes, and snippets.

@dontdieych
dontdieych / video_noob_guide.md
Created January 2, 2026 21:48 — forked from arch1t3cht/video_noob_guide.md
What you NEED to know before touching a video file

What you NEED to Know Before Touching a Video File

Hanging out in subtitling and video re-editing communities, I see my fair share of novice video editors and video encoders, and see plenty of them make the classic beginner mistakes when it comes to working with videos. A man can only read "Use Handbrake to convert your mkv to an mp4 :)" so many times before losing it, so I am writing this article to channel the resulting psychic damage into something productive.

If you are new to working with videos (or, let's face it, even if you aren't), please read through this guide to avoid making mistakes that can cost you lots of computing power, storage space, or video quality.

@dontdieych
dontdieych / acme-0.5x.hook
Created September 28, 2025 14:46 — forked from bjin/acme-0.5x.hook
simple 0.5x prescaler for mpv, best combined with "--cscale=bilinear --scaler-resizes-only --window-scale=0.5"
//!DESC acme-0.5x
//!HOOK LUMA
//!BIND HOOKED
//!WIDTH HOOKED.w 2 /
//!HEIGHT HOOKED.h 2 /
//!WHEN HOOKED.w 2 % ! HOOKED.h 2 % ! *
//!OFFSET 0.25 0.25
vec4 hook() {
return HOOKED_texOff(vec2(-0.25,-0.25));
}
@dontdieych
dontdieych / ex1.hs
Last active September 26, 2025 08:36 — forked from honki12345/ex1.hs
ex1
-- Q. 리스트가 빈 리스트([])인지, 또는 첫 번째 요소가 빈 리스트인지([[]], ['a','b']]와 같은)를 확인하는 표현식을 작성하세요.
-- hasOnlyOneElement t = null t || null (head t)
hasOnlyOneElement :: [[a]] -> Bool
hasOnlyOneElement [] = True
hasOnlyOneElement [[]] = True
hasOnlyOneElement _ = False
-- Q. 다른 리스트 안에 주어진 두 리스트를 연결하는 표현식을 작성하세요. 예를 들어, ["abc","de"]에 대해 "abcde"를 반환해야 합니다.
-- concatTwoElement t = head t ++ head (tail t)
concatTwoElement :: [[a]] -> [[a]] -> [a]
@dontdieych
dontdieych / quickCss.css
Created October 7, 2024 08:21 — forked from qyurila/quickCss.css
A personal Vencord custom QuickCSS: Pretendard font + SimpleEnhancements tweak
/* URLs */
/* Revert Old Icons */
@import url(https://davart154.github.io/Themes/Icon%20Revert%202023/2023%20Icon%20Revert.css);
/* Import Pretendard Variable */
@import url(https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable-jp.min.css);
/* FONTS */
/* Change Fonts (MomoTalk Theme) */
@dontdieych
dontdieych / smart-caps-lock.md
Last active April 30, 2024 05:58 — forked from ivyxjc/smart-caps-lock.md
Smart Caps Lock: Remap Caps Lock to Control AND Escape

Smart Caps Lock: Remap to Control AND Escape (Linux, Mac, Windows)

Caps Lock 變成智慧的 Control 以及 Escape

  • 單獨輕按一下就是 Escape
  • 若按下時同時按著其他鍵,就會是 Control

這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)

  • Send Escape if you tap Caps Lock alone.