SQLiteのコマンドラインって見にくいですよね。
そこで見やすくする方法についてメモ。
$ vim ~/.sqliterc .header on .mode column
これでOKです。
または、SQLiteのコマンドライン内で直接、
$ sqlite3 hoge.sqlite sqlite> .header on sqlite> .mode column
これでもOKです。
以上でぇぇぇす。
大阪でWEB屋しています。
OSSに関するメモ帳のかわり。
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
2018-04-23 16:12:23.13289
created_at TIMESTAMP NOT NULL DEFAULT DATE_TRUNC('second', now() :: timestamp)
$ wget "https://dl.eff.org/certbot-auto" // certbot-autoを適当なPATHへ持っていく # mv certbot-auto /usr/local/bin // certbot-autoに実行権限を付与 # chmod +x /usr/local/bin/certbot-auto
# certbot-auto certonly --webroot -w /www/path/to/public -d example.com --email info@example.com
IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/example.com/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/example.com/privkey.pem Your cert will expire on 2018-07-18. To obtain a new or tweaked version of this certificate in the future, simply run certbot-auto again. To non-interactively renew *all* of your certificates, run "certbot-auto renew" - If you like Certbot, please consider supporting our work by: Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate Donating to EFF: https://eff.org/donate-leが表示されます。
$ ls /etc/letsencrypt/live/example.com README cert.pem chain.pem fullchain.pem privkey.pem
SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/example.com/chain.pem
# /usr/local/apache2/bin/apachectl restart
# vim /etc/crontab 30 5 * * 1 root /usr/bin/certbot-auto renew -q --no-self-upgrade --post-hook "/usr/local/apache2/bin/apachectl restart"
$ ./configure ERROR: libwebp >= 0.2.0 not found using pkg-config
のようなエラーが出る場合、pkg-configとやらが悪さをしている可能性があります。
$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig