This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -t rsa -b 4096 -C "[email protected]" # Genera una llave con tu correo. Te va a pedir una ubicacion, luego un | |
# passhphrase y una confirmacion del passphrase. Deja todo en blanco. | |
eval "$(ssh-agent -s)" # Activa el servidor SSH. Te debe salir algo como: Agent pid 35677 | |
ssh-add ~/.ssh/id_rsa # agrega la llave que acabas de generar a la lista de llaves permitidas | |
pbcopy < ~/.ssh/id_rsa.pub # copia la llave al portapapeles | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public func p3_executeOnMainThread(handler: (Void) -> Void) { | |
if Thread.isMainThread { | |
handler() | |
} else { | |
DispatchQueue.main.sync(execute: handler) | |
} | |
} | |
func main() { | |
p3_executeOnMainThread { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// Test | |
// | |
// Created by Oscar Swanros on 3/3/17. | |
// Copyright © 2017 Pacific3. All rights reserved. | |
// | |
import UIKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UploadFileToS3Operation.swift | |
// VecinioAPIKit | |
// | |
// Created by Oscar Swanros on 9/2/17. | |
// Copyright © 2017 Vecinio Technologies Inc. All rights reserved. | |
// | |
final public class UploadFileToS3Operation: P3Operation { | |
public let image: UIImage |
OlderNewer