Skip to content

Instantly share code, notes, and snippets.

@dnshl
Created February 29, 2012 13:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnshl/1940838 to your computer and use it in GitHub Desktop.
Save dnshl/1940838 to your computer and use it in GitHub Desktop.
Bash script checks http status code
#!/bin/bash
URL=$1
RESPONSE=$(curl --write-out %{http_code} --silent --output /dev/null ${URL})
if [ $RESPONSE -ne 200 ]
then
echo $1 is down
fi
@Ajaysajan
Copy link

<script> function commsission() { var comm_persent=0; float (total_business=100000); float (total_comm=0); if(total_bussiness<=50000) { comm_percent=2; } else if(total_business<=100000){ comm_persent=3; } total_comm=tatal_bussiness+comm_persent/100; return total (sum); document.write("sum"); } </script>

@Ajaysajan
Copy link

correction any this code

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