Aaron Wojnowski speedyapocalypse

View gist:5311690
1 2 3 4
<!DOCTYPE html><html lang="en" data-cast-api-enabled="true"><head> <link id="css-3797231512" rel="stylesheet" href="http://s.ytimg.com/yts/cssbin/www-core-vflDAc18Y.css">
 
<script>var ytcsi = {data_: {tick: {},info: {}},tick: function(l, t) {ytcsi.data_.tick[l] = t || new Date();},info: function(k, v) {ytcsi.data_.info[k] = v;}};ytcsi.tick('start');if (document.webkitVisibilityState == 'prerender') {ytcsi.info('prerender', 1);document.addEventListener('webkitvisibilitychange', function() {ytcsi.tick('start');}, false);}try {ytcsi.pt_ = (window.chrome && chrome.csi().pageT ||window.gtbExternal && gtbExternal.pageT() ||window.external && external.pageT);if (ytcsi.pt_) {ytcsi.info('pt', Math.floor(ytcsi.pt_));}} catch(e) {}</script>
<script>var ytdns = {};ytdns.ping = function(src, num) {var img = new Image();ytdns[num] = img;img.onload = img.onerror = function() {delete ytdns[num];};img.src = src;};ytdns.ping("http:\/\/r3---sn-vgqelne6.c.youtube.com\/crossdomain.xml", 2);ytdns.ping("http:\/\/r3---sn-v
View musi_remote_code_writeup.md

Musi [1] is an iOS application that allows you to stream (primarilly music) videos from YouTube, create playlists, etc. In doing so, Musi utilizes an interesting series of algorithms to extract .mp4 video links from YouTube. An issue that arose early on in Musi's lifetime was the fact that YouTube can change their front end code at any time which would subsequently break Musi's link extractor. Since the application is on the App Store, updates generally took around seven days to release which would cause a significant amount of the user base to jump ship. When releasing Musi version 1.1, I had to devise a better way to handle with these arbitrary updates and make sure that the parsing code was future proof.

Going into this issue, I figured that there were three paths to take:

  1. Request a video through the Musi web server and have that parse out the desired video URL, which would be then sent back to the client.
  2. Send the YouTube source, which contained the desired URLs, to the Musi server which wou
View gist:4445875
1 2 3 4 5 6 7 8 9 10
-(NSString *)mp4URLFromYoutubeContents:(NSString *)string error:(NSError **)error {
@try {
NSString * (^getGETVariable)(NSString *url, NSString *val) = ^(NSString *url, NSString *val){
NSArray *array = [url componentsSeparatedByString:[NSString stringWithFormat:@"%@=",val]];
if ([array count] <= 1) return (NSString *)nil;
val = [array[1] componentsSeparatedByString:@"&"][0];
View oauth.py
1 2 3 4 5 6 7 8 9
import random;
import string
import time
import urllib
import urllib2
from urlparse import urlparse
 
import hmac
import hashlib
View gist:2225816
1 2 3 4 5 6 7 8 9 10
<?php
 
function retrieve_graph($input) {
$json = file_get_contents('http://graph.facebook.com/' . $input);
$json = json_decode($json);
if (isset($json->error) || !$json) return null;
return $json;
View gist:2069100
1 2 3 4 5 6 7 8 9 10
-(void)viewDidLoad {
[super viewDidLoad];
[[self view] setBackgroundColor:[UIColor whiteColor]];
NSString *url = @"http://www.youtube.com/watch?v=8UVNT4wvIGY";
[NSURLConnection sendAsynchronousRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]] queue:[[[NSOperationQueue alloc] init] autorelease] completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {
View letter_rearranger.class.php
1 2 3 4 5 6 7 8 9 10
<?php
 
/*
letter_rearranger.class.php
Created by Aaron Wojnowski, 2012
-- USAGE --
1) Create a .txt wordlist with words separated with a newline. Example:
Something went wrong with that request. Please try again.