Skip to content

Instantly share code, notes, and snippets.

@fuzzy
Created December 5, 2016 20:54
Show Gist options
  • Save fuzzy/6cde2f2f8d1050041bfdc46c2be09ebf to your computer and use it in GitHub Desktop.
Save fuzzy/6cde2f2f8d1050041bfdc46c2be09ebf to your computer and use it in GitHub Desktop.
#!/usr/bin/env python2
import time
import socket
if __name__ == '__main__':
st = int(time.time())
while 1:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(('relay-vip.phl.corp.theplatform.com', 2003))
sock.send("10s.phl.fuzzy.py-client 1 %d\n" % st)
print("10s.phl.fuzzy.py-client 1 %d" % st)
st -= 10
time.sleep(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment