Skip to content

Instantly share code, notes, and snippets.

View NachoMan's full-sized avatar

Alex Nachbaur NachoMan

View GitHub Profile
function loadHTML(node, url, timeout) {
if (timeout == undefined)
timeout = 10000;
var req = new XMLHttpRequest();
var timer = setTimeout(function() {
try {
req.abort();
} catch(e) {}
navigator.notification.loadingStop();
CONFIGURATIONS="Distribution Release"
ProvisionRelease=9807906A-42AF-425E-BD50-80D92E523997.mobileprovision
ProvisionDistribution=9EB28E74-33F5-4DDA-9E10-A4C9CC7F5294.mobileprovision
set -ex
git clean -dfx
echo "Setup dependancies"
eval $(perl -Mlocal::lib=support)
wget -q -O - http://cpanmin.us | perl - --notest App::cpanminus
./support/bin/cpanm --notest \
CPAN::Uploader \
Module::Install \
TAP::Formatter::JUnit
#!/bin/sh
SERVER=backup@squee.decafninja.com
CLIENT=`hostname`
NAME=`hostname -s`
. /var/backups/backup.conf
SERVER_ROOT="/var/backups/systems/$NAME"
SSH_OPT="-i /var/backups/.ssh/id_rsa"
#!perl
use 5.010;
use LWP::UserAgent;
use Getopt::Long;
use YAML::XS;
$ENV{JAVA_HOME} = 'C:\Program Files\Java\jdk1.6.0_21';
$ENV{ANT_HOME} = 'C:\SeleniumGrid\apache-ant-1.8.1';
$ENV{SELENIUM_HOME} = 'C:\SeleniumGrid\selenium-grid-1.0.8';
$ENV{PATH} = qq($ENV{JAVA_HOME}\\bin;$ENV{PATH};"$ENV{ANT_HOME}\\bin");
//
// MKMapView+Additions.h
// ParkingMobility
//
// Created by Michael Nachbaur on 10-09-12.
// Copyright 2010 Decaf Ninja Software. All rights reserved.
//
#import <MapKit/MapKit.h>
//
// DNCloseButton.h
// ParkingMobility
//
// Created by Michael Nachbaur on 10-08-22.
// Copyright 2010 Decaf Ninja Software. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
@NachoMan
NachoMan / DNCloseButton.h
Created March 12, 2011 19:50
UIButton rebranded to look like a Dashboard-style close button
//
// DNCloseButton.h
// ParkingMobility
//
// Created by Michael Nachbaur on 10-08-22.
// Copyright 2010 Decaf Ninja Software. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
64 bytes from 173.194.33.1: icmp_seq=0 ttl=56 time=656.752 ms
64 bytes from 173.194.33.1: icmp_seq=1 ttl=56 time=768.266 ms
64 bytes from 173.194.33.1: icmp_seq=2 ttl=55 time=910.722 ms
64 bytes from 173.194.33.1: icmp_seq=3 ttl=56 time=829.643 ms
64 bytes from 173.194.33.1: icmp_seq=4 ttl=56 time=446.671 ms
64 bytes from 173.194.33.1: icmp_seq=5 ttl=55 time=140.077 ms
64 bytes from 173.194.33.1: icmp_seq=6 ttl=55 time=381.253 ms
64 bytes from 173.194.33.1: icmp_seq=7 ttl=55 time=73.656 ms
64 bytes from 173.194.33.1: icmp_seq=8 ttl=55 time=124.053 ms
64 bytes from 173.194.33.1: icmp_seq=9 ttl=55 time=968.722 ms
@NachoMan
NachoMan / DataManager.h
Created April 15, 2011 21:15
Core Data singleton manager class capable of being run from a static library
// DataManager.h
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
extern NSString * const DataManagerDidSaveNotification;
extern NSString * const DataManagerDidSaveFailedNotification;
@interface DataManager : NSObject {
}