Skip to content

Instantly share code, notes, and snippets.


Michael Mior michaelmior

Block or report user

Report or block michaelmior

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
michaelmior / MyHTTPClient.m
Created Sep 26, 2012
Override of requestWithMethod:path:parameters:
View MyHTTPClient.m
- (NSMutableURLRequest *)requestWithMethod:(NSString *)method path:(NSString *)path parameters:(NSDictionary *)parameters
NSURL *url = [NSURL URLWithString:path relativeToURL:self.baseURL];
OAConsumer *consumer = [[OAConsumer alloc] initWithKey:OAUTH_CONSUMER_KEY secret:OAUTH_CONSUMER_SECRET];
OAHMAC_SHA1SignatureProvider *provider = [[OAHMAC_SHA1SignatureProvider alloc] init];
OAMutableURLRequest *request = [[OAMutableURLRequest alloc] initWithURL:url consumer:consumer token:self.token realm:@"Bunch API" signatureProvider:provider];
[request setHTTPMethod:method];
[request setAllHTTPHeaderFields:self.defaultHeaders];
if ([method isEqualToString:@"GET"] || [method isEqualToString:@"HEAD"]) {
michaelmior / talker-webkit.js
Created Mar 21, 2012
TalkerApp notifications for webkit
View talker-webkit.js
michaelmior /
Created Aug 26, 2011
Simple script to move all tables from one database to another. Please don't use this in production as it could fail horribly. Also, RENAME table doesn't work on views, so they won't be migrated.
TABLES=`echo "SHOW TABLES IN $1;" | mysql -NB`
You can’t perform that action at this time.