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
################################################################################### | |
# THIS GIST IS UNMAINTAINED AND ITS CONTENTS HAS BEEN MOVED TO THE FOLLOWING REPO # | |
# https://github.com/rbf/dotfiles/blob/master/git/.gitignore # | |
################################################################################### | |
# To download and add this file to your global git config, run the following command: | |
# if [ -f /etc/gitignore_global ]; then cp -v /etc/gitignore_global /etc/gitignore_global.backup_$(date +"%Y%m%d%H%M%S"); fi; curl -L https://gist.github.com/rbf/2224744/raw/.gitignore_global -o /etc/gitignore_global; git config --system core.excludesfile /etc/gitignore_global | |
# if [ -f ~/.gitignore_global ]; then cp -v ~/.gitignore_global ~/.gitignore_global.backup_$(date +"%Y%m%d%H%M%S"); fi; curl -L https://gist.github.com/rbf/2224744/raw/.gitignore_global -o ~/.gitignore_global; git config --global core.excludesfile ~/.gitignore_global | |
# Original from: http://help.github.com/ignore-files/ |
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
################################################################################### | |
# THIS GIST IS UNMAINTAINED AND ITS CONTENTS HAS BEEN MOVED TO THE FOLLOWING REPO # | |
# https://github.com/rbf/dotfiles/blob/master/git/.gitconfig # | |
################################################################################### | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2012-2018 https://gist.github.com/rbf | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of |
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
# Repeat a command N times | |
# From: http://www.stefanoforenza.com/how-to-repeat-a-shell-command-n-times/ | |
repeat() { | |
n=$1 | |
shift | |
while [ $(( n -= 1 )) -ge 0 ] | |
do | |
"$@" | |
done |
NewerOlder