Skip to content

Instantly share code, notes, and snippets.

View pablogeek's full-sized avatar
🏠
Remote

Pablo pablogeek

🏠
Remote
View GitHub Profile
@brennanMKE
brennanMKE / README.md
Last active August 14, 2024 11:50
Create SSH Key on Mac for Xcode

Create SSH Key on Mac for Xcode

The docs for GitHub show a command to create a key with the ed25519 encryption method which is not allowed by Xcode. Even if you are not using the Source Control features in Xcode you will often need to use an account with GitHub when you are consuming Swift packages which are pulled from GitHub.

For SSH keys there are 4 algorithms.

  • 🚨 DSA: This is an older algorithm which is no longer supported and is superceded with more modern algorithms.
  • ⚠️ RSA: This algorithm was an improvement but it is now outdated and a more modern method should be used.
  • 👀 ECDSA: Another improvement which is dependent on your computer's ability to generate random numbers.
  • ✅ Ed25519: The most recommended public-key algorithm today which you should use with GitHub.
@tsaito-cyber
tsaito-cyber / swift-avplayer.swift
Last active January 5, 2022 07:54
swift-avplayer.swift
import AVFoundation
import AVKit
import UIKit
extension CMTime {
var asDouble: Double {
get {
return Double(self.value) / Double(self.timescale)
}
@pakoito
pakoito / TurismoEnUK.txt
Last active March 19, 2024 14:41
Turismo en UK
LONDON
===
South Bank
Millenium Bridge
Blackfriars Bridge
Tower Bridge
Tower of London
Trafalgar Square
Rascacielos de Bank y Shoredich
Soho
@abbeycode
abbeycode / BonjourPublisher.swift
Last active January 18, 2019 06:39
A class to facilitate publishing a Bonjour service in Swift
//
// BonjourPublisher.swift
// BonjourTest
//
// Created by Dov Frankel on 10/12/15.
// Copyright © 2015 Dov Frankel. All rights reserved.
//
import Foundation