Skip to content

Instantly share code, notes, and snippets.

import Foundation
import Alamofire
extension MultipartFormData {
/// Creates a body part from the data and appends it to the multipart form data object.
///
/// The body part data will be encoded using the following format:
///
/// - `Content-Disposition: form-data; name=#{name}` (HTTP Header)
@Tayphoon
Tayphoon / CollectionViewDataSource.swift
Created September 18, 2018 20:40 — forked from andymatuschak/CollectionViewDataSource.swift
Type-safe value-oriented collection view data source
//
// CollectionViewDataSource.swift
// Khan Academy
//
// Created by Andy Matuschak on 10/14/14.
// Copyright (c) 2014 Khan Academy. All rights reserved.
//
import UIKit
openssl pkcs12 -nocerts -nodes -out key.pem -in certificate.p12
openssl aes-256-cbc -k #{REPO_PASSWORD} -in key.pem -out ${TEAM_ID}.p12 -a
openssl aes-256-cbc -k #{REPO_PASSWORD} -in certificate.cer -out ${TEAM_ID}.cer -a
openssl aes-256-cbc -k #{REPO_PASSWORD} -in Distribution.mobileprovision -out AppStore_${BUNDLE_ID}.mobileprovision -a
openssl aes-256-cbc -k #{REPO_PASSWORD} -in Development.mobileprovision -out Development_${BUNDLE_ID}.mobileprovision -a
openssl aes-256-cbc -k #{REPO_PASSWORD} -in ADHOC.mobileprovision -out AdHoc_${BUNDLE_ID}.mobileprovision -a