Just got the Macbook Pro 2016 with touch bar 15' edition, setting it up takes my one full day. If the China network condition is good, I believe it will take much less time.
I decide the Macbook Pro from scratch instead of using migration assist because I want to keep the system clean. I will install as much application as possible from App Store, then the Homebrew, if both software repository can not find it, install it manually.
Apple store installation is the easiest one, once you log in and you will get all the application you have purchased.
brew are also relative easier, I even using brew to install Chrome and Firefox, via brew cask install google-chrome.
I would like to use percona instead of MySQL because, in China, Aliyun RDS is primarily based on percona, so I favor using the same software in dev env.
It will finally take 76Gb after installing all my needs, about 33% used, so I believe in buying a 256Gb SSD edition of rMBP should be enough for my next four years usage.
Sidekiq as a background processing facility in Rails, usually more and more important during business grow, but it's relative quite possible failed to startup due to there is some code error, so here is my solution to monitor it.
I choose the monit instead of god beause monit is written in C and very small memory footprint. The capistrano-sidekiq also having a out of box support, but when you combine with monit, capistrano, sidekiq it still trick, so I feel writing a blog is worth.
Some situation is better avoid Sidekiq like reporting the exception mail, so it's always the best practices to building a Postfix Satellite SMTP service instead.
Install Postfix
yuminstall-ypostfixcyrus-sasl-plain# cyrus-sasl-plain is no need for Ubuntu
yumerase-ysendmail*# In case Sendmail is installed
Configure
Similar to gmail or SendGrid, every mail service vendor offer different combination of setting, below is only apply to AliYun
I'm stucked quite a while when refresh a Galaxy Note II for friends, so I decide write something down:
Wait some time after USB drive installed N7100 driver, something due to china poor network and gfw, the driver install from internet may failed.
Root before install any 3rd party recovery, it's hardest part of change, I reference this for the Europe model, but you may need to found another way. This is must need before refresh any 3rd party recovery, because seems if not rooted, Knox will stop you do any further action.