Just some tech stuff i like to remember

Check expire date ssl certificate

Use openssl to connect to the server and extract the enddate and certificate in pem format openssl s_client -connect <HOST>:443 -showcerts < /dev/null 2>

Bash tricks

Use last argument in next, e.g. cp file into dir, then cd into dir cp file.txt ~/Documents cd $_ Copy last argument cp file.txt ~/Documents cd !$ => cd


 openwrt, linux

A few days ago I thought it would be good idea to protect my home network by a firewall. After a little research I choose to use openWRT because of