Generating SSH Key: - ssh-keygen -t rsa -C "[email protected]" - (save in a file like id_rsa-github) - ssh-add ~/.ssh/id_rsa-github Configuration: - git config --global user.name "Bennett Smith" - git config --global user.email "[email protected]" - git config --global github.user idvlpsw - git config --global github.token e0e9e3498b7b2780b33eece4a46fb674 - git config --global --list
This file contains 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 parse_git_branch () { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |
} | |
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
BLUE="\[\033[1;34m\]" | |
NO_COLOUR="\[\033[0m\]" |
This file contains 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
STORAGEDIR=~/Development/dSYMStorage/ | |
BUILDDATE=`date +%Y%m%d` | |
cd ${BUILT_PRODUCTS_DIR} | |
tar -czf ${STORAGEDIR}/${PRODUCT_NAME}-${BUILDDATE}.tbz ${PRODUCT_NAME}.app ${PRODUCT_NAME}.app.dSYM |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>EnableTransactions</key> | |
<true/> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>ASL_DISABLE</key> | |
<string>1</string> |
This file contains 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
.DS_Store | |
*.iso |
This file contains 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
// | |
// NSObject+DumpClassInfo.h | |
// DumpSelectors | |
// | |
// Created by Bennett Smith on 1/14/12. | |
// Copyright (c) 2012 iDevelopSoftware, Inc. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains 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
# XCode 4 auto-versioning script for Git | |
# Inspired by the work of Axel Andersson, Marcus S. Zarra and Matt Long | |
# http://valthonis.net/u/19 | |
""" | |
NOTE: Due to its use of build environment variables, this | |
script will only work from inside XCode's build process! | |
""" | |
import os |
This file contains 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
# myapp/api.py | |
from tastypie.authorization import Authorization | |
from tastypie.authentication import ApiKeyAuthentication | |
from django.core.urlresolvers import NoReverseMatch | |
from django.conf.urls.defaults import url | |
from django.http import HttpRequest | |
from tastypie.utils import trailing_slash | |
from django.contrib.auth.models import User |
This file contains 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
#!/bin/bash | |
# Create the script that emits values for a single file using stat. | |
cat >/tmp/fileperms.sh <<FILEPERMS | |
#!/bin/bash | |
echo chmod `stat -f '%Lp' \$1` \"\$1\" | |
echo chown `stat -f '%u' \$1`:`stat -f '%g' \$1` \"\$1\" | |
FILEPERMS | |
# Make sure the script is executable |
This file contains 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
# Xcode | |
build/* | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 | |
!default.mode2v3 | |
*.perspectivev3 | |
!default.perspectivev3 |
OlderNewer