Skip to content

Instantly share code, notes, and snippets.

Peter Theill theill

Block or report user

Report or block theill

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
View keybase.md

Keybase proof

I hereby claim:

  • I am theill on github.
  • I am theill (https://keybase.io/theill) on keybase.
  • I have a public key ASBc89GQ2sdiqWkaj9jB0NIVAEbW5AL7lIHXLiM82fSFago

To claim this, I am signing this object:

View gist:a1ad576965bf3952471f
Pod::Spec.new do |s|
s.name = "AFAmazonS3Client"
s.version = "2.0.0"
s.summary = "AFNetworking Client for the Amazon S3 API."
s.homepage = "https://github.com/AFNetworking/AFAmazonS3Client"
s.social_media_url = "https://twitter.com/AFNetworking"
s.license = 'MIT'
s.author = { "Mattt Thompson" => "m@mattt.me" }
s.source = { :git => "https://github.com/AFNetworking/AFAmazonS3Client.git",
:tag => "2.0.0" }
View SwatchITime.java
/**
* @(#)SwatchITime.java
* @version 0.5 01/09/99
* @version 1.0 01/10/99
* @author Peter Theill
*
* This Applet displays current time using Internet Time: a new
* international timeformat invented by Swatch. The SwatchITime
* applet automatically updates every second (or in userdefined
* intervals) to symbolize a running clock. Furthermore, you'll
View gist:8047432
Pod::Spec.new do |s|
s.name = 'UrbanAirship-iOS-SDK'
s.version = '2.1.0'
s.license = 'BSD'
s.platform = :ios
s.summary = 'A simple way to integrate Urban Airship services into your iOS applications.'
s.homepage = 'https://github.com/urbanairship/ios-library'
s.author = { 'Urban Airship' => 'support@urbanairship.com' }
s.source = { :git => 'https://github.com/urbanairship/ios-library.git', :tag => '2.1.0' }
View DRApiClient.m
- (void)expire:(NSString *)offerId success:(void (^)(BOOL))success failure:(ErrorBlock)failure {
[self deletePath:[NSString stringWithFormat:@"/offers/%@", offerId] parameters:nil
success:^(AFHTTPRequestOperation *o, id rsp) {
if (success) {
success(YES);
}
}
failure:[self handleError:failure]];
}
View DRApiClient.m
- (void)expire:(NSString *)offerId success:(void (^)(BOOL))success failure:(ErrorBlock)failure {
[self deletePath:[NSString stringWithFormat:@"/offers/%@", offerId] parameters:nil
success:^(AFHTTPRequestOperation *o, id rsp) {
if (success) {
success(YES);
}
}
failure:[self handleError:failure]];
}
View keep_releases.sh
releases_path=/data/sites/yoursite.com/releases # change this
keep_releases=5
versions=`ls -xt $releases_path`
releases=(${versions// / })
# check available number of versions in releases directory
releases_count=${#releases[@]}
if [ $releases_count -le $keep_releases ]
View gist:887630
welcome!
<input type="text" x-webkit-speech />
<style type="text/css" media="screen">
#pit-handbook {}
#pit-handbook ol {
margin: 0;
padding: 0;
View gist:716648
% defaults write com.apple.Xcode XCShowUndoPastSaveWarning NO
% defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME" = "Commanigy"; }
@theill
theill / gist:104333
Created Apr 30, 2009
Theills bash profile
View gist:104333
export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
export APPENGINE_JAVA_SDK="/Users/theill/appengine-java-sdk-1.2.0"
export TERM="xterm-color"
export CLICOLOR=1
export LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=
You can’t perform that action at this time.