Skip to content

Instantly share code, notes, and snippets.

View mekanics's full-sized avatar

Alexandre Joly mekanics

View GitHub Profile
@mekanics
mekanics / silex_app.php
Created January 9, 2012 20:26 — forked from docteurklein/silex_app.php
a little silex app to show doctrineExtension capabilities
<?php
require_once __DIR__.'/../Silex/silex.phar';
use Silex\Extension\DoctrineExtension;
$app = new Silex\Application;
$app->register(new DoctrineExtension, array(
'doctrine.dbal.connection_options' => array(
@mekanics
mekanics / gist:2058072
Created March 17, 2012 12:00
UIView Shadow Animation
#import <QuartzCore/CAAnimation.h>
CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"shadowOpacity"];
animation.fromValue = [NSNumber numberWithFloat:1.0];
animation.toValue = [NSNumber numberWithFloat:0.0];
animation.duration = 1.0;
[view.layer addAnimation:animation forKey:@"shadowOpacity"];
view.layer.shadowOpacity = 0.0;
@mekanics
mekanics / mountain-lion-brew-setup.markdown
Created August 6, 2012 12:12 — forked from myobie/mountain-lion-brew-setup.markdown
Get Mountain Lion and Homebrew to Be Happy

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

$ pod install
Analyzing dependencies
Downloading dependencies
Using ASIHTTPRequest (1.8.1)
Using GData (1.9.1)
Using GTMHTTPFetcher (0.0.1)
Using Kiwi (2.2.1)
Installing LibComponentLogging-Core (1.3.2)
Installing LibComponentLogging-NSLog (1.0.4)

Keybase proof

I hereby claim:

  • I am mekanics on github.
  • I am aj (https://keybase.io/aj) on keybase.
  • I have a public key whose fingerprint is B7C7 2B0F 2DF5 7BAB 6A90 BBBA 836A 6751 40F2 B899

To claim this, I am signing this object:

@mekanics
mekanics / objc.cfg
Created April 28, 2014 19:54 — forked from tszming/objc.cfg
#
# uncrustify config file for objective-c and objective-c++
#
indent_with_tabs = 0 # 1=indent to level only, 2=indent with tabs
output_tab_size = 4 # new tab size
indent_columns = output_tab_size
indent_label = 2 # pos: absolute col, neg: relative column
indent_align_assign = FALSE
@mekanics
mekanics / unsignipa.sh
Last active January 24, 2018 11:08
unsign ipa
#!/bin/bash
if [[ -z "$1" ]]
then
ipaname=$(ls . | grep -i -E '\.ipa$' | head -1)
else
ipaname=$1
fi
echo "unzip '$ipaname'";
//
// AMScanViewController.h
//
//
// Created by Alexander Mack on 11.10.13.
// Copyright (c) 2013 ama-dev.com. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@mekanics
mekanics / code_signing.not_required.sh
Created June 1, 2015 08:50
Resetting the flag to be able to generate an unsigned IPA iOS application. Because doing that manually after each Xcode update sucks.
#!/bin/bash
sdkFolder="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/"
sdkPlist="SDKSettings.plist"
cp ${sdkFolder}${sdkPlist} . && \
/usr/libexec/PlistBuddy -c "Set DefaultProperties:CODE_SIGNING_REQUIRED NO" ./${sdkPlist} && \
sudo mv ${sdkPlist} ${sdkFolder}