2016-08-01から1ヶ月間の記事一覧
ログインしてmysqldump実行 rhc ssh -a $APPNAME mysqldump -h $HOST -p $HOST -u $USER --password=$PASSWORD $APPNAME > /sandbox/backup.sql exit※$HOSTはphpmyadminで確認ダウンロード rhc scp $APPNAME download /$SAVE_LOCAL_PATH /sandbox/backup.sql…
branch作成 git branch test 一覧 git branch ブランチを変更 git checkout test 反映 git add . git commit -m “comment" Push git push -u origin test masterに取り込む git checkout master git merge test
.tables
sudo apt-get install python-pip sudo pip install --egg Scons pipが入ってない場合があるのでpipのインスコから あとはSConstructがあるディレクトリに移動してビルド cd toSourceDir scons BuildTarget
sudo apt-get install python3.4-venv pyvenv-3.4 targetdir cd targetdir source bin/activate sudo apt-get install python3-venvだとnot foundなので python3.4-venv
syntax enable set number set ts=4 set autoindent set expandtab set shiftwidth=4 set cursorline set showmatch let python_highlight_all = 1
import urllib2 import json req = urllib2.Request('geturl') response = urllib2.urlopen(req) r = response.read() decode_json_data = json.loads(r) getmail_list = decode_json_data['emails']