Skip to content

Instantly share code, notes, and snippets.

View shazron's full-sized avatar
😆

Shazron Abdullah shazron

😆
View GitHub Profile
@shazron
shazron / list_connected_ios_devices.sh
Created April 3, 2014 23:15
List connected iOS devices
system_profiler SPUSBDataType | sed -n -e '/iPad/,/Serial/p' -e '/iPhone/,/Serial/p' | grep "Serial Number:" | awk -F ": " '{print $2}'
@shazron
shazron / gist:10078653
Created April 8, 2014 00:52
WWDC 2014 Rejection Email
Subject: Your WWDC Ticket Status
Dear Developer,
Thank you for registering for the random selection process to attend WWDC 2014.
Unfortunately, you were not selected to purchase a ticket. However, you can still take advantage of great WWDC content. We'll be posting session videos, slides, and sample code throughout the week for all Registered Apple Developers.
We appreciate your support.
@shazron
shazron / APPLE-SA-2014-09-17-1 iOS 8
Created September 17, 2014 17:49
APPLE-SA-2014-09-17-1 iOS 8
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
APPLE-SA-2014-09-17-1 iOS 8
iOS 8 is now available and addresses the following:
802.1X
Available for: iPhone 4s and later,
iPod touch (5th generation) and later, iPad 2 and later

Keybase proof

I hereby claim:

  • I am shazron on github.
  • I am shazron (https://keybase.io/shazron) on keybase.
  • I have a public key whose fingerprint is 1C9F D65D 7D92 4C08 D504 3CB0 24C3 1ABC B01A AC82

To claim this, I am signing this object:

@shazron
shazron / gist:484744630efcd5456e7b
Created October 7, 2014 20:57
__git_ps1 Yosemite .bash_profile
source `xcode-select --print-path`/usr/share/git-core/git-completion.bash
source `xcode-select --print-path`/usr/share/git-core/git-prompt.sh
@shazron
shazron / error.html
Created October 23, 2014 20:37
cordova-ios 3.7.0 error page
<!DOCTYPE html>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
__weak __typeof(self) weakSelf = self;
[UIView transitionWithView:self.viewController.view
duration:fadeDuration
options:UIViewAnimationOptionTransitionNone
animations:^(void) {
__typeof(self) strongSelf = weakSelf;
if (strongSelf != nil) {
dispatch_async(dispatch_get_main_queue(), ^{
[strongSelf->_activityView setAlpha:0];
@shazron
shazron / package.json
Created April 21, 2015 02:07
Xcode Server node package.json
{
"name": "xcsnode",
"description": "Xcode Server 2",
"dependencies": {
"async": "~0.2.9",
"basic-auth": "0.0.1",
"client-sessions": "^0.6.0",
"express": "3.4.x",
"handlebars": "~1.3.0",
"mkdirp": "~0.3.5",
#!/bin/bash
# This script builds the iOS and Mac openSSL libraries
# Download openssl http://www.openssl.org/source/ and place the tarball next to this script
# Credits:
# https://github.com/st3fan/ios-openssl
# https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh
// PhoneGap Reachability Support
function testReachable() {
// no http:// prefix!
navigator.network.isReachable("www.google.com", testReachable_callback);
// OR by ipAddress
navigator.network.isReachable("212.32.454.32", testReachable_callback, { isIpAddress: true});
}
// NetworkStatus: 0 for NotReachable, 1 for ReachableViaCarrierDataNetwork,