Skip to content

Instantly share code, notes, and snippets.

@justinholmes
Last active March 3, 2016 14:37
Show Gist options
  • Save justinholmes/4715039 to your computer and use it in GitHub Desktop.
Save justinholmes/4715039 to your computer and use it in GitHub Desktop.
sudo du -h | grep "[\0-9\]G"
find -name *.war -exec scp '{}' [email protected]:webapps ';'
find -name *.jmx -exec sh ${JENKINS_HOME}/jmeter/bin/jmeter -n -t {} -l ${WORKSPACE}/{}.jtl ';'
awk '/MemTotal:/{total=$2} \
/MemFree:/{free=$2} \
END{ \
print "free:"(free*100/total)",";
print "used:"((total-free)*100/total) \
}' /proc/meminfo | xargs
find . -type f \( -iname "*.log.v*" \) -delete
for i in * ; do [ system ]
if [ -d "$i" ]; then
cd $i && git up
cd ..
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment