为什么你值得拥有一个装了dokku的VPS

早些的时候我用heroku架设自己的博客,因为heroku最低档的服务不要钱,如果架设一个静态网页的博客完全足够了。就这样我熟悉了heroku buildpack的发布网站的思路和流程。为了搭个网站去琢磨nginx的配置什么的,我才不干呢。

后来有一天heroku说他们对服务计划进行了修改,最低档的服务不再能7x24服务,dyno会被定时休眠,于是有了挪窝的计划。

Home brewed mutt contact query script

In my last post, I mentioned the usage of customized query_command to look up contact email address. Some might wonder why I would want to do this despite there are many mature tools, such as abook and lbdb, available.

The reason is simple. I just do not like to install extra any extra packages for mutt contact management. Having a few scripts safely backed-up to github and providing the same functionality, is much easier to maintain.

Multiple IMAP Accounts with Mutt

Background

You should be more or less a fan of command line email if reading this.

Having been using mutt for several years, I have to say my mutt configuration evolves, either following changes in new technology or concepts with email processing.

Use Ultisnips to insert ING Direct Paywave rebate records for ledger

It has been realy a long time since my last article. Anyway, I am here again. Now in Australia, I think I should start to write in English to expose the content to a broader scope of audience.

I have been using ledger for personal accounting for 10 months now. It amazes myself that I could persist in putting every cents spent down in the ledger file for such a long time.

github风格的日历显示commit

最近在知道了一个不错的东西,git-cal,可以针对任意git的repo产生github样式的 calendar view。我想把它的输出放到我的shell的motd里面去,不过有几个问题:

  • 它不能对于几个git repo的log进行汇总
  • 它不支持接受STDIN输入
  • 它是Perl写的,我基本上看不懂

在github上给作者留言让他加入接受STDIN json输入的feature request,没有回应,于是 ,自己写了一个。脚本的名字暂定stat_cal,用法目前有两种: