This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |