Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I'm currently busy from my primary work. Some delays are expected.

Daun Jeong Mnkai

💭
I'm currently busy from my primary work. Some delays are expected.
View GitHub Profile
View Minori-Translucent-Tango-Dark.terminal
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGjCwwTVSRudWxs0w0ODxARElVO
U1JHQlxOU0NvbG9yU3BhY2VWJGNsYXNzRjAgMCAwABABgALSFBUWF1okY2xhc3NuYW1l
WCRjbGFzc2VzV05TQ29sb3KiFhhYTlNPYmplY3QIERokKTI3SUxRU1ddZGp3foWHiY6Z
View minorister-foreground.zsh-theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# Minorister
# Dirty mix of agnoster and paradox theme, now only with foreground colours!
# I missed paradox theme of prezto even after installing oh-my-zsh
#
#
# # README
#
# In order for this theme to render correctly, you will need a
@Mnkai
Mnkai / README.md
Last active Oct 18, 2020
AppleStreamDump
View README.md

AppleStreamDump

Dumps apple HLS stream format - including alternative audio tracks and all subtitles

Dependencies

  • m3u8
  • ffmpy (and ffmpeg)
  • pycountry

Caveats

  • mov_text format is used for webvtt conversion - thus output container should support mov_text (e.g., mp4)
@Mnkai
Mnkai / unixtime.txt
Last active Dec 13, 2020
Free42 Unix time converter
View unixtime.txt
LBL "EPOCH"
DATE
TIME
LBL "T2Ep"
X<>Y
1970.0101
X<>Y
DDAYS
24
×
@Mnkai
Mnkai / aspectratio.txt
Last active Oct 17, 2020
Free42 Aspect ratio calculator
View aspectratio.txt
LBL "ASPECTRTO"
LSTO "X"
X<>Y
LSTO "Y"
X<>Y
XEQ "GCD"
LSTO "GCD"
RCL "Y"
X<>Y
/
@Mnkai
Mnkai / 10-mtrack.conf
Last active Jul 24, 2020
Pinebook Pro mtrack xinput example conf
View 10-mtrack.conf
Section "InputClass"
MatchIsTouchpad "on"
Identifier "Touchpads"
Driver "mtrack"
# Personal preference - overall sensitivity
Option "Sensitivity" "0.6"
# Distance to move before start emulating two finger scroll mouse event
Option "ScrollDistance" "50"
@Mnkai
Mnkai / obengit.sh
Last active Oct 6, 2019
Obengit (Depends on Tc and mpv)
View obengit.sh
#!/bin/bash
STREAMER_STREAM_URL="STREAM_URL_HERE"
open /Applications/Tc.app
mpv "$STREAMER_STREAM_URL" 2> /dev/stdout | grep -Fxq "offline"
while [ $? -ne 0 ]; do
echo "Streamer is offline! Retrying after 10 seconds..."
sleep 10
View MVAF (Minori Video Archiving Format) v1.md

MVAF (Minori Video Archiving Format) v1

목차

  • MVAF에 대하여
  • 레퍼런스 파라미터
  • 벤치마크
    • BanG Dream! 2nd Season! Ep01 (Abema)
      • VMAF
      • SSIM
      • PSNR
@Mnkai
Mnkai / lotteaircargo.sh
Created Nov 28, 2018 — forked from perillamint/cjgls.sh
롯데 항공화물 추적 스크립트
View lotteaircargo.sh
#!/bin/bash
if [ "$1" = "" ]; then
echo "Usage: $0 <slip no>"
exit 1;
fi
curl -s "https://lglet.lottegl.com/view/tracking/import/$1" | elinks -dump 1 /dev/stdin
@Mnkai
Mnkai / toggle_keyboard.sh
Created Mar 14, 2018
Toggle keyboard device - useful if you are using external keyboard on your laptop's keyboard
View toggle_keyboard.sh
#!/bin/sh
# Change keyboard device name to your own - e.g., xinput list
KEYBOARD_DEV_NAME="AT Translated Set 2 keyboard"
KEYBOARD_DEV_ID=$(xinput list | grep "$KEYBOARD_DEV_NAME" | cut -f 2 | cut -d "=" -f 2)
KEYBOARD_ISENABLED=$(xinput list-props $KEYBOARD_DEV_ID | grep "Device Enabled" | cut -d ":" -f 2)
if [ $KEYBOARD_ISENABLED -eq 1 ]; then
xinput disable $KEYBOARD_DEV_ID