Skip to content

Instantly share code, notes, and snippets.

View alexclst's full-sized avatar

Alexander Celeste alexclst

  • Minnesota, United States
  • 02:05 (UTC -05:00)
View GitHub Profile
@alexclst
alexclst / build phase.sh
Last active August 3, 2017 18:15
Git Commit Data to InfoPlist iOS (code discussed in this Tenseg blog post: http://www.tenseg.net/blog/2017/08/03/git-commit-info-in-your-app/)
#!/bin/bash
# Add this as a new Run Script build phase for your target.
# Created by Alexander Celeste on 8/1/17.
# Based on http://kelan.io/2008/xcode-run-script-build-phase-tip/
script_file="git-commit-num-to-build-num.sh"
echo "Running a custom build phase script: $script_file"
@alexclst
alexclst / sendusernotification.sh
Last active September 13, 2020 02:09
Shell script to encapsulate sending user notifications
#!/bin/bash
# sendusernotification.sh
# Created by Alexander Celeste for Tenseg in March 2016
# This script can be used to send user notifications to Notification Center, regularly just to OS X, but also to the Prowl iOS app if the Mac is idle
# It can be used in long-running scripts to notify of completion, and in scripts that run via launchd to notify of files being added to folders, or really any use you can dream up
# Dependencies:
# * terminal-notifier: https://github.com/julienXX/terminal-notifier
# * prowl.pl: https://www.prowlapp.com/static/prowl.pl
# get inputs