Skip to content

Instantly share code, notes, and snippets.

View adelinofaria's full-sized avatar

Adelino Faria adelinofaria

View GitHub Profile
@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)
# ~/.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
# Load ~/.bashrc file
[[ -s ~/.bashrc ]] && source ~/.bashrc
@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
[user]
name = GIT_NAME
email = GIT_EMAIL
[commit]
gpgsign = true
[color]
ui = 1
[help]
autocorrect = 1
[core]
" 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
@adelinofaria
adelinofaria / inputrc
Created August 12, 2014 16:16
OS X terminal config for text input
# /etc/inputrc - global inputrc for libreadline
# See readline(3readline) and `info rluserman' for more information.
# Be 8 bit clean.
set input-meta on
set output-meta on
# To allow the use of 8bit-characters like the german umlauts, uncomment
# the line below. However this makes the meta key not work as a meta key,
# which is annoying to those which don't need to type in 8-bit characters.
@adelinofaria
adelinofaria / .bash_aliases
Last active May 19, 2017 10:38
Bash aliases file
# General
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -larth'
alias ..='cd ..'
alias cd..='cd ..'
# Recursively delete `.DS_Store` files
@adelinofaria
adelinofaria / bash_config.sh
Last active July 13, 2023 16:13
Bash config files script
# bash <(curl -s https://gist.githubusercontent.com/adelinofaria/b15be15f6dd7afcaaeef/raw)
echo "Start bash_config.sh"
#echo "Git Commit First Name"
#read gitFirstName
#echo "Git Commit Last Name"
#read gitLastName
@adelinofaria
adelinofaria / bot-pre-integration.sh
Last active August 29, 2015 14:16
OS X Server - Bot pre-integration script
export LANG=en_US.UTF-8
if [ ! -e "$HOME/.cocoapods/repos" ]
then
pod setup
fi
cd framework
if [ -e "Pods" ]