Optimize non-Apple SSDs on OS X. (Run the following commands in the terminal.)
Enable TRIM support
Check IOAHCIBlockStorage version:
open /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/version.plist
| #!/bin/sh | |
| curl -XDELETE localhost:9200/foo >/dev/null | |
| curl -XPOST localhost:9200/foo/t -d' | |
| { | |
| "clicks": 10, | |
| "impressions": 1000, | |
| "when": "2013-10-01" | |
| } |
| --- opencv-2.4.6.1/modules/highgui/CMakeLists.txt.orig 2013-10-08 10:16:00.000000000 -0700 | |
| +++ opencv-2.4.6.1/modules/highgui/CMakeLists.txt 2013-10-08 10:14:40.000000000 -0700 | |
| @@ -191,7 +191,7 @@ | |
| list(APPEND HIGHGUI_LIBRARIES ${BZIP2_LIBRARIES}) | |
| endif() | |
| if(APPLE) | |
| - list(APPEND HIGHGUI_LIBRARIES "-framework VideoDecodeAcceleration" bz2) | |
| + list(APPEND HIGHGUI_LIBRARIES "-framework VideoDecodeAcceleration -lmp3lame -lfaac -liconv -lx264 -lxvidcore" bz2) | |
| endif() | |
| endif(HAVE_FFMPEG) |
Optimize non-Apple SSDs on OS X. (Run the following commands in the terminal.)
Check IOAHCIBlockStorage version:
open /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/version.plist
| # UpYun storage for django, written by Tyr Chen @ tukeq.com | |
| # to run this gist you need to get upyun python sdk first. | |
| # upyun storage | |
| class UpYunStorage(Storage): | |
| def __init__(self, bucket=settings.UPYUN_BUCKET): | |
| self.upyun = UpYun(bucket, settings.UPYUN_USERNAME, settings.UPYUN_PASSWORD) | |
| self.upyun.setApiDomain(settings.UPYUN_API_DOMAIN) | |
| self.binding_domain = settings.UPYUN_BINDING_DOMAIN |