I hereby claim:
- I am enriquez on github.
- I am enriquez (https://keybase.io/enriquez) on keybase.
- I have a public key whose fingerprint is 24EF C494 25A1 9B68 CBE4 2011 7C13 16AD 970A 5701
To claim this, I am signing this object:
# Database dump from remote Postgres database | |
pg_dump postgres://username:password@example.com:5432/databasename > ~/Desktop/database.sql | |
# Restore dump to remote Postgres database | |
psql postgres://username:password@example.com:5432/databasename < ~/Desktop/database.sql |
desc 'Run Tests' | |
task :test do | |
system 'xctool -workspace MyApp.xcworkspace -scheme MyApp -configuration Debug -sdk iphonesimulator run-tests' | |
end | |
namespace :myapp do | |
desc 'Build archive for MyApp Beta' | |
task :build_beta do | |
system 'xctool -workspace MyApp.xcworkspace -scheme MyApp -configuration Beta archive' |
#!/usr/bin/env ruby | |
built_products_dir = ENV['BUILT_PRODUCTS_DIR'] | |
infoplist_path = ENV['INFOPLIST_PATH'] | |
dsym_dir = ENV['DWARF_DSYM_FOLDER_PATH'] | |
dsym_path = ENV['DWARF_DSYM_FILE_NAME'] | |
info_plist = File.join(built_products_dir, infoplist_path) | |
dsym_info_plist = File.join(dsym_dir, dsym_path, "Contents", "Info.plist") |
I hereby claim:
To claim this, I am signing this object:
- (void)logPEMForKey:(EC_KEY *)key { | |
const EC_GROUP *group = EC_KEY_get0_group(key); | |
PEM_write_ECPKParameters(stdout, group); | |
PEM_write_EC_PUBKEY(stdout, key); | |
PEM_write_ECPrivateKey(stdout, key, NULL, NULL, 0, NULL, NULL); | |
} |
#import "MEAppDelegate.h" | |
@interface UIStatusBar | |
@property(retain) UIColor * foregroundColor; | |
@end | |
@implementation MEAppDelegate | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ |
// Example of a better API for UIActionSheet | |
- (void)showActionSheet { | |
ECActionSheet *actionSheet = [[ECActionSheet alloc] initWithTitle:@"Title" cancelButtonTitle:@"Cancel"]; | |
// set a destructive button if needed | |
[actionSheet addDestructiveButtonWithTitle:@"Destructive Button" target:self action:@selector(destructiveButtonPressed)]; | |
// add buttons with target/action | |
[actionSheet addButtonWithTitle:@"Button One" target:self action:@selector(buttonOnePressed)]; |
// | |
// MENetworkOperation.h | |
// | |
// Created by Michael Enriquez on 8/21/12. | |
// | |
// | |
#import <Foundation/Foundation.h> | |
@interface MENetworkOperation : NSOperation <NSURLConnectionDelegate> |
var http = require('http'); | |
var count = 0; | |
var body = ''; | |
var lastStamp = new Date().getTime(); | |
http.createServer(function (req, res) { | |
req.addListener('data', function(chunk) { | |
body += chunk; | |
}); | |
req.addListener('end', function() { |
Free tier EC2 Ubuntu Server 64bit: ami-3202f25b |