Skip to content

Instantly share code, notes, and snippets.

View Mnkai's full-sized avatar
💭
I'm currently busy with my primary work. Some delays are expected.

Mnkai

💭
I'm currently busy with my primary work. Some delays are expected.
View GitHub Profile
@Mnkai
Mnkai / dell_sound_workaround.sh
Created November 17, 2017 11:43
Rough example of sound subsystem restart for Dell XPS static noise issue
#!/bin/bash
rmmod snd_hda_intel --force
modprobe snd_hda_intel
alsactl restore
pkill pulseaudio
@Mnkai
Mnkai / block_bluetooth.sh
Created November 28, 2017 13:43
Example scripts to disable and enable bluetooth when sleeping
#!/bin/bash
ID="-1"
ID=$(echo $(rfkill | grep bluetooth) | cut -f1 -d " ")
if [ "$ID" == "-1" ]; then
exit -1
else
rfkill block $ID
rmmod btusb -f
@Mnkai
Mnkai / ctl-472-672-support.patch
Created January 14, 2018 04:59
Git patch for input-wacom to support CTL-472/672 graphic tablets
diff --git a/4.5/wacom_wac.c b/4.5/wacom_wac.c
index 1ab33cc..b74bbf8 100644
--- a/4.5/wacom_wac.c
+++ b/4.5/wacom_wac.c
@@ -4424,6 +4424,12 @@ static const struct wacom_features wacom_features_0x360 =
static const struct wacom_features wacom_features_0x361 =
{ "Wacom Intuos Pro L", 62200, 43200, 8191, 63,
INTUOSP2_BT, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 9, .touch_max = 10 };
+static const struct wacom_features wacom_features_0x37A =
+ { "Wacom One by Wacom S", 15200, 9500, 2047, 63,
@Mnkai
Mnkai / rename_episode_by_tag.sh
Created March 4, 2018 05:14
Rename video file name to include episode number information
#!/bin/zsh
1=$(basename $1)
EPINUM=$(ffmpeg -i "$1" 2>&1 > /dev/null | grep episode_sort | cut -d ":" -f 2)
mv $1 $(printf %02d $EPINUM)" "$1
@Mnkai
Mnkai / undervolt-sleep.service
Last active August 30, 2018 16:09
Example undervolt script for i7-8550U processor, Dell XPS 13 9360
[Unit]
Description=Undervolting preset resume after sleep
After=suspend.target
[Service]
Type=oneshot
ExecStart=/bin/bash /opt/undervolt_check_and_apply.sh
[Install]
WantedBy=suspend.target
@Mnkai
Mnkai / toggle_keyboard.sh
Created March 14, 2018 14:26
Toggle keyboard device - useful if you are using external keyboard on your laptop's keyboard
#!/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
@Mnkai
Mnkai / lotteaircargo.sh
Created November 28, 2018 13:57 — forked from perillamint/cjgls.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

MVAF (Minori Video Archiving Format) v1

목차

  • MVAF에 대하여
  • 레퍼런스 파라미터
  • 벤치마크
    • BanG Dream! 2nd Season! Ep01 (Abema)
      • VMAF
      • SSIM
      • PSNR
@Mnkai
Mnkai / obengit.sh
Last active October 6, 2019 11:12
Obengit (Depends on Tc and mpv)
#!/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
@Mnkai
Mnkai / 10-mtrack.conf
Last active July 24, 2020 16:26
Pinebook Pro mtrack xinput example 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"