Skip to content

Instantly share code, notes, and snippets.

View khanof89's full-sized avatar
🎯
Focusing

Shahrukh Khan khanof89

🎯
Focusing
View GitHub Profile
@khanof89
khanof89 / Bash
Created January 13, 2015 17:01
bash command
#!/bin/bash
while true; do
begin=`date +%s`
curl GET http://127.0.0.1/getmovieposter
end=`date +%s`
if [ $(($end - $begin)) -lt 5 ]; then
sleep $(($begin + 5 - $end))
fi