Skip to content

Instantly share code, notes, and snippets.

View Elizafox's full-sized avatar
💭
I may be slow to respond.

Elizabeth Myers Elizafox

💭
I may be slow to respond.
View GitHub Profile
@Elizafox
Elizafox / process.cpp
Last active January 9, 2018 17:11
C++ process stuff
/* sunrise - a C++ installer for alpine
* Coypright (C) 2018 Interlinked Foundation
* All rights reserved
*/
#include <string> // std::string
#include <vector> // std::vector
#include <algorithm> // std::transform
#include <iterator> // std::back_inserter
#include <exception> // std::generic_category
from itertools import zip_longest
class ListSlices:
"""A basic template for how to implement slice support for list-like
objects.
This exploits the fact that the semantics of range() are the same as
list slices.
"""

Keybase proof

I hereby claim:

  • I am Elizafox on github.
  • I am elizafox (https://keybase.io/elizafox) on keybase.
  • I have a public key whose fingerprint is 2322 4658 7572 0130 04D3 217D 1A10 EF78 D83E 317B

To claim this, I am signing this object:

@Elizafox
Elizafox / mst3k-blocklist.md
Last active April 17, 2017 00:16
mst3k.interlinked.me blocklist

mst3k.interlinked.me blocklist

This is the blocklist for mst3k.interlinked.me. It should be pretty obvious how this is structured.

Suspend means no one can follow anyone from this instance. Silence means you can follow, but boosts won't appear in the federated timeline.

Appeals will fall on deaf ears unless we've made a genuine mistake. These are subjective value judgements and wholly arbitrary.

This list is rather conservative. The aim is not to restrict speech too much, but cull Nazis and trolls.

@Elizafox
Elizafox / gist:7742992
Last active December 29, 2015 23:29
xinfo

XINFO Specification

Copyright (c) 2013 Elizabeth Myers elizabeth@interlinked.me.

Unlimited redistribution and modification is allowed provided that the above copyright notice and this permission notice remains intact.

Introduction

Stats numerics are a total, unsolvable disaster in IRC. Some of the largest

From e3136a0f48c41d5d884735694a306dc08b95e303 Mon Sep 17 00:00:00 2001
From: Elizabeth Myers <elizabeth@interlinked.me>
Date: Sat, 20 Apr 2013 16:17:29 -0500
Subject: [PATCH] Add support for multiple forms of blacklist queries using
matches.
It supports both literal and last octet matches from the dnsbl.
---
include/blacklist.h | 15 ++++++-
src/blacklist.c | 83 +++++++++++++++++++++++++++++++-----
@Elizafox
Elizafox / testcase.py
Created January 9, 2013 13:32
Test case for problem in gevent
# This works as expected (Python docs specify it should)
import socket, ssl
# This fails
#from gevent import socket, ssl
f = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s = ssl.wrap_socket(f)
s.connect(('irc.interlinked.me', 9999))
@Elizafox
Elizafox / fillingprotocol.md
Created June 21, 2012 21:15
The Bus Filling Protocol

The Bus Seating Protocol

  • Everyone -- with noted exemptions -- attempts to sit as far from each other as possible, leaving at minimum one person of space.
  • If this is impossible, the following precedence rules are followed:
  • Seats behind an adjacent passenger avoiding passengers of great weight, homelessness, or mental illness, avoiding adjacent people on sides
    • Seats in front of an adjacent passenger avoiding passengers of great weight, homelessness, or mental illness, avoiding adjacent people on sides
    • Sitting "between seats" bus permitting and not uncomfortable
    • At this stage sitting directly next to someone is impossible, so find least person of great weight and/or mental illness and/or homelessness (preferring weight to homelessness to mental illness) to sit next to
    • Failing these, or adjacent people would be too mentally ill, homeless, or fat, stand.
  • Bus seating order prefers back to front, unless the passenger is of great weight, elderly, or their stop is < 4km away, then

#Programming

Rules

  • No flaming over language choices (Unless it's not a real programming language -- No, Patrick, XML is not a programming language. XSLT is not a programming language, either)
  • No obnoxious plugging of third party libs
  • Be helpful. If you have nothing constructive to say or nothing to do other than plug, DON'T SAY ANYTHING
  • No POE, Twisted or Boost. Period