This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Create a new directory; | |
mkdir Apple\ Enterprise | |
cd Apple\ Enterprise | |
2. Generate a certificate signing request | |
openssl req -nodes -newkey rsa:2048 -keyout aps.key -out CertificateSigningRequest.certSigningRequest | |
3. With the information like so (ensure you give it a password): | |
Country Name (2 letter code) [AU]:GB | |
State or Province Name (full name) [Some-State]:London |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// vim: syntax=Swift | |
Swift Color matrix | |
let redCoefficient: Float = 0.2126 | |
let greenCoefficient: Float = 0.7152 | |
let blueCoefficient: Float = 0.0722 | |
let divisor: Int32 = 0x1000 | |
let fDivisor = Float(divisor) |