Skip to content

Instantly share code, notes, and snippets.

View mnogu's full-sized avatar

Muneyuki Noguchi mnogu

View GitHub Profile
@mnogu
mnogu / gnuify-changelog.pl
Created February 23, 2012 12:06
git log --date=short | tools/gnuify-changelog.pl
my $author;
while (<>) {
next if /(^commit|^Merge|git-svn-id)/;
# axe windows style line endings, since we should try to be consistent, and
# the repos has both styles in it's log entries.
s/\r\n$/\n/;
if (/^Author/) {
$author = (split / /)[1];
@mnogu
mnogu / .zshrc
Created February 11, 2012 13:01
autoload -U compinit
compinit
PROMPT="%m:%~ %n%# "
PROMPT2="%_> "
export HISTSIZE=10000
export HISTFILE="$HOME/.history"
export SAVEHIST=$HISTSIZE
setopt hist_ignore_dups
setopt share_history
setopt auto_cd
@mnogu
mnogu / build.log
Created December 15, 2011 13:55
x11-libs/qt-gui-4.7.4-r1 failed
make[1]: ディレクトリ `/Users/noguchi/Gentoo/var/tmp/portage/x11-libs/qt-gui-4.7.4-r1/work/qt-everywhere-opensource-src-4.7.4/src/plugins/imageformats/jpeg' に入ります
x86_64-apple-darwin10-g++ -c -O3 -pipe -march=nocona -I/Users/noguchi/Gentoo/usr/include/glib-2.0 -I/Users/noguchi/Gentoo/usr/lib/glib-2.0/include -I/Users/noguchi/Gentoo/var/tmp/portage/x11-libs/qt-gui-4.7.4-r1/work/qt-everywhere-opensource-src-4.7.4/include -F/Users/noguchi/Gentoo/usr/lib/qt4 -O3 -pipe -march=nocona -mmacosx-version-min=10.6 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -D_REENTRANT -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/macx-g++ -I. -I../../../../include/QtCore -I../../../../lib/QtGui.framework/Versions/4/Headers -I../../../../include/QtGui -I../../../../include -I../../../gui/image -I.moc/re
@mnogu
mnogu / strace
Created October 15, 2011 14:57
kdesu synaptic
[root@localhost ~]# strace -p 7370
Process 7370 attached - interrupt to quit
restart_syscall(<... resuming interrupted call ...>) = 0
kill(7374, SIG_0) = 0
nanosleep({0, 200000000}, NULL) = 0
kill(7374, SIG_0) = 0
nanosleep({0, 200000000}, NULL) = 0
kill(7374, SIG_0) = 0
nanosleep({0, 200000000}, NULL) = 0
kill(7374, SIG_0) = 0
prop_list_update
charset=UTF-8
branch anthy-utf8 An Anthy (UTF-8)
leaf anthy An Anthy A multi-segment kana-kanji conversion engine action_imsw_anthy
leaf anthy-utf8 An Anthy (UTF-8) A multi-segment kana-kanji conversion engine action_imsw_anthy-utf8 *
leaf mozc Mz Mozc Mozc Japanese engine action_imsw_mozc
leaf direct - Direct Pass through all user input without any modification action_imsw_direct
branch ja_direct - 直接入力
leaf ja_direct - 直接入力 直接(無変換)入力モード action_anthy_utf8_direct *
leaf ja_hiragana あ ひらがな ひらがな入力モード action_anthy_utf8_hiragana
--- qt4/toolbar/common-uimstateindicator.cpp
+++ qt4/toolbar/common-uimstateindicator.cpp
@@ -192,7 +192,8 @@
} else {
button->setText( fields[ 2 ] );
}
- button->setToolTip( fields[ 3 ] );
+ if ( fields.size() > 3 )
+ button->setToolTip( fields[ 3 ] );
@mnogu
mnogu / ja.scm
Created September 9, 2011 13:01
(define ja-string->string-list (lambda (str)
(with-char-codec "EUC-JP"
(lambda ()
(map
(lambda (char)
(list->string
(list char)))
(string->list str))))))
diff --git a/qt4/pref/customwidgets.cpp b/qt4/pref/customwidgets.cpp
index 3807e50..6bb2aac 100644
--- a/qt4/pref/customwidgets.cpp
+++ b/qt4/pref/customwidgets.cpp
@@ -39,8 +39,10 @@
#include <QtCore/QPointer>
#include <QtGui/QFileDialog>
+#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
@mnogu
mnogu / .gitconfig
Created August 28, 2011 05:10
.git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
editor = gvim -f
[svn-remote "svn"]
ignore-paths = ^(r5rs|composer|libgcroots-trunk|sigscheme-trunk|uim-chewing-trunk|vendor|wiki|tags/(gc*|libgcroots-*|openssh-*|sigscheme-*)|branches/(composer|libgcroots-*|r5rs|sigscheme-*))
url = https://uim.googlecode.com/svn
(define custom-table?
(lambda (table-repls)
(and (list? table-repls)
(every (lambda (row)
(and (list? row)
(every (lambda (cell)
(string? cell))
row)))
table-repls))))