Skip to content

Instantly share code, notes, and snippets.

View HEMAL-PATEL's full-sized avatar
💭
Born to rule, Born to win

Hemal Patel HEMAL-PATEL

💭
Born to rule, Born to win
View GitHub Profile
@HEMAL-PATEL
HEMAL-PATEL / FontTypeSizeAllEnums.swift
Created February 16, 2019 05:54 — forked from sauvikatinnofied/FontTypeSizeAllEnums.swift
MediumBlogPost_FontHandling_Gist_3
enum FontType {
case installed(FontName)
case custom(String)
case system
case systemBold
case systemItatic
case systemWeighted(weight: Double)
case monoSpacedDigit(size: Double, weight: Double)
}
enum FontSize {
@HEMAL-PATEL
HEMAL-PATEL / gist:716940c8058b69fa936253dff58bddee
Created February 16, 2019 05:53 — forked from kublaios/gist:f01cdf4369c86ddd6d71
Making a PEM File for iOS Push Notifications (From Ray Wenderlich's tutorial)
# Convert the .cer file into a .pem file:
$ openssl x509 -in aps_development.cer -inform der -out PushChatCert.pem
# Convert the private key’s .p12 file into a .pem file:
$ openssl pkcs12 -nocerts -in PushChatKey.p12 -out PushChatKey.pem
# Finally, combine the certificate and key into a single .pem file
$ cat PushChatCert.pem PushChatKey.pem > ck.pem
# At this point it’s a good idea to test whether the certificate works.