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
| extension URLRequest { | |
| public func cURLDescription() -> String { | |
| guard let url = url, let method = httpMethod else { | |
| return "$ curl command generation failed" | |
| } | |
| var components = ["curl -v"] | |
| components.append("-X \(method)") | |
| for header in allHTTPHeaderFields ?? [:] { | |
| let escapedValue = header.value.replacingOccurrences(of: "\"", with: "\\\"") | |
| components.append("-H \"\(header.key): \(escapedValue)\"") |
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
| #!/usr/bin/env zsh | |
| # | |
| # Convenience wrapper around the simctl command to perform operations related to iOS simulators. | |
| # Author: Justin Williams (@justin) | |
| # | |
| # Usage: sim <options> <subcommand> | |
| # | |
| # This script is designed to work with ZSH. ymmv with other shells. | |
| set -e |
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
| // Copyright (C) 2025 Gwendal Roué | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a | |
| // copy of this software and associated documentation files (the | |
| // "Software"), to deal in the Software without restriction, including | |
| // without limitation the rights to use, copy, modify, merge, publish, | |
| // distribute, sublicense, and/or sell copies of the Software, and to permit | |
| // persons to whom the Software is furnished to do so, subject to the | |
| // following conditions: | |
| // |
OlderNewer