Skip to content

Instantly share code, notes, and snippets.

View nealey's full-sized avatar
🐢

Neale Pickett nealey

🐢
View GitHub Profile
@nealey
nealey / bad-clock.py
Created August 16, 2016 04:31
Broken clock, like in Meow Wolf's House of Eternal Return. For Raspberry Pi and Sparkfun's Serial 7-Segment Display
#! /usr/bin/python
import smbus
import time
import random
bus = smbus.SMBus(1)
address = 0x71
chars = " \"'(),-01234567890ABCDEFGHIJLNOPQRSTUY_`cehiou"
#!/usr/bin/python3
"""
Python implementation of "The Bubble Babble Binary Data Encoding" (draft-huima-01)
Please note that this is not a cryptographic hash,
it can be reversed.
"""
class BubbleBabble:
#!/bin/sh
sudo apt-get update
sudo debconf-set-selections <<EOF
postfix postfix/root_address string pi
postfix postfix/main_mailer_type select Internet Site
postfix postfix/mailname string raspberry.pi
postfix postfix/mynetworks string
postfix postfix/recipient_delim string
postfix postfix/protocols select all
@nealey
nealey / rcirc-cloud-to-butt.el
Created November 19, 2015 17:52
Cloud To Butt for rcirc
(defun neale/rcirc-butt-markup (sender response)
(while (re-search-forward "the cloud" nil t)
(replace-match "my butt"))
(goto-char (point-min))
(while (re-search-forward "cloud" nil t)
(replace-match "butt"))
(goto-char (point-min))
(while (re-search-forward "cyber" nil t)
(replace-match "spider")))
(add-hook 'rcirc-markup-text-functions 'neale/rcirc-butt-markup)