Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@forbze
forbze / gist:2b2de7a427454b9d57b9b96e1b77186d
Last active July 3, 2017 05:20 — forked from bylatt/gist:4971506
My .bash_profile setup on OS X. Modified from Mark Otto's bash style (http://markdotto.com/2013/01/13/improved-terminal-hotness/) by adding git color for status.
alias ls='ls -Glah'
alias web='open -a Safari.app'
alias mail='open -a Mail.app'
alias todo='open -a Reminders.app'
git_branch () {
if git rev-parse --git-dir >/dev/null 2>&1
then echo -e "" [$(git branch 2>/dev/null| sed -n '/^\*/s/^\* //p')]
else
echo ""
fi
module.exports = {
networks: {
development: {
host: 'localhost',
port: 8545,
network_id: '*', // Match any network id
from: "0x82c9405b0d7b7cf8ee77ae656ab42d1b294b4123"
}
}
}
git=$(sh /etc/profile; which git)
number_of_commits=$("$git" rev-list HEAD --count)
bundle_version=$number_of_commits
target_plist="$TARGET_BUILD_DIR/$INFOPLIST_PATH"
dsym_plist="$DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Info.plist"
for plist in "$target_plist" "$dsym_plist"; do
if [ -f "$plist" ]; then
@forbze
forbze / SMS.sh
Created June 30, 2015 05:58
Send XCode7 Bot Integration Status to IFTTT Maker
#!/bin/sh
curl -X POST -H "Content-Type: application/json" -d "{\"value1\":\"$XCS_BOT_NAME\",\"value2\":\"$XCS_INTEGRATION_RESULT\"}" https://maker.ifttt.com/trigger/Build_Complete/with/key/$IFTTT_MAKER_KEY
@forbze
forbze / Upload.sh
Last active August 29, 2015 14:23
Upload Version to HockeyApp XCode7 Bot Trigger
#!/bin/sh
mkdir -p /tmp/$XCS_BOT_NAME/$XCS_INTEGRATION_NUMBER/
cd /tmp/$XCS_BOT_NAME/$XCS_INTEGRATION_NUMBER/
wget -O upload$XCS_INTEGRATION_NUMBER.ipa $XCS_PRODUCT
curl \
-F "status=2" \
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "2"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
git=$(sh /etc/profile; which git)
git_release_version=$("$git" describe --tags --always --abbrev=0)
number_of_commits=$("$git" rev-list master | wc -l | tr -d ' ')
target_plist="$TARGET_BUILD_DIR/$INFOPLIST_PATH"
dsym_plist="$DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Info.plist"
watch_plist="$TARGET_BUILD_DIR/Acara WatchKit App.app/Info.plist"
watch_appex_plist="$TARGET_BUILD_DIR/Acara WatchKit Extension.appex/Info.plist"
for plist in "$target_plist" "$dsym_plist" "$watch_appex_plist" "$watch_plist"; do