Skip to content

Instantly share code, notes, and snippets.

View trustin's full-sized avatar
πŸŒ„
β–‚β–ƒβ–…β–‡β–ˆβ–“β–’β–‘Ϋ©ΫžΫ©β–‘β–’β–“β–ˆβ–‡β–…β–ƒβ–‚

Trustin Lee trustin

πŸŒ„
β–‚β–ƒβ–…β–‡β–ˆβ–“β–’β–‘Ϋ©ΫžΫ©β–‘β–’β–“β–ˆβ–‡β–…β–ƒβ–‚
View GitHub Profile
@trustin
trustin / crashplan.excludes
Last active January 18, 2020 13:49
Trustin's CrashPlan exclusion regular expressions for Linux (crashplan)
# Put expressions that hit more files first.
/home/chroot/.*
/home/[^/]+/Workspaces?/.*/target/.*
/home/[^/]+/\.m2/repository/.*
/home/[^/]+/\.ivy2/(?:cache|local|limiter)/.*
/home/[^/]+/.*(?:~|\.(?:log|tmp|bak|lock))
/home/[^/]+/Virt/Machines/.*
# Put expressions that hits specific applications later.
/home/[^/]+/\.(?:adobe|cache|ccache|dbus|dropbox|dropbox-dist|fontconfig|gconfd|gstreamer[^/]*|gvfs)/.*
@trustin
trustin / bash_prompt.sh
Created April 27, 2011 11:37
Some useful git scripts I wrote - use with 'git config --global alias.<name> '!<script path>'
#!/bin/bash
# Git-aware bash command prompt
#
# Put this script at $HOME/.bash_prompt and add the following to your .bashrc:
#
# if [ "$PS1" ]; then
# if [ -f "$HOME/.bash_prompt" ]; then
# PROMPT_COMMAND="$HOME/.bash_prompt"
# if [ "$EUID" == "0" ]; then
# PS1="\n# "