Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
extension UIDevice { | |
/** | |
Returns the name of the current devices' owner, maybe. | |
Usually iPhones are named something like "Will's iPhone", or "Will's iPad", this method is a simple, unreliable way of getting the persons name from that string. | |
:returns: Optional string that might be the owners name. | |
*/ | |
func ownersName() -> String? { | |
return UIDevice.currentDevice().name.componentsSeparatedByString("'").first |
import Foundation | |
import CoreFoundation | |
class Timer { | |
let startTime:CFAbsoluteTime | |
var endTime:CFAbsoluteTime? | |
init() { | |
startTime = CFAbsoluteTimeGetCurrent() |
import Foundation | |
import UIKit | |
extension UIImage { | |
class func imageForColor(color: UIColor) -> UIImage { | |
let rect = CGRectMake(0, 0, 1, 1) | |
UIGraphicsBeginImageContext(rect.size) | |
#!/bin/sh | |
# Copyright (C) Pierre d'Herbemont, 2010 | |
# Copyright (C) Felix Paul Kühne, 2012-2015 | |
set -e | |
BUILD_DEVICE=yes | |
BUILD_SIMULATOR=yes | |
BUILD_STATIC_FRAMEWORK=no | |
SDK=`xcrun --sdk iphoneos --show-sdk-version` |
#!/bin/bash | |
# This script downlaods and builds the iOS and Mac openSSL libraries with Bitcode enabled | |
# Credits: | |
# https://github.com/st3fan/ios-openssl | |
# https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh | |
# https://gist.github.com/foozmeat/5154962 | |
# Peter Steinberger, PSPDFKit GmbH, @steipete. | |
# Felix Schwarz, IOSPIRIT GmbH, @felix_schwarz. |
From 968ff57dd5830d9962d429e5757737274305e12f Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?W=20T=20K=C3=BChne?= <[email protected]> | |
Date: Fri, 29 Sep 2015 18:34:26 +0200 | |
Subject: [PATCH 13/13] add -fembed-bitcode | |
diff --git a/extras/package/ios/build.sh b/extras/package/ios/build.sh | |
index f514732..4917973 100755 | |
--- a/extras/package/ios/build.sh | |
+++ b/extras/package/ios/build.sh |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
# Delete any existing NSAppTransportSecurity configurations | |
/usr/libexec/PlistBuddy -c "Delete :NSAppTransportSecurity" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}" | |
# Add the NSAppTransportSecurity dictionary again | |
/usr/libexec/PlistBuddy -c "Add :NSAppTransportSecurity dict" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}" | |
/usr/libexec/PlistBuddy -c "Add :NSAppTransportSecurity:NSExceptionDomains dict" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}" | |
# Add s3.amazonaws.com NSExceptionRequiresForwardSecrecy and set it to false | |
# This is a requirement of the Carnival.io SDK | |
/usr/libexec/PlistBuddy -c "Add :NSAppTransportSecurity:NSExceptionDomains:s3.amazonaws.com dict" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}" |
// | |
// Hacky script to convert lazy loaded closures into private instance functions | |
// The script ignores Pods, Carthage and build folders, and only looks for | |
// .swift files | |
// This doesn't work on all cases, and may break things. Be warned ⚠️ | |
// | |
// Usage: | |
// node delazy.js <folder path> | |
// |
var Pushover = require('node-pushover'); | |
var moment = require('moment'); | |
var request = require('request'); | |
// Fill out with your secrets | |
var secrets = { | |
pushover: { | |
token: '', | |
user: '' | |
}, |