Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
if [[ $# -ne 8 ]]; then
printf "Usage: model boardconfig version ecid save_folder show_message_on_fail show_tsschecker_output use_notification\n"
exit 1
fi
model=$1
boardconfig=$2
version=$3
@inoahdev
inoahdev / gist:49604741443b43ee6e7e75736d4ce67f
Created April 30, 2018 00:28
Allow No-USB windows installation
choose(DAWindowController)[0]->installWindowsDirect = true
#!/bin/sh
function print_usage {
printf 'Usage: %s {use_simulator} {sdks_output_path} {overwrite_existing} {no_warnings} {tbd_tool_path} {xcode_installation_path} \n' "$(basename "$0")"
printf "{} options are optional to provide, and can be ignored with a '-'\n"
}
if [ "$1" == "-h" ]; then
print_usage
exit 0
@inoahdev
inoahdev / bash_profile_ios.sh
Last active September 2, 2018 18:54
iOS versions bash array with variables
export THEOS=~/theos
export IPHONE6S_ECID=3B52EBBD82C
export IPAD4_ECID=3834C1643B2
export IOS_VERSIONS_ARRAY=(
"6.0" "6.0.1" "6.1" "6.1.2" "6.1.3" #5 versions of iOS 6
"7.0" "7.0.2" "7.0.3" "7.0.4" "7.0.6" "7.1" "7.1.1" "7.1.2" #8 versions of iOS 7
"8.0" "8.0.1" "8.0.2" "8.1" "8.1.1" "8.1.2" "8.1.3" "8.2" "8.3" "8.4" "8.4.1" #11 versions of iOS 8
"9.0" "9.0.1" "9.0.2" "9.1" "9.2" "9.2.1" "9.3" "9.3.1" "9.3.2" "9.3.3" "9.3.4" "9.3.5" #12 versions of iOS 9
@inoahdev
inoahdev / tsschecker.sh
Last active September 2, 2018 18:55
tsschecker script but caches build-manifests
#!/bin/bash
if [ $# -ne 8 ]; then
printf "Usage: model boardconfig version ecid save-folder print_message_on_failure_bool show_tsschecker_output use_notification\n"
exit 1
fi
if [ ! -d "$5" ]; then
mkdir -p "$5"
fi