Skip to content

Instantly share code, notes, and snippets.

Avatar

Federico Cergol imfede

View GitHub Profile
@imfede
imfede / WebSocketHandler.py
Created November 9, 2018 22:40
A very simple WebSocketHandler to use with a socketserver.ForkingTCPServer in python3
View WebSocketHandler.py
import http.server
import struct
from base64 import b64encode
from hashlib import sha1
import errno, socket #for socket exceptions
import threading
class WebSocketError(Exception):
pass
@imfede
imfede / keybase.md
Created May 26, 2015 16:45
keybase.md
View keybase.md

Keybase proof

I hereby claim:

  • I am imfede on github.
  • I am imfede (https://keybase.io/imfede) on keybase.
  • I have a public key whose fingerprint is 465E 2A66 B3DC 83E5 F86B 5D95 9175 112F 037B 9C58

To claim this, I am signing this object: