Skip to content

Instantly share code, notes, and snippets.

View josephjoeljo's full-sized avatar
🧑‍🍳
cooking

Joel Joseph josephjoeljo

🧑‍🍳
cooking
  • Salt Lake City, UT
View GitHub Profile
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
@josephjoeljo
josephjoeljo / blackandwhite
Last active November 1, 2019 19:35
Gray Color Matrix
// 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)