Skip to content

Instantly share code, notes, and snippets.

View patricks's full-sized avatar
🦝
Working on something new

Patrick patricks

🦝
Working on something new
View GitHub Profile
@patricks
patricks / apple-pay-check.sh
Created November 12, 2018 15:04
Pay activation check
#!/bin/sh
# check if Pay is available in a specific country
COUNTRY="DE" # set the country identifier
STATUS=`curl -s "https://smp-device-content.apple.com/static/region/v2/config.json" | grep $COUNTRY | wc -l`
if [ "$STATUS" -eq "1" ]; then
echo "💸"
else
@patricks
patricks / keybase.md
Created August 19, 2015 19:07
keybase.md

Keybase proof

I hereby claim:

  • I am patrickS on github.
  • I am patricks (https://keybase.io/patricks) on keybase.
  • I have a public key whose fingerprint is AB1D B986 C2DA F6DD 56E9 EF6A DD78 735A C5D6 F44E

To claim this, I am signing this object:

@patricks
patricks / universal-framework.sh
Last active August 29, 2015 14:14 — forked from Tokuriku/universal-framework.sh
Script to put in an Aggregate Target of a Framework in Xcode 6 to create a Universal Framework.
#!/bin/sh
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal
# make sure the output directory exists
mkdir -p "${UNIVERSAL_OUTPUTFOLDER}"
# Step 1. Build Device and Simulator versions
xcodebuild -target "${PROJECT_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build
xcodebuild -target "${PROJECT_NAME}" -configuration ${CONFIGURATION} -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build