Skip to content

Instantly share code, notes, and snippets.

View noiges's full-sized avatar

Tobias Noiges noiges

  • North Vancouver, BC
View GitHub Profile
@noiges
noiges / upload.js
Created December 21, 2012 16:21
Async client-side drag-and-drop file upload to Amazon S3
$(function(){
$("#files").bind("change", handleFileSelection);
var dropzone = $("#dropzone");
dropzone.on("dragover",allowDrop);
dropzone.on("drop",drop);
});
function handleFileSelection(event){
upload(event.target.files);
}
$('param[name="flashVars"]').each(function(i){
console.log($(this).attr('value').replace(/eventNamespace=audioPlayer.*mp3Url=/, "").replace(/&colorScheme=fm4/, "") )
});
@noiges
noiges / gist:6533921
Created September 12, 2013 07:16
Fire a view intent with data from adb
./adb shell am start -a "android.intent.action.VIEW" -d "schema://host?key=value"
@noiges
noiges / tischkonzert.txt
Last active April 23, 2017 12:25
Attempt to write down the lyrics of the german song "Tischkonzert" by "Rakede": http://www.youtube.com/watch?v=LbLfg5m3tns
Meine Freundin ist weg (so wie Schecks aus Amerika).
Geilheit macht mich zum Teilzeit-Polemiker.
Freiheit bringt mich jetzt nicht weiter Mann,
ich frage mich: Was fang ich bloß mit so viel Freizeit an?
Ich hab Chips gekauft und fern gesehen,
VIPs beim Boxen und Kochen im Dschungel — und in den Wehen.
Ich weiß nur: Live ist als Scheiß einzustufen!
Mir wars egal — ich hab 300 mal da angerufen.
@noiges
noiges / webrtc.sh
Created December 4, 2013 02:33
A shell script to build WebRTC for iOS/Mac.
#! bin/bash
# webrtc - A script to sync and build the webrtc codebase
#
# Dependencies
# Make sure to install the chromium depot_tools first. Detailed instructions available at
# http://dev.chromium.org/developers/how-tos/install-depot-tools
##### Constants
//
// UIDeviceHardware.h
//
// Used to determine EXACT version of device software is running on.
#import <Foundation/Foundation.h>
@interface UIDeviceHardware : NSObject
- (NSString *) platform;
@noiges
noiges / nginx.md
Created May 16, 2014 17:55
How to setup a simple proxy with nginx

How to setup a simple nginx proxy

  1. Install nginx: brew install nginx

  2. Add the following to /usr/local/etc/nginx/nginx.conf:

    http {
      ...
      server {
    

listen 1234;