Skip to content

Instantly share code, notes, and snippets.

View d6rkaiz's full-sized avatar

Isao Sugimoto d6rkaiz

View GitHub Profile
@d6rkaiz
d6rkaiz / file0.txt
Created July 22, 2013 09:27
gitでリモートブランチをすべて取得するシェルスクリプト ref: http://qiita.com/d6rkaiz/items/e14aaf63ecd8aa9f715b
#!/bin/bash
for remote_branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do
remote_name="$(echo -n "$remote_branch" | cut -d/ -f2)"
branch_name="$(echo -n "$remote_branch" | cut -d/ -f3)"
git checkout -b $branch_name $remote_name/$branch_name
done
git checkout master
@d6rkaiz
d6rkaiz / gist:5520721
Created May 5, 2013 12:34
squeeze to wheezy upgrade. with mysql@dotdeb
root@squeeze64:# apt-get update
Get:1 http://security.debian.org wheezy/updates Release.gpg [836 B]
Get:2 http://security.debian.org/ wheezy/updates/contrib Translation-en [14 B]
Ign http://security.debian.org/ wheezy/updates/contrib Translation-en_US
Get:3 http://security.debian.org/ wheezy/updates/main Translation-en [5,645 B]
Ign http://security.debian.org/ wheezy/updates/main Translation-en_US
Get:4 http://security.debian.org wheezy/updates Release [102 kB]
Get:5 http://ftp.jp.debian.org wheezy Release.gpg [1,672 B]
Get:6 http://ftp.jp.debian.org/debian/ wheezy/main Translation-en [3,851 kB]
Get:7 http://packages.dotdeb.org wheezy Release.gpg [836 B]
@d6rkaiz
d6rkaiz / gist:5024273
Created February 24, 2013 15:43
rbenv with CC

MountainLion 10.8.2 & Xcode 4.6

$ cc -v
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.2.1
Thread model: posix
$ clang -v
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.2.1
@d6rkaiz
d6rkaiz / gist:5023873
Created February 24, 2013 13:37
ruby 2.0.0 p0 compile warning.
compiling thread.c
thread.c:3291:34: warning: variable 'orig_read' is uninitialized when used within its own initialization [-Wuninitialized]
rb_fdset_t UNINITIALIZED_VAR(orig_read);
^~~~~~~~~
./vm_core.h:119:34: note: expanded from macro 'UNINITIALIZED_VAR'
#define UNINITIALIZED_VAR(x) x = x
^
thread.c:3292:34: warning: variable 'orig_write' is uninitialized when used within its own initialization [-Wuninitialized]
rb_fdset_t UNINITIALIZED_VAR(orig_write);
^~~~~~~~~~
@d6rkaiz
d6rkaiz / gist:4275272
Created December 13, 2012 09:36
SAKURA VPS SSD 1G plan UnixBench
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: www3241gi.sakura.ne.jp: GNU/Linux
OS: GNU/Linux -- 2.6.32-279.14.1.el6.x86_64 -- #1 SMP Tue Nov 6 23:43:09 UTC 2012
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
CPU 0: Intel(R) Xeon(R) CPU E5-2640 (5000.0 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSCALL/SYSRET
CPU 1: Intel(R) Xeon(R) CPU E5-2640 (5000.0 bogomips)
@d6rkaiz
d6rkaiz / gist:4274496
Created December 13, 2012 06:20
SAKURA VPS SSD 1G cpu info
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Xeon(R) CPU E5-2640
stepping : 1
cpu MHz : 2499.998
cache size : 4096 KB
physical id : 0
siblings : 2
@d6rkaiz
d6rkaiz / gist:3969063
Created October 28, 2012 16:24
neocomplcache error
function <SNR>87_check_recache の処理中にエラーが検出されました:
行 15:
E117: 未知の関数です: neocomplcache#is_source_enabled
E15: 無効な式です: neocomplcache#is_source_enabled('member_complete')
@d6rkaiz
d6rkaiz / gist:3958477
Created October 26, 2012 12:22
neocomplcache-snippets-complete
remote: Counting objects: 79, done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 79 (delta 12), reused 79 (delta 12)
Unpacking objects: 100% (79/79), done.
From https://github.com/Shougo/neocomplcache-snippets-complete
+ 77b3a19...c2db19f master -> origin/master (forced update)
Auto-merging syntax/snippet.vim
CONFLICT (add/add): Merge conflict in syntax/snippet.vim
Auto-merging autoload/unite/sources/snippet.vim
CONFLICT (add/add): Merge conflict in autoload/unite/sources/snippet.vim
@d6rkaiz
d6rkaiz / gist:3483403
Created August 26, 2012 20:30
remote hostname at icloud
echo show Setup:/Network/BackToMyMac | scutil | sed -n 's/.* : *\(.*\).$/\1/p'
@d6rkaiz
d6rkaiz / gist:3088822
Created July 11, 2012 07:52
rbenv install
CONFIGURE_OPTS="--enable-shared --with-openssl-dir=/usr/local --with-readline-dir=/usr/local" rbenv install 1.9.3-p194