Skip to content

Instantly share code, notes, and snippets.

hemslo /
Last active November 6, 2022 15:05
Implement racket/trace Like Observability Using eBPF
#!/usr/bin/env python3
import sys
import json
def main():
result = []
for line in sys.stdin:
if line:
data = json.loads(line.strip())
import tornado.ioloop
import tornado.web
from tornado import websocket
class EchoWebSocket(websocket.WebSocketHandler):
def open(self):
print 'open'
def on_message(self, message):
self.write_message("echo " + message)
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
public class UDPListener
private const int listenPort = 5000;
private static void StartListener()
if sign_in?
if find_auth? && already_have_same_provider?
redirect_to error
if add_auth
redirect_to auth_added