Example of input and output for "template usage help" output
Hello {{{Name}}},
Thanks for {{{Reason|being you}}}
<noinclude>
Usage:
\
function removecpe { | |
if [ $# -ne 1 ]; then | |
echo "$0 ip" | |
exit 1 | |
fi | |
if [[ $(id -un) != rancid ]]; then | |
echo "Must be rancid user to run this script" | |
exit 1 | |
fi |
#!/usr/bin/env bash | |
## | |
## updaterancid.sh v.2012-12-06 | |
## | |
## [email protected] | |
## | |
if [[ $(id -un) != "rancid" ]]; then | |
echo "Must be rancid user to run this script." |
$ ps axu 42991 | |
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND | |
jandahl 42991 32.0 0.8 780944 63372 s002 S+ 10:21AM 59:27.44 /usr/local/bin/phantomjs /usr/local/lib/node_modules/yeoman/lib/support/confess.js http://localhost:3501 appcache /usr/local/lib/node_modules/yeoman/lib/support/conf |
#!/usr/bin/env bash | |
function aboutMe() { | |
printf "\n\t%s, ver %s" "${scriptName}" "${scriptVersion}" | |
printf "\nPing a given host with a certain frequency - 5 seconds default - and save in a time stamped file" | |
printf "\nUsage:\n\n\t%s%s ADDRESS %s" "${scriptFile}" "${Emphasize}" "${ColorOff}" | |
printf "\n\n\tExample:" | |
printf "\n\t\t%s%s www.example.org 10%s" "${scriptFile}" "${Emphasize}" "${ColorOff}" | |
printf "\n\n\tSet timer to 10 seconds:" | |
printf "\n\t\t%s%s -t 10 %s www.example.org\n\n" "${scriptFile}" "${Emphasize}" "${ColorOff}" |
#!/usr/bin/env bash | |
# Remember to check your $TERM and fix the conditional below | |
if [ $TERM == "screen-bce" ] ; then | |
trap 'echo -n -e "\033k${HOSTNAME}\033\\"' 0 1 2 15 | |
echo -n -e "\033k$1\033\\" | |
fi | |
/usr/bin/ssh $* |
#!/usr/bin/env bash | |
function aboutMe { | |
echo -e "\n\tTCAMcheck.sh v. 2013-06-20" | |
echo -e "\tPull out L3 TCAM load from 760x routers and show more than $warningThreshold% load" | |
echo -e "\n\tExample:\n\n\t\t`basename $0` \033[1;31mdr1.hors dr6.hors router3 router4\033[1;0m\n" | |
echo -e "\n\tWhen run from the command line, it will update your screen/byobu title line and show you the results in less" | |
echo -e "\n\tIt even has a progress bar!" | |
echo -e "\n\tIt *should* play nice with pipes and crontab, but YMMV" | |
echo e- "\n\tAlso, it doesn't tell you when it can't reach a router." |
#!/usr/bin/env bash | |
# Minecraft Overviewer stuff circulator | |
# v2 | |
# Makes some assumptions, here be dragons | |
# VARIABLES | |
serverBaseDirectory=/opt/msm/servers/ | |
worldName=Popeworld | |
workingDirectory=~/overviewer |
#!/usr/bin/env bash | |
function basicSetup { | |
date=$(date +%Y-%m-%d-kl-%H-%m) | |
snmpCommunityString="snmpstring" | |
ipTftpServer="10.20.30.40" | |
targetHostName=$(snmpwalk -v 2c -c $snmpCommunityString $targetHost iso.3.6.1.2.1.1.5.0 | awk -F"\"" '{print $2}' | sed 's_.net.dsv.com__') | |
outputFileName=/snmp-pushed-configs/$date-$targetHostName-$targetHost.txt | |
neutralOutputFileName=/snmp-pushed-configs/$targetHostName-$targetHost.txt |
#!/usr/bin/env bash | |
function aboutMe { | |
myName=$(basename "$0") | |
echo -e "\nAlias extruder for RTR hostnames" | |
echo -e "Usage:\n\t$myName countryNumber" | |
echo -e "Example:\n\t$myName 49\n" | |
} | |
function doStuff () { | |
for n in {1..254} |