Skip to content

Instantly share code, notes, and snippets.

View esutton's full-sized avatar

Eddie esutton

  • Fly-over state
View GitHub Profile
@esutton
esutton / build.sh
Created September 6, 2019 21:37 — forked from madhikarma/build.sh
xcodebuild script
#!/bin/sh
set -eo pipefail
IFS=$'\n\t'
# Constants
NOW=$(date +%s)
BUILD_FILE_NAME="MyApp-${NOW}"
SCHEME="MyApp"
WORKSPACE="MyApp"
PROJECT="MyApp"
@esutton
esutton / rsync_backup.sh
Last active June 25, 2019 13:57 — forked from tvwerkhoven/rsync_backup.sh
Improved script:- Check if run as root- Clarify rsync(1) flags- Add --inplace for performance, extra preservation flags- Check bless(8) target before settingImproved exclusion file:- Included files listed by Carbon Copy Cloner
#!/bin/bash
#
# This script backups an OS X system to an external volume, effectively
# cloning it. It is based on [0], [1] and [2] for OS X and [3] and [4] for
# Linux. One could also use commercial tools like SuperDuper! or Carbon Copy
# Cloner. The latter website has an interesting list[5] on what files to
# exclude when cloning.
#
# Exclusions (from CCC[5]), see rsync_excludes_osx.txt
#
@esutton
esutton / release-android-debuggable.md
Created August 2, 2018 19:49 — forked from nstarke/release-android-debuggable.md
How to make a Release Android App debuggable

How to make a Release Android App debuggable

Let's say you want to access the application shared preferences in /data/data/com.mypackage.
You could try to run adb shell and then run-as com.mypackage ( or adb shell run-as com.mypackge ls /data/data/com.mypackage/shared_prefs), but on a production release app downloaded from an app store you're most likely to see:

run-as: Package 'com.mypackage' is not debuggable