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
declare module 'hapi-sentry' { | |
import { Plugin } from '@hapi/hapi' | |
export interface Options { | |
/** | |
* uri to be used as base for captured urls | |
*/ | |
baseUri?: string | |
scope?: { |
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
function pod1 { | |
# Find the CocoaPods runner if the cache variable is not set | |
if [[ -z "$__POD1_LOCATION" || ! -x "$__POD1_LOCATION" ]]; then | |
local location=`mdfind "kMDItemCFBundleIdentifier = 'org.cocoapods.CocoaPods'"` | |
export __POD1_LOCATION="${location}/Contents/Helpers/pod" | |
fi | |
if [[ -z "$__POD1_LOCATION" || ! -x "$__POD1_LOCATION" ]]; then | |
echo "Can't find CocoaPods.app" >&2 | |
return 1 |
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 ruby | |
# Get current status of Do Not Disturb mode by reading specific plist file | |
# | |
# @return [TrueClass,FalseClass] true if the mode is active | |
# | |
def do_not_disturb | |
plist_file = Dir.glob(Dir.home + '/Library/Preferences/ByHost/com.apple.notificationcenterui.*.plist').last | |
`/usr/libexec/PlistBuddy -c "Print doNotDisturb" "#{plist_file}"`.strip == 'true' | |
end |
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
function zipdiff { | |
if [[ $# != 2 ]]; then | |
echo "$0: simple tool to diff zip files" | |
echo "usage: $0 <one-zip-file> <other-zip-file>" | |
return 1 | |
fi | |
one=`mktemp -t 'zipdiff_1'` | |
two=`mktemp -t 'zipdiff_2'` |
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 bash | |
# taken from http://www.fredmastro.com/?p=40 | |
set -e # exit when some command fails | |
if [[ $# != 2 ]]; then | |
echo "Usage: $0 <path-to-osx-install-application> <result-ios-path>" >&2 |