Skip to content

Instantly share code, notes, and snippets.

View nealey's full-sized avatar
🐢

Neale Pickett nealey

🐢
View GitHub Profile
#!/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 / raspbian-cgi-apache.sh
Last active December 23, 2022 22:23
Raspbian: set up Apache with CGI
#! /bin/sh
# Let the user write to the HTML directory
sudo chown pi /var/www/html
# Set up Apache
sudo apt update
sudo apt install apache2
sudo a2enmod cgi
sudo apache2ctl graceful
@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)