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

psqlでパスワード入力をスキップ

.pgpassに定義する$ vi ~/.pgpass host:port:database:user:password

local作業のリポジトリを共有リモートリポジトリへ移管する

git

先ずはlocalでコミットまで行う local $ git add . $ git commitremote側でpushされるリポジトリを作成 remote $ mkdir origin $ git init $ git config --bool core.bare true再びlocal側でremote登録、及びpushまで local $remote add origin ssh://user@a…

今日のひとこま

select * from ( select * from hoge order by id limit 10 ) as hoge join hage on hoge.id = hage.id where hoge.id in ( select id from foo )と10件にした後、絞られてたので、 select * from ( select * from hoge where id in ( select id from foo ) …

自ホストへのfile_get_contentsでハマる

DNS登録済みのドメインmyserver.comサーバから自分自身へ file_get_contents( "http://myserver.com/hoge.txt" ); fopen( "http://myserver.com/hoge.txt", "r" );とした時、401 Unauthorized のエラーが発生。環境はこんな構成。NATでmyserver.com:80のアク…