Skip to content

Instantly share code, notes, and snippets.

@sn99
Created April 7, 2019 10:25
Show Gist options
  • Save sn99/2165f173b15e3acad2ce79d506a1adf8 to your computer and use it in GitHub Desktop.
Save sn99/2165f173b15e3acad2ce79d506a1adf8 to your computer and use it in GitHub Desktop.
Wakatime Hack
#!/bin/bash
x=0
while true
do
printf "Haha " >> haha
x=$((x+1))
sleep $(( ( RANDOM % 10 ) + 1 ))
if [ $x -eq 18 ]
then
x=0
printf "\n" >> haha
echo Active time : $SECONDS seconds
fi
done
@sn99
Copy link
Author

sn99 commented Apr 7, 2019

  1. Create a file named haha in the same folder as joker.sh
  2. Then chmod +x joker.sh
  3. Then commit haha and joker.sh
  4. To run use ./joker.sh

Add an extension to haha eg. haha.c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment