Skip to content

Instantly share code, notes, and snippets.

@lqtmoe
lqtmoe / Game.sh
Created May 2, 2026 04:39
Helper Script for Launching RPG Maker MV/MZ Games on Linux
#!/bin/sh
CWD="$(dirname "$0")"
CIDIR="$(mktemp -d)"
cleanup() {
cd /
fusermount -uz "$CIDIR"
if [ $? == 0 ]; then
if [ -z "$(find "$CIDIR" -mindepth 1 -maxdepth 1 -print -quit)" ]; then
@lqtmoe
lqtmoe / Nintendo_Pro_Controller.xboxdrv
Created April 15, 2025 14:19
xboxdrv configuration file for Nintendo Pro Controller.
[xboxdrv]
evdev = /dev/input/by-id/usb-Nintendo_Co.__Ltd._Pro_Controller_000000000001-event-joystick
evdev-grab = true
mimic-xpad = true
[axismap]
-Y1 = Y1
-Y2 = Y2
[evdev-absmap]
@lqtmoe
lqtmoe / link_case_mismatch.bash
Last active September 19, 2024 10:54
ファイルシステムとデータベースで大文字小文字が一致しない問題をシンボリックリンクで解決する
@lqtmoe
lqtmoe / rc.backlight
Created July 28, 2024 02:37
Slackware rc script for save and restore backlight brightness.
#!/bin/sh
# save and restore backlight brightness
# Source options
if [ -r /etc/default/backlight ]; then
. /etc/default/backlight
fi
backlight_start() {
echo -n "Restore backlight brightness: "