First download the script called killmouseaccel:
$ curl -O http://ktwit.net/code/killmouseaccel
Next, turn the script into an executable:
$ chmod +x killmouseaccel
Then, run the script:
$ ./killmouseaccel mouse