Skip to content

Instantly share code, notes, and snippets.

View ftkro's full-sized avatar
🎯
Focusing

Takuro Fukuda ftkro

🎯
Focusing
View GitHub Profile
@ftkro
ftkro / worktime.sh
Created August 9, 2013 10:29
稼働率計算
#!/bin/bash
month=`date +"%m"`
function 30days {
echo -n "ダウンタイムを入力してください: "
read worktime
echo "scale=4; ( 43200 - $worktime ) / 43200 * 100" | bc | cut -c 1-5
}
function 31days {
echo -n "ダウンタイムを入力してください: "
read worktime
@ftkro
ftkro / .bash_profile
Last active September 13, 2016 05:31
My .bash_profile
PATH=/usr/local/mysql/bin:$PATH
if [ -f ~/.bashrc ] ; then
. ~/.bashrc
fi
export CLICOLOR=1
export LSCOLORS=DxGxcxdxCxegedabagacad
export PATH=/usr/local/bin:$PATH
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
export PATH=$PATH:~/bin/depot_tools
@ftkro
ftkro / .bashrc
Created March 7, 2013 11:42
My .bashrc
PATH="$PATH":/Users/tea_hugutaku/shell
PATH="$PATH":/usr/local/sbin
export HOMEBREW_EDITOR=/usr/bin/vim
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
alias vi='/usr/bin/vim'
@ftkro
ftkro / .vimrc
Created March 6, 2013 08:32
My .vimrc.
if has('vim_starting')
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
call neobundle#rc(expand('~/.vim/bundle/'))
NeoBundleFetch 'Shougo/neobundle.vim'
filetype plugin indent on
NeoBundleCheck
" カーソル行をハイライト