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)| func scaleTransform(for view: UIView, scaledBy scale: CGPoint, aroundAnchorPoint relativeAnchorPoint: CGPoint) -> CGAffineTransform { | |
| let bounds = view.bounds | |
| let anchorPoint = CGPoint(x: bounds.width * relativeAnchorPoint.x, y: bounds.height * relativeAnchorPoint.y) | |
| return CGAffineTransform.identity | |
| .translatedBy(x: anchorPoint.x, y: anchorPoint.y) | |
| .scaledBy(x: scale.x, y: scale.y) | |
| .translatedBy(x: -anchorPoint.x, y: -anchorPoint.y) | |
| } |
| tell application "System Events" to tell application process "DiffMerge" | |
| tell window 1 | |
| set {size, position} to {{400, 400}, {50, 50}} | |
| end tell | |
| end tell |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1"> | |
| <asset> | |
| <contributor> | |
| <authoring_tool>SceneKit Collada Exporter v1.0</authoring_tool> | |
| </contributor> | |
| <created>2018-10-25T16:29:03Z</created> | |
| <modified>2018-10-25T16:29:03Z</modified> | |
| <unit meter="1.000000"/> | |
| <up_axis>Y_UP</up_axis> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1"> | |
| <asset> | |
| <contributor> | |
| <authoring_tool>SceneKit Collada Exporter v1.0</authoring_tool> | |
| </contributor> | |
| <created>2018-10-25T16:29:03Z</created> | |
| <modified>2018-10-25T16:29:03Z</modified> | |
| <unit meter="1.000000"/> | |
| <up_axis>Y_UP</up_axis> |
| extension UIImage { | |
| convenience init?(inCurrentBundleNamed: String) { | |
| class BundleClass { } | |
| self.init(named: inCurrentBundleNamed, in: Bundle(for: BundleClass.self), compatibleWith: nil) | |
| } | |
| } |
| /* | |
| ============================================================================== | |
| OpenGLAudioVisualiserComponent.cpp | |
| Created: 15 Apr 2017 8:00:56pm | |
| Author: Will Townsend | |
| ============================================================================== | |
| */ |
| var Pushover = require('node-pushover'); | |
| var moment = require('moment'); | |
| var request = require('request'); | |
| // Fill out with your secrets | |
| var secrets = { | |
| pushover: { | |
| token: '', | |
| user: '' | |
| }, |
| // | |
| // 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> | |
| // |
| # 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}" |
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)