- docker の世界では
- image と呼ばれる
- aufs の layer 履歴を管理したもの(がほとんど)
- 作り方は
$ docker pull
してよそから持ってくる$ dokcer build
で新規に作成する
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
let g:sudo_colorscheme = "evening" | |
let g:sudo_colorscheme_gui = "morning" | |
" --- | |
augroup SudoVimColor | |
autocmd! | |
autocmd BufEnter * call SudoVimUpdateColor() |
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
let ZSH_PATH = '/usr/local/bin/zsh' | |
if executable(ZSH_PATH) | |
let ZSH_ENV_PATH = system(ZSH_PATH . " -c 'source ~/.zshrc; echo $PATH'") | |
" let $PATH = $PATH . ":" . ZSH_ENV_PATH | |
let $PATH = ZSH_ENV_PATH | |
endif |
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
Kanazawa.rb meetup 12 | |
一周年振り返りKPT | |
$ last update : 2013/08/24 15:57 $ | |
$ author : Tomokazu Kiyohara <tomokazu.kiyohara@gmail.com> $ | |
■KPT | |
* Keep | |
* Problem | |
* Try | |
■ゴール |
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
" load rc file for bundle | |
let s:bundle_rc_dir = $HOME."/.vim/vimrc/bundle/" | |
function s:loadBundleRcfiles(bundle_rc_dir) | |
let bundle_list = map(neobundle#config#get_neobundles(), 'v:val.name') | |
for bundle in bundle_list | |
let bundle_rc = expand(a:bundle_rc_dir . "/" . bundle . ".vim") | |
if filereadable(bundle_rc) | |
exec "source" bundle_rc | |
endif |
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
### boot2docker ### | |
if command -v boot2docker &>/dev/null; then | |
function __boot2docker_init() { | |
boot2docker init | |
boot2docker up && export DOCKER_HOST=tcp://$(boot2docker ip 2>/dev/null):2375 | |
docker version | |
} | |
function __docker() { | |
if [[ ! -n "${DOCKER_HOST}" ]]; then | |
__boot2docker_init |
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
class X: | |
def __init__(self, x={}): | |
self.var = x | |
def set(self, val): | |
self.var['key'] = val | |
class Y(X): | |
def __init__(self,x=None): | |
self.var = x if x is not None else {} |