memorandum

IT技術の習得を記録します

2017-01-01から1ヶ月間の記事一覧

group_concat

sql

GROUP_CONCAT() 連結された文字列を返します https://dev.mysql.com/doc/refman/5.6/ja/group-by-functions.html

show create table

テーブルの定義を調べる show create table

undefined method `  ' for  がエラーででた場合

全角スペースが半角スペースの代わりに利用されているため、エラーがでている場合がある。

git init

git

ローカルのプロジェクトをgit initしてgit管理にする

itermでcontrol+rでコマンド履歴を検索する設定方法 

このコマンドを打った後に、 brew install peco .zshrc以下に下記を追記する function peco-select-history() { local tac if which tac > /dev/null; then tac="tac" else tac="tail -r" fi BUFFER=$(\history -n 1 | eval $tac | awk '!a[$0]++' | peco --…

コマンドUTF8変換

find . -type f -print0 | xargs -0 nkf --overwrite -w -Lu

itermの設定

https://github.com/robbyrussell/oh-my-zsh Basic Installation Oh My Zsh is installed by running one of the following commands in your terminal. You can install this via the command-line with either curl or wget. via curl sh -c "$(curl -fsSL…