This file contains hidden or 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
~ $ cat ~/.gemrc | |
--- | |
:update_sources: true | |
:bulk_threshold: 1000 | |
:sources: | |
- http://gems.rubyforge.org | |
- http://gems.github.com | |
gem: --no-ri --no-rdoc | |
:verbose: true | |
:benchmark: false |
This file contains hidden or 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
# miner_pool.sh - executes a script against each instance: ./mine_pool.sh setup.sh | |
# list your instances here | |
# use ami-12b6477b | |
INSTANCES="ec2-50-19-52-212.compute-1.amazonaws.com | |
ec2-50-16-126-107.compute-1.amazonaws.com | |
ec2-184-72-177-183.compute-1.amazonaws.com | |
ec2-50-17-126-57.compute-1.amazonaws.com | |
ec2-184-73-119-153.compute-1.amazonaws.com" |
This file contains hidden or 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
NSString* version = @"Version (unknown)"; | |
NSDictionary* dict = [[NSBundle mainBundle] infoDictionary]; | |
if (dict) { | |
version = [NSString stringWithFormat:@"Version %@", | |
[dict objectForKey:@"CFBundleVersion"]]; | |
} |
This file contains hidden or 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
#!/bin/bash | |
# | |
# Creates the required icon images for iOS: | |
# Icon.png (57x57) | |
# [email protected] (114x114) | |
# Icon-72.png (72x72) | |
# Icon-Small-50.png (50x50) | |
# Icon-Small.png (29x29) | |
# [email protected] (58x58) | |
# |
This file contains hidden or 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
UITextView * nameView = [[UITextView alloc] initWithFrame:CGRectMake(0, 200, 350, 50)]; | |
nameView.text = @"hello world, overwrite me"; | |
nameView.transform = CGAffineTransformMakeRotation( CC_DEGREES_TO_RADIANS( 90.0f ) ); | |
nameView.delegate = self; | |
[nameView setReturnKeyType:UIReturnKeyDone]; | |
[[[CCDirector sharedDirector] openGLView] addSubview:nameView]; |
This file contains hidden or 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
# This rewrites all dynamic requests to /system/maintenance.html if that | |
# file exists, this file is created by Capistrano's disable task. | |
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f | |
RewriteCond %{SCRIPT_FILENAME} !maintenance.html | |
RewriteRule ^.*$ /system/maintenance.html [L] |
NewerOlder