2015-05-26から1日間の記事一覧
PHPで今日から任意の日付までの日数を引き算する方法をメモ。今回のサンプルは期限の時間 $time_limit から現在の時間を引いた結果が秒で出るので、それを日数に変換しています。 $remaining_days = floor((strtotime($time_limit) - strtotime('now')) / (6…
久々にこういうコマンド触ったので忘れないようにメモ まずは開発サーバのPostgreSQLのテーブルを抜き取るのにpg_dumpを調べ直しました。 https://www.postgresql.jp/document/9.2/html/app-pgdump.html pg_dump -t [tabel_name] -U[user_name] [database_na…
git cloneしようとしたら上記エラーが出たのでメモがてらシェア ※ちなみにgitlab使ってます。 git clone http://gitlab.hogehoge.net/hoge/hogepage.git error: Failed connect to gitlab.hogehoge.net:80; Operation now in progress while accessing http:…