Skip to content

Instantly share code, notes, and snippets.

View kelnos's full-sized avatar

Brian Tarricone kelnos

View GitHub Profile
@jazzychad
jazzychad / standup.sh
Last active December 17, 2015 08:18
stand ups with style!
#!/bin/bash
# stand ups with style!
# best when used with cron
# stand up - luda
songs[0]='spotify:track:2CtCwQhY0ZLvr8L2l8Bo6e'
# stand - rem
songs[1]='spotify:track:2WQ1MSvcFj0RyoEb9eK9bu#0:09'
# stand by me - ben e king
@progrium
progrium / gist:5282176
Last active December 15, 2015 15:29
$ curl graydient.progrium.com
import os
import gevent.http
import time
def handle(request):
request.add_output_header('Content-Type', 'application/octet-stream')
request.send_reply_start(200, 'OK')
request.send_reply_chunk("\x1b[2J\n")
try:
while True:
@chadselph
chadselph / okcupidgirl.py
Created January 3, 2013 23:36
TCP server that listens for connections but never replies. Useful for testing certain kinds of timeout behaviors.
# okcupidgirl.py ignores you
from __future__ import print_function
import argparse
import socket
import select
def listen(port):
print("Listening on port {}".format(port))
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)