This file contains 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
git for-each-ref --format=' %(authorname) %09 %(refname)' --sort=authorname |
This file contains 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
extension URLRequest { | |
/** | |
Returns a cURL command representation of this URL request. | |
*/ | |
public var curlString: String { | |
guard let url = url else { return "" } | |
var baseCommand = "curl \(url.absoluteString)" | |
if httpMethod == "HEAD" { |
This file contains 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
import Foundation | |
import CommonCrypto | |
// Defines types of hash string outputs available | |
public enum HashOutputType { | |
// standard hex string output | |
case hex | |
// base 64 encoded string output | |
case base64 | |
} |
This file contains 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
import Foundation | |
import CommonCrypto | |
extension Data { | |
/// Hashing algorithm that prepends an RSA2048ASN1Header to the beginning of the data being hashed. | |
/// | |
/// - Parameters: | |
/// - type: The type of hash algorithm to use for the hashing operation. | |
/// - output: The type of output string desired. |
This file contains 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
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch bitbucket-pipelines.yml' --prune-empty --tag-name-filter cat -- --all | |
git push origin --force --all | |
git push origin --force --tags |
This file contains 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
exec > /tmp/${PROJECT_NAME}_archive.log 2>&1 | |
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
if [ "true" == ${ALREADYINVOKED:-false} ] | |
then | |
echo "RECURSION: Detected, stopping" | |
else | |
export ALREADYINVOKED="true" |
This file contains 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
exec > /tmp/${PROJECT_NAME}_archive.log 2>&1 | |
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
if [ "true" == ${ALREADYINVOKED:-false} ] | |
then | |
echo "RECURSION: Detected, stopping" | |
else | |
export ALREADYINVOKED="true" |
This file contains 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
extension UIView { | |
func asImage() -> UIImage? { | |
if #available(iOS 10.0, *) { | |
let renderer = UIGraphicsImageRenderer(bounds: bounds) | |
return renderer.image { rendererContext in | |
layer.render(in: rendererContext.cgContext) | |
} | |
} else { | |
UIGraphicsBeginImageContextWithOptions(self.bounds.size, self.isOpaque, 0.0) |
This file contains 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
/*! \file HttpStatusCode.swift*/ | |
// HttpStatusCode.swift | |
// | |
// | |
// Created by Diogo Autilio on 7/29/15. | |
// Updated on 9/26/18. | |
// Copyright (c) 2015 Anykey Entertrainment. All rights reserved. | |
// | |
/** |
This file contains 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
/*! \file HTTPStatusCodes.h*/ | |
// HTTPStatusCodes.h | |
// | |
// | |
// Created by Diogo Autilio on 7/29/15. | |
// Copyright (c) 2015 Anykey Entertrainment. All rights reserved. | |
// | |
#ifndef HTTPStatusCodes_h | |
#define HTTPStatusCodes_h |
NewerOlder