Skip to content

Instantly share code, notes, and snippets.

View erinzm's full-sized avatar
🌆
hmmmm

Erin Marshall erinzm

🌆
hmmmm
  • UW-Madison/Wisconsin Institute of Discovery
  • Madison, Wisconsin
View GitHub Profile
pip install -e acme[testing]
nosetests -v acme --exclude "acme.standalone_test.*"
pip install -r requirements.txt -e .[testing]
nosetests -v letsencrypt --exclude "letsencrypt.plugins.standalone_test.*"
pip install -e letsencrypt-apache
nosetests -v letsencrypt_apache
pip install -e letsencrypt-nginx
nosetests -v letsencrypt_nginx
pip install -e letshelp-letsencrypt
nosetests -v letshelp_letsencrypt
@erinzm
erinzm / fastmotorcontrol
Last active March 14, 2016 16:02
fast serial protocol for motor control
transmit to control
+----------+----------------+--------------------------------------------+
| motor id | motor position | motor flags (braking, locking, reset, etc) |
| 8 bits | 64 bits | 8 bits |
+----------+----------------+--------------------------------------------+
| |
\______________________________ 80 bits _________________________________/
maybe a status _on query_ (query might be pulling a line high and sending a motor id)
+--------------------+------------------+-----------------+
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@erinzm
erinzm / gist:7a6655246e696f1d9e60916f4ce98c87
Created November 8, 2016 00:05
weechat buffers.pl server indentation
/set buffers.look.indenting on
/set irc.look.server_buffer independent
...then for each buffer, switch to it and:
/buffer move 1
...where 1 is the position you want to move the buffer (or you can do this w/ mouse if you have that setup)
Once buffers are where you want them:
@erinzm
erinzm / aoc_day_01.py
Last active December 1, 2016 07:58
AOC: Day 1
import re, math
with open('input') as f:
puzzleinput = f.read()
position=[0, 0]
face = 0 # along y axis, incrementing goes cw
dpos = {0: [0, 1], 1: [1, 0], 2: [0, -1], 3: [-1, 0]}
position_stack = [position[:]]; ans2_found = False

Keybase proof

I hereby claim:

  • I am liamim on github.
  • I am archimedespi (https://keybase.io/archimedespi) on keybase.
  • I have a public key whose fingerprint is F1A1 745C 486D 2F41 794C A621 FE4E 860E 818B C54C

To claim this, I am signing this object:

; This file contains all the help data for the HOST mode to allow
; the user to get online help for all the commands.
; There are 4 sections of commands, [CMDS], [GET], [SET] and [TEST]
; Each topic in a section is started by a : (colon). The next
; : (color) or section seen will end the topic.
[CMDS]
:INDEX
? ECHO HELP ABORT STOP
VERSION REMOTE LOCAL SHUTDOWN RIGHTS
DUMP RESET HARDHOME HOME SOFTHOME
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.