Skip to content

Instantly share code, notes, and snippets.

.column {
font-size: 16px !important;
}
@sgur
sgur / 3.6.15.patch
Last active February 24, 2022 03:32
Patch to python 3.6.15
diff -u Include/objimpl.h patch/Include/objimpl.h
--- Include/objimpl.h 2021-12-24 11:39:58.030881300 +0900
+++ patch/Include/objimpl.h 2021-12-24 11:40:27.780881300 +0900
@@ -255,7 +255,7 @@
union _gc_head *gc_prev;
Py_ssize_t gc_refs;
} gc;
- double dummy; /* force worst-case alignment */
+ long double dummy; /* force worst-case alignment */
} PyGC_Head;
@sgur
sgur / SKK-JISYO.lisp
Last active October 29, 2021 01:29
My own SKK-JISYO.lisp
;; okuri-ari entries.
;; okuri-nasi entries.
;; https://github.com/nathancorvussolis/corvusskk/blob/master/installer/config-sample/skk-strftime.txt
いま /(skk-strftime "%Y年%#m月%#d日(%a) %#H時%#M分%#S秒")/
#びょうご /(skk-strftime "%Y年%#m月%#d日(%a) %#H時%#M分%#S秒" "sec" #0)/
#びょうまえ /(skk-strftime "%Y年%#m月%#d日(%a) %#H時%#M分%#S秒" "sec" -#0)/
#ふんご /(skk-strftime "%Y年%#m月%#d日(%a) %#H時%#M分%#S秒" "min" #0)/
#ふんまえ /(skk-strftime "%Y年%#m月%#d日(%a) %#H時%#M分%#S秒" "min" -#0)/
#じかんご /(skk-strftime "%Y年%#m月%#d日(%a) %#H時%#M分%#S秒" "hour" #0)/
#じかんまえ /(skk-strftime "%Y年%#m月%#d日(%a) %#H時%#M分%#S秒" "hour" -#0)/
@sgur
sgur / .dircolors.wsl
Last active February 11, 2022 15:21
Dircolors for WSL
# dircolors for WSL
# Usage: eval `dircolors ~/.dircolors.wsl` (bash)
# http://www.bigsoft.co.uk/blog/index.php/2008/04/11/configuring-ls_colors
TERM Eterm
TERM ansi
TERM color-xterm
TERM con[0-9]*x[0-9]*
TERM cons25
@sgur
sgur / user.js
Last active June 19, 2020 01:02
Firefox の設定 (user.js)
// アクセシビリティ機能は強制的にオフにする
user_pref("accessibility.force_disabled", 1);
// Smooth Scroll のチューニング
user_pref("general.smoothScroll.msdPhysics.enabled",true);
// WebRender を有効化
user_pref("gfx.webrender.all", true)
// 検索エンジンの不要なものを表示しない
@sgur
sgur / fontlink_seguoUI-YuGothic.reg
Last active February 21, 2018 01:56
SegoeUIに游ゴシックを組み合わせるフォントリンク設定
@sgur
sgur / fontlink._segoeui.reg
Created February 20, 2018 10:50
Segoe UI と Meiryo UI のフォントサイズのバランスを調整するレジストリ (utf-16le,bomb,crlf)
@sgur
sgur / DeleteOpenInVisualStudio.cmd
Created February 16, 2018 01:02
エクスプローラーのコンテキストメニューから "Visual Studio で開く" (open in visual studio) を削除する
reg delete HKEY_CLASSES_ROOT\Directory\Background\shell\AnyCode /f
reg delete HKEY_CLASSES_ROOT\Directory\shell\AnyCode /f
@sgur
sgur / scrollbench.vim
Last active December 15, 2017 01:25
renderoptions 用の画面スクロール用のベンチマークスクリプト
scriptencoding utf-8
function! s:benchmark() abort "{{{
normal !gg
call timer_start(0, function('s:callback', [reltime(), line('$')]), {'repeat': -1})
endfunction "}}}
function! s:callback(time, lines, timer) abort "{{{
if line('.') < a:lines
execute 'normal!' "\<C-f>"
@sgur
sgur / cvimrc.vim
Last active December 4, 2017 08:25
cVimrc
# Disable cVim on the sites matching one of the patterns
let blacklists = ["https://mail.google.com/*", "*://mail.google.com/*", "@https://mail.google.com/mail/*", "https://feedly.com/*", "https://getpocket.com/*"]