Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
| # 生成 dhparam.pem 文件, 在命令行执行任一方法: | |
| # 方法1: 很慢 | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 | |
| # 方法2: 较快 | |
| # 与方法1无明显区别. 2048位也足够用, 4096更强 | |
| openssl dhparam -dsaparam -out /etc/nginx/ssl/dhparam.pem 4096 |
| <?php | |
| class Token | |
| { | |
| private $mmc; | |
| private $cache_time; | |
| function __construct() | |
| { | |
| $this->cache_time = 60 * 60 * 24; |
| #!/bin/bash | |
| # | |
| # 通过对比 ping 响应时间,找到本机最快的上传ip | |
| # Travis@fir.im | |
| # | |
| function refresh_host() | |
| { | |
| IP="$1" | |
| UPLOAD_HOST="upload.qiniu.com" |
| ### This file configures various client-side behaviors. | |
| ### | |
| ### The commented-out examples below are intended to demonstrate | |
| ### how to use this file. | |
| ### Section for authentication and authorization customizations. | |
| [auth] | |
| ### Set password stores used by Subversion. They should be | |
| ### delimited by spaces or commas. The order of values determines | |
| ### the order in which password stores are used. |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
| // | |
| // Created by Damien DeVille on 6/23/13. | |
| // Copyright (c) 2013 Damien DeVille. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> | |
| #import <objc/runtime.h> | |
| extern id _objc_setNilReceiver(id newNilReceiver); | |
| ######################### | |
| # .gitignore file for Xcode4 / OS X Source projects | |
| # | |
| # Version 2.0 | |
| # For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
| # | |
| # 2013 updates: | |
| # - fixed the broken "save personal Schemes" | |
| # | |
| # NB: if you are storing "built" products, this WILL NOT WORK, |