Skip to content

Instantly share code, notes, and snippets.

@k-takata
k-takata / gist:5124445
Last active July 17, 2020 16:50
Build The Silver Searcher

Build The Silver Searcher

the silver searcher

For Win32/64 using MSYS2

Install Packages

Install the following packages using pacman -S package-name:

@deton
deton / gist:5138905
Last active April 5, 2024 11:11
Vimでの日本語のカーソル移動の改善: 文節単位のWORD移動(W,E,B)プラグインと、句読点に移動するmap
@saitoha
saitoha / screen-ttymouse.diff
Created May 20, 2013 15:05
vim ttymouse auto detection for GNU Screen/tmux
diff -r e56bf2af53c0 src/os_unix.c
--- a/src/os_unix.c Wed May 15 23:13:10 2013 +0200
+++ b/src/os_unix.c Tue May 21 00:04:11 2013 +0900
@@ -2190,6 +2190,7 @@
|| STRNICMP(name, "kterm", 5) == 0
|| STRNICMP(name, "mlterm", 6) == 0
|| STRNICMP(name, "rxvt", 4) == 0
+ || STRNICMP(name, "screen", 6) == 0
|| STRCMP(name, "builtin_xterm") == 0);
}
@k-takata
k-takata / gist:5958877
Last active September 14, 2016 19:15
Vim 7.3.xxx patch author ranking
119 (Christian Brabandt)
109 (ZyX)
56 (Yasuhiro Matsumoto)
52 (Dominique Pelle)
47 (Ken Takata)
31 (Mike Williams)
30 (Lech Lorens)
27 (Yukihiro Nakadaira)
23 (Taro Muraoka)
12 (James Vega)
package main
import (
"bufio"
"errors"
"io"
"log"
"net"
"net/http"
"net/url"
@XVilka
XVilka / TrueColour.md
Last active April 8, 2024 14:02
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@k-takata
k-takata / pre-push
Last active August 29, 2015 14:05
Git hook to prevent pushing when patches are applied by StGit
#!/bin/sh
if stg top > /dev/null 2>&1; then
echo error: patch applied.
exit 1
fi
@k-takata
k-takata / mqpull.sh
Last active August 30, 2019 11:09
Do 'hg pull' and 'hg pull --mq' easily
#!/bin/sh
mainbundle=hg_main.bundle
mqbundle=hg_mq.bundle
rm -f $mainbundle $mqbundle
hg --pager=no incoming -v --bundle $mainbundle
hg --pager=no incoming --mq -v --bundle $mqbundle
@k-takata
k-takata / 486-OpenWatcom.md
Last active March 4, 2024 06:43
『はじめて読む486』のサンプルを OpenWatcom でビルドする

『はじめて読む486』のサンプルを OpenWatcom でビルドする

概要

『はじめて読む486』のサンプルプログラム集 をできるだけ簡単に試してみるために、OpenWatcom を使ってビルドしてみました。

※ 16bit 用の無料で使えるコンパイラとしては LSI C-86 試食版が有名ですが、関数の呼び出し規約が MSC や Borland C とは異なっているため、アセンブリプログラムの修正が必須となってしまいます。また、Turbo C 2.01 もありますが、インストールが面倒で TASM も含まれていません。

ダウンロード

@k-takata
k-takata / bash-completion-slowness-on-msys2.md
Created May 13, 2015 15:08
Bash-completion is very slow on MSYS2

Bash-completion is very slow on MSYS2

Bash-completion is very slow on MSYS2 when the current user is a domain user. This describes the cause and the solutions.

Cause

Expansion of ~* is very slow when you use a domain user. For example: