小明的網誌

一個工程師的故事

By

看完 Vim 會升級

http://coolshell.cn/articles/5426.html

By

Apple TV DFU

拔掉所有電源。

插上micro usb 到電腦7秒

再連上電源3秒

最後遙控上menu+play同時按住7秒就dfu了

 

By

看到好用的文章, 自製 Mac 系統維護 Apple Script

http://www.mobile01.com/topicdetail.php?f=482&t=185076&p=1

By

我的 Air 是 LG 的啦 @@

從 http://www.rakunamac.tw/?p=10608 得到訊息

ioreg -lw0 | grep IODisplayEDID | sed "/[^<]*</s///" | xxd -p -r | strings -6
LP133WP1-TJA3
Color LCD

唉~~~~一直很不想用韓貨, 但很多地方就是會出現

認命了

By

讓 safari 在切換 tab 可以利用 cmd + 1~9

safari 的 cmd + 數字被拿去快速 browse bookmark 裡的頁面, 但說真的很不方便

還是像 chrome or FF 可以利用 cmd + 數切換 tab

找來找去, 就安裝下面這個東西, 就能解決啦

https://github.com/rs/SafariTabSwitching

 

By

Disable spotlight on Lion

關掉的方法

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo mdutil -a -i off

 

enable

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo mdutil -a -i on

基本上把 com.apple.metadata.mds.plist disable 後, mdutil 就會沒有作用
如這樣

% sudo mdutil -a -i off
Spotlight server is disabled.

ref: http://osxdaily.com/2009/09/20/disable-spotlight-in-mac-os-x-10-6-snow-leopard/

By

Lion 的 /Volume 多一個 Backups.bakcupdb 如何處理?

最近在使用 MBA 2011 上發現 /Volume/Backups.bakcupdb 這個很像 snapshot 的東西, 依時間打 / 下的東西

這是可以停止的

from ref:

http://5i01.com/topicdetail.php?f=482&t=2298237

http://www.chrisk.de/blog/2011/07/how-to-disable-time-machines-mobilebackup/

從第二個連結可以得知解法:

sudo tmutil disablelocal

就可以把 /Volume/Backups.bakcupdb 去除

Verified by MonsterInsights