Skip to content

Instantly share code, notes, and snippets.

@rlemon
Created November 6, 2012 19:42
Show Gist options
  • Save rlemon/4027003 to your computer and use it in GitHub Desktop.
Save rlemon/4027003 to your computer and use it in GitHub Desktop.
ping fun in SO chat (Bookmarklet)
javascript: var user = prompt("What is the name of the user you would like to ping?");0 === user.indexOf("@") && (user = user.slice(1));$('#input').val(["ping @","\n\nPinging @"," [123.456.789.10] with 32 bytes of data:\nReply from 123.456.789.10: bytes=32 time=42ms TTL=55\nReply from 123.456.789.10: bytes=32 time=42ms TTL=55\nReply from 123.456.789.10: bytes=32 time=42ms TTL=55\nReply from 123.456.789.10: bytes=32 time=42ms TTL=55\n\nPing statistics for 123.456.789.10:\n- Packets: Send = 4, Received = 4, Lost = 0 (0% loss),\nApproximation round trip times in milli-seconds:\n- Minimum = 42ms, Maximum = 42ms, Average = 42ms"].join(user));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment