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
<?php | |
############################################################ | |
# script to check Apple for Apple Pencil availability # | |
# sku number: MK0C2AM/A # | |
# by: Jeremy A. Gibbs # | |
# https://gist.github.com/jeremygibbs/1d62544ee57dc4ee8633 # | |
############################################################ | |
error_reporting(E_ALL); | |
ini_set('display_errors', 'On'); |
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
<?php | |
############################################################ | |
# script to check Best Buy stock of Apple Pencil # | |
# sku number: 4538802 # | |
# you need a deverloper api key from Best Buy: # | |
# https://developer.bestbuy.com # | |
# by: Jeremy A. Gibbs # | |
# https://gist.github.com/jeremygibbs/1a6c248d12dda568d67d # | |
############################################################ | |
error_reporting(E_ALL); |
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
# Auto Increment Version Script | |
buildPlist=$INFOPLIST_FILE | |
echo $buildPlist | |
CFSVString=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "$buildPlist") | |
CFBundleVersion=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$buildPlist") | |
BUILD_NR=${CFBundleVersion##*.} | |
BUILD_NR=$(($BUILD_NR + 1)) | |
LEN=$(echo ${#CFSVString}) | |
if [ $LEN -eq 3 ]; then | |
CFBundleVersion=$CFSVString".0."$BUILD_NR |
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 python | |
####################################################### | |
# File: wp2sc.py # | |
# Date: 31 January 2011 # | |
# Auth: Jeremy A. Gibbs # | |
# Depn: Requires BeautifulSoup and html2text # | |
# Desc: This script reads in a Wordpress .xml export # | |
# file and converts the contents into markdown # | |
# formatted files suitable to import into # | |
# Marco Arment's Second Crack static blogging # |