Skip to content

Instantly share code, notes, and snippets.

View qinshulei's full-sized avatar
🎯
Focusing

Qin Shulei qinshulei

🎯
Focusing
View GitHub Profile
@qinshulei
qinshulei / h.sh
Last active August 29, 2015 14:15 — forked from fideloper/h.sh
improve history command with grep and percol
#! /bin/bash
function show_usage {
cat <<- _EOF_
Search Bash History using Grep and Percol
Examples:
$ h ssh
$ h 'ssh user@'
@qinshulei
qinshulei / remove_svn.sh
Last active August 29, 2015 14:05
rm all .svn from svn
# Recursively remove all .svn directories
find . -name .svn -print0 | xargs -0 rm -rf
@qinshulei
qinshulei / rm_svn_files.sh
Created August 11, 2014 07:11 — forked from rafaelrinaldi/rm_svn_files.sh
rm all .svn form svn
# Remove SVN files from any folder
rm-svn-files() {
find "$1" -name *.svn | xargs rm -rf
}