Skip to content

Instantly share code, notes, and snippets.

View evanradcliffe's full-sized avatar

Evan Radcliffe evanradcliffe

  • Philadelphia, USA
  • 13:34 (UTC -04:00)
View GitHub Profile
@evanradcliffe
evanradcliffe / server.c
Last active July 26, 2017 13:06 — forked from beefy/client.c
server file from class
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "csapp.c"
void echo(int connfd)
{
size_t n;
char buf[MAXLINE];
rio_t rio;
@evanradcliffe
evanradcliffe / username.py
Created June 2, 2016 16:02 — forked from beefy/username.py
a script to help find a github username
#!/usr/bin/env python2.7
import urllib2
for line in open('/usr/share/dict/cracklib-small','rb'):
try:
urllib2.urlopen('https://github.com/'+line.replace('\n',''))
except urllib2.HTTPError as e:
if e.code == 404:
print line.replace('\n','')