Skip to content

Instantly share code, notes, and snippets.

@rbf
rbf / .gitignore_global
Last active September 13, 2019 13:49
Global git ignore file for compiled source, packages, logs and databases, vim swap files, Mac OS generated files, Xcode, clojure with leiningen and LaTeX projects. **THIS GIST IS UNMAINTAINED AND ITS CONTENTS HAS BEEN MOVED TO THE FOLLOWING REPO** https://github.com/rbf/dotfiles/blob/master/git/.gitignore
###################################################################################
# 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/
@rbf
rbf / .gitconfig
Last active January 6, 2022 12:28
Useful configuration file for git including common aliases — **THIS GIST IS UNMAINTAINED AND ITS CONTENTS HAS BEEN MOVED TO THE FOLLOWING REPO** https://github.com/rbf/dotfiles/blob/master/git/.gitconfig
###################################################################################
# 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
@rbf
rbf / bash_aliases
Last active June 28, 2021 18:10
Enhanced Terminal Prompt for Mac OS X (keywords: bash, shell)
# 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