Skip to content

Instantly share code, notes, and snippets.

View lo48576's full-sized avatar
✔️
activated

YOSHIOKA Takuma lo48576

✔️
activated
View GitHub Profile
@lo48576
lo48576 / 0001-render-make-transformations-in-geometry-space.patch
Created April 26, 2026 10:34
A patch on grim-1.5.0 (the next commit of it in fact, i.e., 07eb6914ceb2931894670875fabda3c65014d5b8) to fix blurry image when scaling is applied.
From 0ccaab91ea90adb72397df8cb0574aca4d525b9b Mon Sep 17 00:00:00 2001
From: YOSHIOKA Takuma <nop_thread@nops.red>
Date: Sun, 26 Apr 2026 19:26:05 +0900
Subject: [PATCH] render: make transformations in geometry space
Ported <https://lists.sr.ht/~emersion/grim-dev/patches/56912> onto
v1.5.0. The below is the commit message of the original patch.
--------
@lo48576
lo48576 / .zshrc
Created April 25, 2026 02:28
zshaddhistory (2026-04-25)
# zshrc より抜粋。
zshaddhistory() {
# Truncate trailing newline.
local line=${1%%$'\n'}
# Split command line string into words.
# `(z)`: Split string into words using shell parsing.
typeset -a quoted_cmds=( ${(z)line} )
# `(Q)`: Unquote.
typeset -a cmds=( ${(Q)${quoted_cmds}} )
@lo48576
lo48576 / keybase.md
Created November 18, 2022 13:51
keybase.md

Keybase proof

I hereby claim:

  • I am lo48576 on github.
  • I am nop_thread (https://keybase.io/nop_thread) on keybase.
  • I have a public key whose fingerprint is 33F3 EE46 343A 3832 1D9D BADA 84A6 DDBD 3573 FB7F

To claim this, I am signing this object:

// ==UserScript==
// @name auto redirect
// @author NOP Thread <nop_thread@nops.red>
// @version 0.0.4
// @include https://pbs.twimg.com/*
// @include https://twitter.com/*
// @include https://mobile.twitter.com/*
// @include https://ja.m.wikipedia.org/*
// @include http://d.hatena.ne.jp/*
// @include https://d.hatena.ne.jp/*
@lo48576
lo48576 / README.md
Last active March 4, 2022 17:20
fcitk4 & fcitx-skk & libskk セット
  • flatpak で fcitx を動かす用。
@lo48576
lo48576 / flamegraph-20220108-0420.svg
Last active January 8, 2022 23:02
20220108-iri-string-parser-improvement
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lo48576
lo48576 / README.md
Created December 23, 2021 14:36
OpenPGP key transition statement (2021-12)

Files

  • README.md
    • This file.
  • transition.md
    • Transition statement.
    • Signed by keys.
  • old.asc
    • My old public key.
  • new.asc
@lo48576
lo48576 / x11-elecom-deft-pro-buttons.conf
Last active January 1, 2021 13:14
Buttons config for DEFT Pro
# /etc/X11/xorg.conf.d/60-lo48576-elecom.conf
Section "InputClass"
Identifier "Elecom USB Trackball Wheel Emulation"
MatchVendor "ELECOM"
MatchProduct "DEFT Pro"
MatchIsPointer "yes"
Driver "evdev"
Option "EmulateWheel" "true"
# 1: Left button
@lo48576
lo48576 / linux-5.10-rc4_elecom-m-xgl20dlbk.patch
Last active November 28, 2020 14:26
Linux 5.10-rc4 用の、 ELECOM EX-G (M-XGL20DLBK) の Fn1〜Fn3 ボタンを使えるようにするパッチ
From 8ddcf4c694ec89bc1ea7a1b48be9786d8b00c928 Mon Sep 17 00:00:00 2001
From: YOSHIOKA Takuma <lo48576@hard-wi.red>
Date: Sun, 22 Nov 2020 04:36:34 +0900
Subject: [PATCH 1/2] HID: elecom: rewrite report based on model specific
parameters
The report descriptor for EX-G wireless mouse (M-XGL20DLBK) is a bit
different from that for trackball mice such as DEFT. For such mouse, the
current `mouse_button_fixup` cannot be used as is, because it uses
hard-coded indices for a report descriptor.