Skip to content

Instantly share code, notes, and snippets.

writing thesis now

YOSHIOKA Takuma lo48576

writing thesis now
Block or report user

Report or block lo48576

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lo48576 / tw-newui.css
Last active Jul 20, 2019
Firefox の Stylus で使える、何とは言わない某の新 UI 用 CSS 。英語版 UI でテストしているので日本語版で使うならラベル文字列とかちょっと調整してね
View tw-newui.css
@-moz-document domain("") {
* Left sidebar
/* Hide menu labels */
nav[aria-label="メインメニュー"] .css-901oao,
nav[aria-label="Primary"] .css-901oao {
display: none;
lo48576 / ichika-5.0.conf
Created Mar 8, 2019
XPS 15 (9570) 用 LInux 5.0.0 カーネルコンフィグ。 <> のスクリプトで利用可能。
View ichika-5.0.conf
# General setup ---> {{{1
# Timers subsystem ---> {{{2
# [*] Old Idle dynticks config [bool]
# [USUAL] This prevents very very noisy coil noise of #xps15.
# I don't know why this prevent coil noise, but surely it does.
# `HIGH_RES_TIMERS` without `NO_HZ` does not prevent the noise.
# [*] High Resolution Timer Support [bool]
# [USUAL] Used by `media-sound/pulseaudio-12.2` to use timer-based scheduling.
lo48576 /
Last active Dec 13, 2018
XSL filter for my blog (at 2018-12-13), with XSL dependency tracking

Customized XSL filter for nanoc


  • Track dependency files for each layout XSL files.
  • Use correct base path for imports / includes
    • Current nanoc (4.11) uses the current directory (project root) for base path of XSLT includes / imports. href.content = (xsl_dir + href).relative_path_from(current_dir).to_s fixes this.

Known problems

No cache for dependencies

lo48576 / Dockerfile.sample
Last active Dec 15, 2018
A patch to use ConoHa object storage from Nextcloud 14.0.0
View Dockerfile.sample
FROM nextcloud:14.0.0-apache
COPY support-conoha-object-storage.patch /support-conoha-object-storage.patch
RUN cd /usr/src/nextcloud && patch -p1 --force </support-conoha-object-storage.patch
lo48576 / fonts.conf
Created Aug 21, 2018
fonts.conf at 2018-08-21
View fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<match target="pattern">
<test qual="any" name="family">
<edit name="family" mode="prepend" binding="strong">
lo48576 / git-repo-xkeyboard-config-2.27-add-lo48576-opts.patch
Last active Oct 19, 2019
xkeyboard-config-2.27 の git リポジトリや tar 展開後ファイル群に当てるパッチ。「変換」キーを Super として使う設定と「カタカナひらがなローマ字」を Ctrl として使う設定。
View git-repo-xkeyboard-config-2.27-add-lo48576-opts.patch
diff --git a/rules/base.o_s.part b/rules/base.o_s.part
index fc1ce9106fdf..18b723ddf92d 100644
--- a/rules/base.o_s.part
+++ b/rules/base.o_s.part
@@ -146,6 +146,10 @@
esperanto:dvorak = +epo(dvorak)
esperanto:colemak = +epo(colemak)
terminate:ctrl_alt_bksp = +terminate(ctrl_alt_bksp)
+ lo48576:henkan_lsuper = +lo48576(henkan_lsuper)
+ lo48576:henkan_rsuper = +lo48576(henkan_rsuper)
lo48576 /
Last active Mar 1, 2019
ambiwidth patches

Ambiwidth 環境整備用情報


glibc 標準の /usr/share/i18n/charmaps/UTF-8 は、 ambiwidth characters が1文字幅になっている。 を使うと、これらを2文字幅にした UTF-8-CJK ファイルを作成できる。


zsh は、一部の結合文字などに対する wcwidth 等の誤った文字幅判定を防ぐため、 configure 時にテストを行い、理想的な wcwidth 実装でなかった場合に内部的な実装 (wcwidth9) に切り替える。

lo48576 /
Created Jan 25, 2018
2018-01-25: UTF-8 locale for CJK, and a patch to force zsh to use system `wcwidth()`.



A charmap with ambiwidth and private characters set full-width.


  • Gzip it and copy to /usr/share/i18n/charmaps/UTF-8-CJK.gz.
  • Edit /etc/locale.gen and use UTF-8-CJK for a locale you use.   For me, ja_JP.UTF-8 UTF-8-CJK and en_US.UTF-8 UTF-8-CJK.
lo48576 /
Last active Dec 30, 2017
//! Lazily loadable file type and related stuff.
// This code is dual licensed under MIT/Apache-2.
// lazy-init = "^0.2"
extern crate lazy_init;
use std::borrow::Borrow;
use std::cmp;
use std::fmt;
lo48576 / log.txt
Created Dec 20, 2017
View log.txt
$ rustc +nightly --version
rustc 1.24.0-nightly (edbd7d232 2017-12-20)
$ diff ~/.cargo/bin/{rustfmt,rustdoc}
$ rustup run nightly rust-gdb rustfmt
GNU gdb (Gentoo 8.0.1 vanilla) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
You can’t perform that action at this time.