I hereby claim:
- I am wbroek on github.
- I am wbroek (https://keybase.io/wbroek) on keybase.
- I have a public key whose fingerprint is F07A 7340 1D50 630A 4A6A 1482 DE92 4678 7C81 6CB0
To claim this, I am signing this object:
| CALayer *viewLayer = UIVIEW.layer; | |
| CAGradientLayer *gradientLayerView = [[CAGradientLayer alloc] init]; | |
| [gradientLayerView setFrame:[UIVIEW frame]]; | |
| [gradientLayerView setPosition:CGPointMake(UIVIEW.frame.size.width / 2, UIVIEW.frame.size.height / 2)]; | |
| [gradientLayerView setMasksToBounds:NO]; | |
| [gradientLayerView setColors:[NSArray arrayWithObjects: | |
| (id)[[UIColor colorWithWhite:0.0 alpha:1.0] CGColor], | |
| (id)[[UIColor colorWithWhite:0.0 alpha:0.0] CGColor], nil]]; | |
| [gradientLayerView setStartPoint:CGPointMake(0.5, 0.92)]; |
| # Mac OS X | |
| *.DS_Store | |
| # Xcode | |
| *.pbxuser | |
| *.mode1v3 | |
| *.mode2v3 | |
| *.perspectivev3 | |
| *.xcuserstate | |
| project.xcworkspace/ |
| ACAccountStore *store = [[ACAccountStore alloc] init]; | |
| ACAccountType *facebookAccountType = [store accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook]; | |
| NSDictionary *FacebookOptions = @{ACFacebookAppIdKey: @"XXXXXXXXXX",ACFacebookPermissionsKey: @[@"email"],ACFacebookAudienceKey:ACFacebookAudienceEveryone}; | |
| [store requestAccessToAccountsWithType:facebookAccountType options:FacebookOptions completion:^(BOOL granted, NSError *error) { | |
| if (granted) | |
| { | |
| NSArray *accounts = [store accountsWithAccountType:facebookAccountType]; | |
| Class MKMapItemClass = [MKMapItem class]; | |
| if (MKMapItemClass && [MKMapItemClass respondsToSelector:@selector(openMapsWithItems:launchOptions:)]) { | |
| CLLocationCoordinate2D endCoord = { 54.0696, 50.3616 }; | |
| MKPlacemark *endLocation = [[MKPlacemark alloc] initWithCoordinate:endCoord addressDictionary:nil]; | |
| MKMapItem *endingItem = [[MKMapItem alloc] initWithPlacemark:endLocation]; | |
| NSMutableDictionary *launchOptions = [[NSMutableDictionary alloc] init]; | |
| [launchOptions setObject:MKLaunchOptionsDirectionsModeDriving forKey:MKLaunchOptionsDirectionsModeKey]; | |
| #import <UIKit/UIKit.h> | |
| @interface UIView (SMFrameAdditions) | |
| @property (nonatomic, assign) CGPoint $origin; | |
| @property (nonatomic, assign) CGSize $size; | |
| @property (nonatomic, assign) CGFloat $x, $y, $width, $height; // normal rect properties | |
| @property (nonatomic, assign) CGFloat $left, $top, $right, $bottom; // these will stretch the rect | |
| @end |
| NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services | |
| Download the following ZIPs: | |
| ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
| Download the correct GApps for your Android version: | |
| Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip) | |
| Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip) | |
| Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) |
| #!/bin/sh | |
| PLIST_BUDDY=/usr/libexec/PlistBuddy | |
| function add_compatibility() { | |
| "$PLIST_BUDDY" -c "Add DVTPlugInCompatibilityUUIDs:10 string $2" \ | |
| "$1/Contents/Info.plist" | |
| } | |
| function has_compatibility() { |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # Make sure you are up to date | |
| yum -y update && yum -y install wget | |
| # Install EPEL repository | |
| rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| # Get us a clean working directory | |
| mkdir /php |
| #!/bin/bash | |
| if [ "$#" -ne 3 ]; then | |
| echo "Usage: importcert.sh <CA cert PEM file> <bouncy castle jar> <keystore pass>" | |
| exit 1 | |
| fi | |
| CACERT=$1 | |
| BCJAR=$2 | |
| SECRET=$3 |