Skip to content

Instantly share code, notes, and snippets.

@lykkin
Created November 19, 2015 19:20
Show Gist options
  • Save lykkin/c63fd756219af633ec63 to your computer and use it in GitHub Desktop.
Save lykkin/c63fd756219af633ec63 to your computer and use it in GitHub Desktop.
hammer () {
if [ -z "$1" ]
then
echo "an address is required for hammering"
else
echo "hammering ${1}";
yes ${1} | xargs curl -s > /dev/null;
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment