Youtube downloader 又来一个

[youtube-dl](https://github.com/rg3/youtube-dl) 又一个 Youtube downloader,不过这次这个真实大赞,支持的网站还真是多啊。 而且功能很强大,比如下载一个质量超级棒的,带字幕的(Youtube only) “` $ youtube-dl -f bestvideo+bestaudio https://www.youtube.com/watch?v=POu1e71OlMo –write-auto-sub “`

在 Yosemite 下使用 JDK 1.6

首先下载一个 [OS X 的 JDK 1.6](http://supportdownload.apple.com/download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/Mac_OS_X/downloads/031-03190.20140529.Pp3r4/JavaForOSX2014-001.dmg). 然后要使用`Maven`的话,还要安装 3.1 的版本,之后的版本就要求 1.7 起步了。 `$ brew install homebrew/versions/maven31`

OS X下使用Homebrew来管理服务

使用Homebrew时,经常有一系列的服务要安装启动,通常的做法是copy一个`plist`文件到`~/Library/LaunchAgents`目录下再`launchctl load`一下,比较麻烦。 今天发现了一个不错的玩意-brew services 1. 安装: `brew tap gapple/services` 2. 使用: `brew services restart mysql` 下面是我的`brew services list` “` $ brew services list influxdb started 658 /Users/khsing/Library/LaunchAgents/homebrew.mxcl.influxdb.plist dnsmasq started 34881 /Users/khsing/Library/LaunchAgents/homebrew.mxcl.dnsmasq.plist nginx started 39552 /Users/khsing/Library/LaunchAgents/homebrew.mxcl.nginx.plist postgresql started 676 /Users/khsing/Library/LaunchAgents/homebrew.mxcl.postgresql.plist php56 started 45046 /Users/khsing/Library/LaunchAgents/homebrew.mxcl.php56.plist redis started 668 /Users/khsing/Library/LaunchAgents/homebrew.mxcl.redis.plist mysql started 34225 /Users/khsing/Library/LaunchAgents/homebrew.mxcl.mysql.plist “` 而且这个还可以帮助清理`brew services cleanup`,居家旅行必备。…