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

ec2 に ansible で postgresql_db を使う時 python-psycopg2 インストールしてるのに {"failed": true "msg": "the python psycopg2 module is required"} と言われる

環境 ansible 2.3.2.0 OS AmazonLinux 多分17.03あたりの 現象 - yum: name=python-psycopg2 ... - postgresql_db: .... Error ansible {"failed": true "msg": "the python psycopg2 module is required"} 対策 python27-psyconpg2 に変えて動いてくれた - …

sshd 側で自動 SSH 再接続 ubuntu 16.04

/etc/ssh/sshd_config で下記設定 /etc/ssh/ssh_config ではない ClientAliveInterval 60 TCPKeepAlive yes ClientAliveCountMax 10000 https://unix.stackexchange.com/questions/200239/how-can-i-keep-my-ssh-sessions-from-freezing

git add されていないファイルのみ stash する : git stash -u -k

git add -pでコミット候補を作ったあと、一旦それだけ試したい時 git stash -u -k で add されていないもの全部 stash できる。(新規ファイルもstash されます)