Skip to content

Instantly share code, notes, and snippets.

@elboletaire
elboletaire / get-gitignore.sh
Last active March 13, 2019 21:54
A bash method to get gitignore files from github gitignore's repo
get_gitignore() {
local gitignore=https://raw.github.com/github/gitignore/master/$1.gitignore
local exists=`curl -s --head -w %{http_code} $gitignore -o /dev/null`
if [[ $exists -eq 404 ]]; then
echo "El gitignore esmentat no existeix. Comprova que l'has escrit be"
else
curl -s https://raw.githubusercontent.com/github/gitignore/master/$1.gitignore
fi
}
@adamgit
adamgit / .gitignore
Last active November 11, 2024 06:14
.gitignore file for Xcode4 / OS X Source projects
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.6
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#