Skip to content

Instantly share code, notes, and snippets.

@fernviridian
Created April 20, 2014 08:19
Show Gist options
  • Save fernviridian/11108457 to your computer and use it in GitHub Desktop.
Save fernviridian/11108457 to your computer and use it in GitHub Desktop.
because google chrome helpers suck and love to eat cores
#! /bin/bash
pid=`ps aux | grep "Google Chrome Helper" | awk '{ if ($3>=80) print $2}'`
if [ "$pid" != "" ]; then
kill -9 $pid
else
echo "No Google Chrome helper using more than 80% CPU"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment