This file contains hidden or 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
#! /bin/bash | |
# git init configs for Kinch Zhang | |
# username and email address | |
git config --global user.name "Kinch Zhang" | |
git config --global user.email [email protected] | |
# SVN-like shortcuts | |
git config --global alias.st status |
This file contains hidden or 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
#! /bin/bash | |
# | |
# File: check_status.sh | |
# Author: Kinch Zhang <[email protected]> with help from ChaoQian Xu <[email protected]> | |
# Usage: $ check_status.sh [HOSTS ...] | |
# | |
function check() | |
{ | |
ip=`ping $1 | head -n 1| awk '{print $3}'` |
This file contains hidden or 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
#! /bin/bash | |
find "$4" -depth -name "$3" -exec grep -Hni "$2" {} \; |
NewerOlder