Skip to content

Instantly share code, notes, and snippets.

View edk0's full-sized avatar

Ed Kellett edk0

View GitHub Profile

IRC friends, enemies and others,

Control of freenode has recently been seized by the proprietors of Freenode Limited, a holding company established by a previous head of freenode and a third party as part of a deal with a corporate sponsor. The terms of that deal were not disclosed, and remain unknown to me.

At the time, we, freenode's volunteer staff, were given informal guarantees that staff retained operational control of the network. The same guarantees were repeated after leadership was passed on to a new head of staff. I don't

#!/bin/bash
adduser --quiet --disabled-password warrior
apt-get update
apt-get install -y tmux git-core libgnutls28-dev lua5.1 liblua5.1-0 liblua5.1-0-dev screen python-dev python-pip bzip2 zlib1g-dev flex autoconf
su - warrior -c '
pip install --user warcio seesaw
git clone https://github.com/ArchiveTeam/googleplus-grab
(cd googleplus-grab && ./get-wget-lua.sh)
echo "#!/bin/bash" >> ~/run.sh
echo "cd ~/googleplus-grab" >> ~/run.sh
from ipaddress import ip_address, ip_network, summarize_address_range, collapse_addresses
from itertools import chain
import sys
def parse_net_or_range(s):
if '-' in s:
start, end = s.split('-', 1)
start = ip_address(start)
end = ip_address(end)
@edk0
edk0 / app.py
Created January 31, 2018 20:45
# vim: et sw=4 sts=4
from flask import Flask, escape, redirect
app = Flask(__name__)
import posixpath
import requests
from sphinx.util.inventory import InventoryFile
from werkzeug.contrib.iterio import IterIO
@edk0
edk0 / Pok3r-ISO-UK---edk.kbd.json
Last active May 1, 2017 10:38
Pok3r ISO UK - edk
[
{
"backcolor": "#3d3d3d",
"name": "Pok3r ISO UK - edk",
"author": "Ed Kellett",
"switchMount": "cherry",
"switchBrand": "cherry",
"switchType": "MX1A-L1xx",
"plate": true
},
@edk0
edk0 / bot2.py
Last active August 29, 2015 14:06
(lambda t,d,r,i,s:(lambda s:(s.connect(('irc.rozznet.net',6667)),s.send('USER '
+'h h h h%sNICK hhh'%d+d),[(t.__setitem__(slice(None),a[1]),[s.send(y(*r.match(
x,a[0]).groups())+d)for x,y in{'PI(NG.*)':'PO'.__add__,':.*? (PRIVMSG .*? :)!('
+'.*)':lambda c,m:(lambda x:x and c+x or'')({'die':4,'hello':'hay bby','cocks':
'lol dongs'}.get(str(m).lower(),0)),':.*? 002':'JOIN #test'.strip}.items()if r.
match(x,a[0])])for a in(t.extend(s.recv(3))or t.split(d)for n in i.count())if a
[1:]]))(s.socket()))(bytearray(),'\r\n',*map(__import__,['re','itertools',
'socket']))

Keybase proof

I hereby claim:

  • I am edk0 on github.
  • I am edk (https://keybase.io/edk) on keybase.
  • I have a public key whose fingerprint is 6A3C DCDE F9AC 6DC0 D1AF 5E23 2919 59A7 C2BA F5AA

To claim this, I am signing this object: