Skip to content

Instantly share code, notes, and snippets.

@matin0728
Last active October 6, 2015 16:38
Show Gist options
  • Save matin0728/3022994 to your computer and use it in GitHub Desktop.
Save matin0728/3022994 to your computer and use it in GitHub Desktop.
#! /bin/bash
TEAM=/zhihuDev
GROUP=$TEAM/sa
YES=`echo 'aGF2ZWZpbmUK' |base64 -d`
SORRY=`echo 'c29ycnkK' |base64 -d`
RESULT=`echo 'aGV5LCBkbyB1IHdhbnQgam9pbiB1cz8gIHRyeSAhISBzZW5kIHlvdXIgcmVzdW1lIHF1aWNrbHksIAo=' |base64 -d`
read -t 15 -p "Enter u's name" you
read -t 15 -p "Is geek [Y/N]? " personality
read -t 15 -p "Skills:" skills
read -t 15 -p "Interests:" interests
ZhihuDev(){
case $personality in
y|Y)
echo "personality: $YES" >> $GROUP/$you 2>&1 ;;
*)
echo $SORRY && exit ;;
esac
case $skills in
awk|nginx|mysql|nagios|keepalive|haproxy|kvm|puppet|debian|ubuntu|centos)
echo "skills: $YES" >> $GROUP/$you 2>&1 ;;
*)
echo $SORRY && exit ;;
esac
case $interests in
performance|hight\ availability|security|cluster|distributed)
echo "interests: $YES" >> $GROUP/$you 2>&1 ;;
*)
echo $SORRY && exit ;;
esac
echo "$RESULT $you"
}
ZhihuDev
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment