Skip to content

Instantly share code, notes, and snippets.

import secrets
import string
from typing import Sequence
"""
This is a set of functions for demonstrating one-time pad
encryption using a twenty-six letter alphabet.
This code is a companion to the article at
https://notes.ericjiang.com/posts/1051
@erjiang
erjiang / minke_aire.txt
Last active October 6, 2021 05:21
Minke Aire remote command codes
01010 - toggle light
10010 - toggle light 2
01000 - speed 2
00100 - speed 1
10100 - stop
10000 - speed 3
00010 - reverse
ALL CODES:
#!/usr/bin/perl
#
# Eric Jiang
# http://notes.ericjiang.com/posts/54
# This software is public domain.
#
# NOTE: This code is not maintained!
# There is a newer version written in C:
# https://github.com/erjiang/usbscale
#