Skip to content

Instantly share code, notes, and snippets.

@sgur
sgur / 3.6.15.patch
Last active Feb 24, 2022
Patch to python 3.6.15
View 3.6.15.patch
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 Oct 29, 2021
My own SKK-JISYO.lisp
View 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 Feb 11, 2022
Dircolors for WSL
View .dircolors.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 Jun 19, 2020
Firefox の設定 (user.js)
View 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 Feb 21, 2018
SegoeUIに游ゴシックを組み合わせるフォントリンク設定
View fontlink_seguoUI-YuGothic.reg
@sgur
sgur / fontlink._segoeui.reg
Created Feb 20, 2018
Segoe UI と Meiryo UI のフォントサイズのバランスを調整するレジストリ (utf-16le,bomb,crlf)
View fontlink._segoeui.reg
@sgur
sgur / DeleteOpenInVisualStudio.cmd
Created Feb 16, 2018
エクスプローラーのコンテキストメニューから "Visual Studio で開く" (open in visual studio) を削除する
View DeleteOpenInVisualStudio.cmd
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 Dec 15, 2017
renderoptions 用の画面スクロール用のベンチマークスクリプト
View scrollbench.vim
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>"
View cvimrc.vim
# 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/*"]
@sgur
sgur / .tigrc
Last active Nov 30, 2017
Windows 版 gVim の :terminal で tig を使うための設定
View .tigrc
# for tig in terminal in Vim
set vertical-split = no
color date cyan default
color graph-commit magenta default