Skip to content

Instantly share code, notes, and snippets.

View mesheilah's full-sized avatar

MobileDev mesheilah

View GitHub Profile
@b3ll
b3ll / simrecord.fish
Last active February 6, 2022 15:02
Record iOS Simulator Fish Function
function simrecord
if count $argv > /dev/null
set save_dir $argv
else
set save_dir ~/Downloads
end
pushd $save_dir
xcrun simctl io booted recordVideo --mask black --codec "h264" SimulatorRecording-(date +%F)-(date +%H.%M.%S).mov
popd
final class PublicKeyPinner {
/// Stored public key hashes
private let hashes: [String]
public init(hashes: [String]) {
self.hashes = hashes
}
/// ASN1 header for our public key to re-create the subject public key info
private let rsa2048Asn1Header: [UInt8] = [