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

文字コードをUTF8に揃える

show variables like "chara%"; + Variable_name Value + character_set_client utf8 character_set_connection utf8 character_set_database latin1 character_set_filesystem binary character_set_results utf8 character_set_server utf8 character_set_…

CURL

ファイルに保存保存 http://domain.com/mt/mt-data-api.cgi/v2/sites/12/entries > json.txt トークン取得 curl -d username=namae -d password=pass -d remember= -d clientId=curl http://domain.com/mt/mt-data-api.cgi/v2/authentication 記事投稿 curl …

DataAPI

記事全部取得 http://domain.com/mt/mt-data-api.cgi/v2/sites/12/entries ID指定 http://domain.com/mt/mt-data-api.cgi/v2/sites/12/entries/7931

CURLでDataAPI

コマンドラインからユーザーを作成するスクリプト

参考 http://taiju.hatenablog.com/entry/20140205/1391559234Git https://github.com/t-shida/mt-tool-make_user ユーザー作成 ./tools/make_user -name=username -password=pass -email=emailaddress ユーザー削除 ユーザー削除も一応作った ./tools/make_…

分割したwindowの高さ・幅変更

Vim

幅変更 いいやいいやと10年くらい放置。。 Ctrl + w 10> Ctrl + w 10 高さ変更 Ctrl + w 10+ Ctrl + w 10-