hasen's tech life

Twitter: @hasen

MySQLでテーブル定義をCSV形式で出力した.

# MySQLでテーブル定義をCSV形式で出力した.

> select case ordinal_position when 1 then table_name else '' end, column_name, column_type, is_nullable, column_key, column_default, extra from information_schema.columns where table_schema = schema() order by table_schema, table_name, ordinal_position into outfile '/PATH/TO/OUTPUT.csv' fields terminated by ',';

Slackにインテグレーションを追加したときのキャプチャをメモ.

# Slackにインテグレーションを追加したときのキャプチャをメモ.
# App DirectoryをIncoming Webhooksで検索する.
# 最後の画面で取得できるURLを使ってCurlを実行したり.

f:id:hasen-fus:20170123083734p:plain
f:id:hasen-fus:20170123083745p:plain
f:id:hasen-fus:20170123083757p:plain
f:id:hasen-fus:20170123083808p:plain

Homebrewでインストールしたアプリケーションを自動起動するようにした.

# Homebrewでインストールしたアプリケーションを自動起動するようにした.
# なにを使っているか意識するために毎回起動していたけれど,もういいかなと.

$ brew tap homebrew/services
> .. (略) ..
$ brew install homebrew-services
> .. (略) ..
$ brew services start mysql
==> Successfully started `mysql` (label: homebrew.mxcl.mysql)
$ brew services list
> Name Status User Plist
> .. (略) ..
> mysql started You /PATH/TO/Library/LaunchAgents/homebrew.mxcl.mysql.plist
> .. (略) ..