Skip to content

Instantly share code, notes, and snippets.

View srockstyle's full-sized avatar

Shohei Kobayashi srockstyle

View GitHub Profile
@srockstyle
srockstyle / cmd_terraform.sh
Created March 22, 2020 01:32
terraformコマンド
# 試験
terraform plan
# 指定したtfファイルだけ試験
terraform plan [ファイル名]
# 適用
terraform apply
@srockstyle
srockstyle / terraformer.sh
Created March 22, 2020 01:24
terraformerインストール
#install
brew install terraformer
#versionでればおっけー
$ terraformer -v
#help
% terraformer help (git)-[feature/vpc_network] - (m1)
Usage:
[command]
## -------------
## macOS
## -------------
brew install mysql@5.7 # mysql@5.6 / default mysql8
## ~/.bash_profile or ~/.zshrc
export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/mysql@5.7/lib"
export CPPFLAGS="-I/usr/local/opt/mysql@5.7/include"
export PKG_CONFIG_PATH="/usr/local/opt/mysql@5.7/lib/pkgconfig"
@srockstyle
srockstyle / my_standard.vim
Created October 28, 2018 00:12
基本設定
set number "行番号を表示する
set cursorline "カーソル行のハイライト
set title "編集中のファイル名を表示
set showmatch "括弧入力時の対応する括弧を表示
syntax on "コードの色分け
set shell=/usr/local/bin/zsh
set tabstop=2
set autoindent
set expandtab
set shiftwidth=2
@srockstyle
srockstyle / git_controll.vim
Created October 28, 2018 00:05
gitをvimからいじるやつ
"git
"deniteじゃないものもあるけど
nnoremap gl :Glog<CR>
nnoremap gd :Gdiff<CR>
nnoremap gb :Denite gitbranch<CR>
nnoremap gs :Denite gitstatus<CR>
nnoremap gadd :Gwrite<CR>
nnoremap gcommit :Gcommit<CR>
@srockstyle
srockstyle / indent_vim.vim
Created October 27, 2018 23:48
インデント周り。
"-----------------------------------
" インデント設定
"-----------------------------------
augroup fileTypeIndent
" 言語ごと
autocmd!
" Python
autocmd BufNewFile,BufRead *.py setlocal tabstop=4 softtabstop=4 shiftwidth=4
" PHP
autocmd BufNewFile,BufRead *.php setlocal tabstop=4 softtabstop=4 shiftwidth=4
@srockstyle
srockstyle / vim_reinstall_homebrew.sh
Created October 27, 2018 23:17
Vimの再インストールMac版。そしてオプションつき。
brew reinstall vim --with-python3 --with-lua
@srockstyle
srockstyle / install_deinnvim.sh
Created October 27, 2018 22:59
dein.nvimのインストール
# とりあえずインストールスクリプトもってくる
curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh
# ディレクトリの指定は必須
sh ./installer.sh .vim/dein/
@srockstyle
srockstyle / old_plugin_setting_in_Vundle
Last active October 27, 2018 22:53
今までつかっていたVimプラグインで廃止になってたやつ
Plugin 'Shougo/vimshell' -> Vimからシェルを使う。開発停止。Deol.nvimにした
Plugin 'Shougo/unite.vim' -> Vimをいい感じにするインターフェイス。開発停止。 Denite.nvimにした。
Plugin 'Shougo/neomru.vim' -> ファイルリスト。Denite.nvimに統合されて開発停止。
Plugin 'basyura/unite-rails' -> uniteからRailsをいい感じに使う。なぜか僕オーナー権限もってる。使えるのかな。Denite対応します……
Plugin 'Shougo/neocomplcache' -> コード補完。開発停止。neocomplete.vimにした'
Plugin 'NigoroJr/rsense' -> Ruby補完。開発停止してるかわからんがneocomplete.vim未対応。