OS X 备忘

创建 512M 内存盘

diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://1165430`

MacPort 更新

sudo port self update
sudo port list outdated
sudo port upgrade outdated

MacPort 卸载所有过时的版本

sudo port uninstall inactive

打开 MAS 的更新测试版功能

sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL https://swscan.apple.com/content/catalogs/others/index-10.9seed-10.9-mountainlion-lion-snowleopard-
leopard.merged-1.sucatalog.gz

压缩 sparse bundle disk image

hdiutil compact /path/to/xxx.sparsebundle

创建一个简单的 tcp server

$ nc -k -l 4444




发表评论

电子邮件地址不会被公开。 必填项已用*标注