git format-patch -1 <sha>
OR
git format-patch -1 HEAD
git apply --stat file.patch
# show stats.
git apply --check file.patch
# check for error before applying
UIFont.familyNames.forEach({ familyName in | |
let fontNames = UIFont.fontNames(forFamilyName: familyName) | |
print(familyName, fontNames) | |
}) |
# Logs | |
logs | |
*.log | |
# Runtime data | |
pids | |
*.pid | |
*.seed | |
# Directory for instrumented libs generated by jscoverage/JSCover |
#! /bin/bash | |
# This script will export the json contents of an Azure Search instance into a JSON array. | |
# The script creates local files under the directory it is executed. The result is saved to a newly created local file. | |
# The script depends on `curl` and `jq` utilities. | |
# Arguments: $1 : azure search service name, $2: azure search index name, $3: azure search admin auth key. | |
set -e -o pipefail | |
serviceName="$1" |
env > env.txt | |
instruments -s devices > devices.txt | |
#! /bin/sh -e | |
# This script demonstrates archive and create action on frameworks and libraries | |
# Based on script by @author Boris Bielik | |
# Release dir path | |
OUTPUT_DIR_PATH="${PROJECT_DIR}/XCFramework" | |
function archivePathSimulator { |