ShellScript

Unix time

Unix time いろいろ.まずは C#. var timestamp = (DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0)).TotalSeconds.ToString("F0"); Python. timestamp = '%d' % time.mktime(time.localtime()) シェルスクリプト. TIMESTAMP=`date +%s`

Twitter の最新の200件の home_timeline をテキストとして読む

Equifax_Secure_Global_eBusiness_CA-1.cer は Equifax Secure Global eBusiness CA-1 (Base-64 encoded X.509) をダウンロードしたもの. sed のホールドスペースって初めて使ったけど、使いこなせれば色々と面白いことが出来そう. ひたすら入れ替えることに…