Dec 23, 2016

Roof painting

Normally all rust have to be taken and the surface should be clean
But I'm lazy so I used a paint that directly suitable to paint over rust. サビの上からそのまま塗れる塗料

アサヒペン 油性高耐久アクリルトタン用塗料
Although it's oil based, the smell is weak and pleasant to work with.











1/4th of the work. to be continued.

Nov 26, 2016

資産

がんばってローンを支払い終えたら、その家は資産でしょうか?資産とは、お金を生み出す場所。お金を生み出すことなく、税金がかかり、補修費用が必要になるのであれば、それは負債です
http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1438270044

This is biggest myth about normal real estate in Japan, using 35 years "flat" loan.
At the end of loan, it will not become an asset, but a burden.

Nov 24, 2016

Blog about life in Japan

https://catforehead.com

Specialized about real easte

Daily
http://www.survivingnjapan.com/

http://foreignsalaryman.blogspot.jp/

Nov 18, 2016

Pipe



Source http://www.rakuten.ne.jp/gold/suidou/html/sunpou_neji.htm

PJ1/2 : mainly faucet
G1/2: pipe, can connect to PJ1/2
W26山20: faucet output, many water related devices use this interface. Cannot connect to PJ1/2 an G1/2. Need a converter

ホース: free-size pipe

おねじ: male part
めねじ: female part

Aug 22, 2016

Multiple SSL on same IP

There is a known web server limits, make it hard to host many SSL on same server with only 1 IP address. (see http://nginx.org/en/docs/http/configuring_https_servers.html )

An SSL certificate with several names seems to be the simplest solution. Here is outline of 1 way to do it:
* Automate using https://github.com/srvrco/getssl to get certificates
* Let's encrypt with 1 main domain, other domains consider as alternative names

Steps
1. Initialize configurations: getssl -c MAIN.DOMAIN

2. Change CA to production, ACCOUNT_EMAIL in ~/.getssl/getssl.cfg

3. Enter SANS, ACL,RELOAD_CMD in ~/.getssl/MAIN.DOMAIN/getssl.cfg

ACL is path (public accessible via URL) to verify your domains.
it must have same number of lines as number of your domains.

RELOAD_CMD can be 
sudo nginx -s reload
Let's current user is deploy. visudo to allow: 
deploy ALL=NOPASSWD:/usr/sbin/nginx

4. Get certificates: getssl MAIN.DOMAIN
5. Configure nginx to use certificates in ~/.getssl/MAIN.DOMAIN
6. Automate renew using cron 

23  5 * * * /home/deploy/scripts/getssl -u -a -q