Skip to content

Instantly share code, notes, and snippets.

@sgur
sgur / .dircolors.wsl
Last active Apr 9, 2019
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 Sep 5, 2018
Firefox の設定 (user.js)
View user.js
// アクセシビリティ機能は強制的にオフにする
user_pref("accessibility.force_disabled", 1);
// Smooth Scroll のチューニング
user_pref("general.smoothScroll.msdPhysics.enabled",true);
// 検索エンジンの不要なものを表示しない
user_pref("browser.search.hiddenOneOffs","Yahoo! JAPAN,Bing,楽天市場,ヤフオク!,教えて!goo");
// ClearType 関連のチューニング
@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
@sgur
sgur / karabiner_elements_aquaskk_on_iterm2.json
Created Sep 20, 2017
Locate under ~/.config/karabiner/assets/complex_modifications/
View karabiner_elements_aquaskk_on_iterm2.json
{
"title": "AquaSKK on iTerm2 / Terminal.app",
"rules": [
{
"description": "Change left_ctrl + j to Hiragana on iTerm2",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
@sgur
sgur / .inputrc
Last active Apr 9, 2018
Bash on Windows (Trusty) 上で必要な設定ファイル類
View .inputrc
# A ~/.inputrc for Humans
# https://www.topbug.net/blog/2017/07/31/inputrc-for-humans/
$include /etc/inputrc
"\C-p":history-search-backward
"\C-n":history-search-forward
set colored-stats On
set completion-ignore-case On
You can’t perform that action at this time.