This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ------------------------------- MyManager.h non-ARC ----------------------------------------// | |
#import "MyManager.h" | |
static MyManager *sharedMyManager = nil; | |
@implementation MyManager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ------------------------------------ MyManager.h ----------------------------------------// | |
#import <foundation/Foundation.h> | |
@interface MyManager : NSObject { | |
NSString *someProperty; | |
} | |
@property (nonatomic, retain) NSString *someProperty; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RAILS_ENV=production rake db:setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 首先备份/etc/yum.repos.d/CentOS-Base.repo | |
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup | |
# 下载对应版本repo文件, 放入/etc/yum.repos.d/(操作前请做好相应备份) | |
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install gem-fast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## first of all : I LOVE TAOBAO | |
$ gem sources --remove https://rubygems.org/ | |
$ gem sources -a http://ruby.taobao.org/ | |
$ gem sources -l | |
*** CURRENT SOURCES *** | |
http://ruby.taobao.org | |
# 请确保只有 ruby.taobao.org | |
$ gem install rails |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cp remote file to local | |
scp user@remote_host:remote_file local_file | |
# cp local file to remote | |
scp local_file user@remote_host:remote_file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/System/Library/Frameworks/JavaVM.framework/Commands |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mate /System/Library/CoreServices/SystemVersion.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsof -i tcp:7070 |