Skip to content

Instantly share code, notes, and snippets.

View adelinofaria's full-sized avatar

Adelino Faria adelinofaria

View GitHub Profile
" how line numbers
set number
" size of a hard tapstop
set tabstop=2
" size of a "indent"
set shiftwidth=2
" a combination of spaces and tabs are used to simulate tab stops at a width
[user]
name = GIT_NAME
email = GIT_EMAIL
[commit]
gpgsign = true
[color]
ui = 1
[help]
autocorrect = 1
[core]
@adelinofaria
adelinofaria / .gitignore_global
Last active May 25, 2017 16:24
OS X global .gitignore
# Created by https://www.gitignore.io/api/go,vim,ruby,macos,emacs,swift,xcode,fastlane,carthage,cocoapods,objective-c
### Carthage ###
# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts
Carthage/Build
# Load ~/.bashrc file
[[ -s ~/.bashrc ]] && source ~/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@adelinofaria
adelinofaria / overlaysvn.sh
Created May 13, 2014 11:05
Overlaying Application version and svn version on app icon (Xcode build script)
function updateInfolist()
{
buildNumber=$(($(echo $(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${INFOPLIST_FILE}") | cut -d . -f1) + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${buildNumber}" "${INFOPLIST_FILE}"
lastVersion=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${INFOPLIST_FILE}")
majorVersion=$(echo $lastVersion | cut -d . -f1)
minorVersion=$(echo $lastVersion | cut -d . -f2)
patchVersion=$(echo $lastVersion | cut -d . -f3)