This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$2" = "" ] ; then | |
mv $1 $1.tmp | |
basename `git rev-parse --show-toplevel` > $1 | |
cat $1.tmp >> $1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ find . -type f | wc -l | |
6331 | |
$ time git status | |
git status 0.04s user 0.03s system 84% cpu 0.085 total |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo docker version | |
Client version: 0.7.0 | |
Go version (client): go1.2rc5 | |
Git commit (client): 0d078b6 | |
2013/11/27 09:44:10 dial unix /var/run/docker.sock: no such file or directory | |
$ sudo docker -d | |
[/var/lib/docker|8603dbed] +job initapi() | |
[/var/lib/docker|8603dbed.initapi()] Creating server | |
[/var/lib/docker|8603dbed] -job initapi() = ERR (open /var/lib/docker/aufs/layers/770ea4799352331ba7b257219deff7ede46a19c35096886341b3cdedad5ba706: no such file or directory) | |
2013/11/27 09:45:03 initapi: open /var/lib/docker/aufs/layers/770ea4799352331ba7b257219deff7ede46a19c35096886341b3cdedad5ba706: no such file or directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"database/sql" | |
_ "github.com/go-sql-driver/mysql" | |
"log" | |
) | |
func main() { | |
var conn *sql.DB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /etc/debian_version | |
6.0.7 | |
$ /usr/bin/g++ -v | |
Using built-in specs. | |
Target: x86_64-linux-gnu | |
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu | |
Thread model: posix | |
gcc version 4.4.5 (Debian 4.4.5-8) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function f0 { | |
return 0; | |
} | |
function f1 { | |
return 1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 第一引き数に チケット番号を与えると t-(チケット番号)に一致するブランチから | |
# (refs #(ブランチ名)) を持つコミットを取ってきてカレントブランチにマージする | |
TICKET_ID=$1 | |
BRANCH=t-${TICKET_ID} | |
MERGE_TARGET=${BRANCH}-target | |
current_branch=`git branch | grep "*" | sed -e 's/^* \(.*\)/\1/g'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ack "$1" | sed 's/:..*$//' | while read f; do sed -i "s;$1;$2;" $f; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$2" = "" ] ; then | |
branch_name=`git branch | grep "*"` | |
mv $1 $1.tmp | |
echo "(refs #`echo "$branch_name" | sed -e 's/^* t-\(.*\)/\1/g' | cut -d'-' -f1 `)" > $1 | |
cat $1.tmp >> $1 | |
fi |
NewerOlder