Skip to content

Instantly share code, notes, and snippets.

View ericjarvies's full-sized avatar
💭
Creating a Multichain Wallet for iOS & Android

Eric Jarvies ericjarvies

💭
Creating a Multichain Wallet for iOS & Android
View GitHub Profile
// edit AppDelegate.swift file
// add the following to applicationWillResignActive
let blurEffect = UIBlurEffect(style: UIBlurEffect.Style.dark)
let blurEffectView = UIVisualEffectView(effect: blurEffect)
blurEffectView.frame = window!.frame
blurEffectView.tag = 221122
self.window?.addSubview(blurEffectView)
@ericjarvies
ericjarvies / xcode-icon_versioning.sh
Created December 31, 2018 03:29
Use in Xcode to generate watermarked icons for test build
export PATH=/opt/local/bin/:/opt/local/sbin:$PATH:/usr/local/bin:
if [ "${CONFIGURATION}" == "Release" ]; then
exit 0;
fi
convertPath=`which convert`
echo ${convertPath}
if [[ ! -f ${convertPath} || -z ${convertPath} ]]; then
echo "warning: Skipping Icon versioning, you need to install ImageMagick and ghostscript (fonts) first, you can use brew to simplify process:
brew install imagemagick
@ericjarvies
ericjarvies / xcode-bump_build_number.sh
Created December 31, 2018 03:28
Use in Xcode to bump the build numbers incrementally
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}")
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}"
@ericjarvies
ericjarvies / xcode-version_tracking.sh
Created December 31, 2018 03:27
Use in Xcode Target Build Phases
git=`sh /etc/profile; which git`
branch_name=`$git symbolic-ref HEAD | sed -e 's,.*/\\(.*\\),\\1,'`
git_count=`$git rev-list $branch_name |wc -l | sed 's/^ *//;s/ *$//'`
simple_branch_name=`$git rev-parse --abbrev-ref HEAD`
build_number="$git_count"
if [ $CONFIGURATION != "Release" ]; then
build_number+="-$simple_branch_name"
fi
@ericjarvies
ericjarvies / kovan-aragon.txt
Created November 23, 2017 02:52
kovan-aragon-0x341A02785E069Ab22C277CcE8E56c7a828751D62
0x341A02785E069Ab22C277CcE8E56c7a828751D62
@ericjarvies
ericjarvies / kovan-0xF280e6FBfcB1F9c5Ba490BA503162D4ACC6adaFB.txt
Created October 16, 2017 18:51
Some Kovan ETH for demonstration purposes in tutorial video
0xF280e6FBfcB1F9c5Ba490BA503162D4ACC6adaFB
0x90a2b685e47f7a5D46BC2170ccB407FE90df1b9f

0x90a2b685e47f7a5D46BC2170ccB407FE90df1b9f

#!/usr/bin/env bash
# 'Wi-Fi' or 'Ethernet' or 'Display Ethernet'
INTERFACE=Wi-Fi
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
@ericjarvies
ericjarvies / keybase.md
Created September 22, 2017 02:12
keybase

Keybase proof

I hereby claim:

  • I am ericjarvies on github.
  • I am ericjarvies (https://keybase.io/ericjarvies) on keybase.
  • I have a public key ASAUyZUfPoL2uUETp1oRZ2lSfLPBbUnNelJOQU0i2S0I6go

To claim this, I am signing this object: