This file contains hidden or 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
# インストール済みvvmの更新 | |
$ cd ~/.vvm/repos/vvm | |
$ git pull origin master | |
# clone済みhgリポジトリを削除 | |
$ cd ~/.vvm/repos | |
$ rm -rf vimorg | |
# git tagを指定してVimをビルド | |
$ vvm install vimorg--v7.4.2133 --with-features=big --enable-multibyte --without-x --disable-gui --enable-luainterp --with-lua-prefix=/usr |
This file contains hidden or 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
@implementation NSURLRequest(OOA) | |
+ (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host { | |
return YES; | |
} | |
@end |
This file contains hidden or 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
$ curl 'https://raw.githubusercontent.com/jeffkaufman/icdiff/release-1.6.0/icdiff' -s -o ~/local/bin/icdiff | |
$ curl 'https://raw.githubusercontent.com/jeffkaufman/icdiff/release-1.6.0/git-icdiff' -s -o ~/local/bin/git-icdiff | |
$ chmod 755 ~/local/bin/icdiff | |
$ chmod 755 ~/local/bin/git-icdiff |
This file contains hidden or 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
$ wget 'http://stedolan.github.io/jq/download/linux64/jq' -O ~/local/bin/jq | |
$ chmod 755 ~/local/bin/jq | |
$ jq --help | |
jq - commandline JSON processor [version 1.4] | |
Usage: jq [options] <jq filter> [file...] | |
For a description of the command line options and | |
how to write jq filters (and why you might want to) |
This file contains hidden or 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
:echo join(map(split(globpath(&rtp, 'ftplugin/*.vim'), '\n'), 'fnamemodify(v:val, ":t:r")'), "\n") |
This file contains hidden or 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 apt-get install libncursesw5-dev | |
# ソースコード取得 | |
$ git clone https://github.com/jonas/tig.git | |
$ cd tig | |
$ git checkout -b my-build-2.0.1 tig-2.0.1 | |
# ビルド, インストール | |
$ LDLIBS=-lncursesw CFLAGS=-I/usr/include/ncursesw make install prefix=$HOME/local |
This file contains hidden or 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
# [submodule "module-name"] から対象のリポジトリエントリを削除 | |
$ vim .git/config | |
# それまでcheckoutしていたリポジトリを削除 | |
$ cd .git/modules | |
$ rm -rf module-name | |
# Dマークが付くが、無視して再度submoduleを初期化 | |
$ git submodule update --init |
This file contains hidden or 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
# [デバイス] -> [Guest AdditionsのCDイメージを挿入] | |
$ sudo mount /dev/dvd /mnt | |
$ sudo apt-get install xserver-xorg xserver-xorg-core | |
$ sudo sh /mnt/VBoxLinuxAdditions.run | |
Verifying archive integrity... All good. | |
Uncompressing VirtualBox 4.3.8 Guest Additions for Linux............ | |
VirtualBox Guest Additions installer | |
Removing installed version 4.3.8 of VirtualBox Guest Additions... | |
Copying additional installer modules ... |
This file contains hidden or 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
# Rubyのインストール | |
$ wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.bz2 | |
$ bunzip2 ruby-2.1.1.tar.bz2 | |
$ tar xf ruby-2.1.1.tar | |
$ cd ruby-2.1.1 | |
$ ./configure --prefix=$HOME/ruby-2.1.1 --disable-install-doc --disable-install-rdoc | |
$ make | |
$ make install | |
$ ~/ruby-2.1.1/bin/ruby -v | |
ruby 2.1.1p76 (2014-02-24 revision 45161) [i686-linux] |
This file contains hidden or 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
// 読み出しを通常のブロック, 書き込みをバリアブロックとして並列キューで処理 | |
_syncQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); | |
- (NSString *)someString | |
{ | |
__block NSString *localSomeString; | |
dispatch__sync(_syncQueue, ^{ | |
localSomeString = _someString; | |
}); | |
return localSomeString; |
NewerOlder