Skip to content

Instantly share code, notes, and snippets.

View shearichard's full-sized avatar

Richard Shea shearichard

View GitHub Profile
@shearichard
shearichard / tcptee.py
Last active January 5, 2023 13:46 — forked from jwustrack/tcptee.py
tcptee.py is a tee for TCP. It acts as a simple TCP proxy and dumps all traffic onto stdout.
# A tee for TCP, similar to `socal -v`.
#
# | server
# client ---|
# | stdout
import socket
from select import select
import sys
import logging
fieldset{
background-color:green;
font-family: sans-serif;
color: #123;
}
fieldset:nth-child(3){
background-color:red;
font-family: sans-serif;
color: #123;
}
@shearichard
shearichard / jsbin.umECosOf.css
Created November 21, 2013 09:45 — forked from anonymous/jsbin.umECosOf.css
Using jQuery to fiddle around with FieldSets in response to radio button selections
fieldset{
background-color:green;
font-family: sans-serif;
color: #123;
}
@shearichard
shearichard / index.html
Created November 16, 2012 03:15 — forked from punkish/index.html
D3 overlaying grid onto maps (forked from original - changed js src to CDN's)
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?v=3.5&sensor=false"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/openlayers/2.11/OpenLayers.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/d3/2.10.0/d3.v2.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.js"></script>
<style type="text/css">
#map, #viz {
position: absolute;