Skip to content

Instantly share code, notes, and snippets.

View hrix's full-sized avatar

Hirai Sumito hrix

  • eA
  • Kyoto, Japan
View GitHub Profile
@hrix
hrix / file0.txt
Created April 27, 2015 08:01
yumでNo package kernel~ available. ref: http://qiita.com/hrix/items/ff6d7d25dacdf1e7c227
/etc/yum.conf
exclude=kernel*
@hrix
hrix / file0.txt
Last active August 29, 2015 14:18
「tail -f」じゃなくて「less +F」を使うように矯正したいときの.bashrc ref: http://qiita.com/hrix/items/390baf254143baf98c87
tail () {
if [ "$1" = "-f" ];then
echo 'tail -f より less +F の方が機能が多くていいですよ'
echo 'Use `less +F`'
else
/usr/bin/tail $*
fi
}
@hrix
hrix / statdiff.sh
Last active August 29, 2015 14:03 — forked from yuya-takeyama/statdiff.sh
#!/bin/sh
#
# 2 つのディレクトリ中のパーミッション, 所有者を一覧化し,
# お互いに差分が無いか出力する.
#
# Author: Yuya Takeyama
if [ "$1" = "" -o "$2" = "" ]; then
echo "Usage: `basename $0` file1 file2"
exit 1