Skip to content

Instantly share code, notes, and snippets.

View florentmorin's full-sized avatar
🏠
Working from home

Florent Morin florentmorin

🏠
Working from home
View GitHub Profile
@florentmorin
florentmorin / MySDK.h
Last active December 19, 2017 10:10
Non-modular integration of Common Crypto library into Swift Framework
@import Foundation;
//! Project version number for MySDK.
FOUNDATION_EXPORT double MySDKVersionNumber;
//! Project version string for MySDK.
FOUNDATION_EXPORT const unsigned char MySDKVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <MySDK/PublicHeader.h>
#import <MySDK/MySDKCrypto.h>
@florentmorin
florentmorin / MainViewController.m
Created November 4, 2017 11:30
Cordova Main View Controller for iPhone X
- (void)viewWillAppear:(BOOL)animated
{
// View defaults to full size. If you want to customize the view's size, or its subviews (e.g. webView),
// you can do so here.
[super viewWillAppear:animated];
// Fix for iOS 11 status bar UI
if (@available(iOS 11.0, *)) {
@florentmorin
florentmorin / prepare.sh
Last active November 4, 2017 11:23
Generate Xcode from Cordova
#!/bin/sh
cordova -d prepare ios --release

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@florentmorin
florentmorin / Autostart Adhearsion
Last active December 22, 2015 01:49
Autostart Adhearsion
Adhearsion init.d script
Working with Ubuntu 12.04 and RVM on EC2
1. Copy-paste adhearsion content to "/etc/init.d/" directory
2. Run "sudo chmod +x /etc/init.d/adhearsion"
3. Run "sudo /usr/sbin/update-rc.d -f adhearsion"
4. Create /etc/adhearsion directory (one configuration file per app)
5. Configure your applications in /etc/adhearsion/{app_name}.conf (sample code in "my_app.conf")
6. Run your service with "sudo service adhearsion start"