Skip to content

Instantly share code, notes, and snippets.

rusting away

Leonora Tindall NoraCodes

rusting away
View GitHub Profile
NoraCodes / rh.svg
Last active Jan 18, 2022
How do I get turn-by-turn directions on my device?
View rh.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NoraCodes /
Created Jan 10, 2022
SeaHash investigation - why is Fasthash's implementation weird?
use fasthash; // 0.4
use seahash; // 4
use std::hash::Hasher;
// FastHash seeds
const SEAHASH_SK0: u64 = 0xe7b0c93ca8525013;
const SEAHASH_SK1: u64 = 0x011d02b854ae8182;
const SEAHASH_SK2: u64 = 0x7bcc5cf9c39cec76;
const SEAHASH_SK3: u64 = 0xfa336285d102d083;
NoraCodes / output.txt
Created May 14, 2021
Output from antisamples ambiguous-path test
View output.txt
antisamples nora/samples-2018 % TESTNAME=ambiguous-path cargo test --test runtests -- --nocapture
Finished test [unoptimized + debuginfo] target(s) in 0.02s
Running target/debug/deps/runtests-dd41841cefb91125
running 1 test
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 8 filtered out; finished in 0.03s
NoraCodes /
Created May 7, 2021
Melodies from the Area of the Triangle Swept Out by Bodies on Circular Orbits
import matplotlib.pyplot as plt
import math
# Radii of the bodies.
RAD0 = 7
RAD1 = 11
RAD2 = 15
# How many cycles to compute.
CYC = 1
NoraCodes /
Last active Jul 28, 2021
Apple Magic Touchpad 2 configuration script
#!/usr/bin/env bash
# XInput/Synclient settings for Apple Magic Touchpad 2
# AGPL v3.0 or greater at your option
# (C) Leonora Tindall 2021
# Based on a Reddit post by /u/fr3lld
# and a very helpful AskUbuntu response by Jamie Scott
# Place this somewhere, set it as executable, and place the filename
# in in ~/.xinitrc
set -e
## Sol DrumBud v0.1 ##
## Leonora Tindall <> ##
## Licensed GPLv.3 ##
A configurable drum trigger helper for Sol.
Use it to trigger 8 more drums from the Beatstep Pro, or trigger your complex
Boolean logic rhythms from 8 more directions.
Provides 8 percussion triggers on the Sol's outputs.
NoraCodes /
Last active Aug 29, 2021
A sequencer helper firmware for the Sol MIDI to CV converter module from Winterbloom
## Sol Seqpal v0.4.1 ##
## Leonora Tindall <> ##
## Licensed GPLv.3 ##
A configurable sequencer helper for the Sol.
Defaults to:
3 CV/Gate channels on a/1, b/2, and c/3,
plus two percussion channels on 4 and d (abused as a trigger)
NoraCodes /
Created Nov 23, 2018
Python script to listen for and dump info on Dropbox sync sessions
#! /usr/bin/env python3
import socketserver
import json
import datetime
import sys
import getopt
known_hosts = {}
QUIET = False
NoraCodes /
Created Jul 2, 2018
Script to upload things to Google Cloud Storage via OAuth bearer token
set -e
usage () {
echo "Usage:"
echo " [object] [bucket] [OAuth bearer token]"
[ -z "$1" ] && echo "ERROR: No local object name supplied." && usage && exit 1
NoraCodes /
Created Mar 26, 2018
Auto-update Cron job for
set -e
# Enter the correct directory
cd ~/
# Get the current hash
OLD_ID=$(git rev-parse HEAD)
# Update the Git repo
git pull origin master
# Get the new hash. These will be the same if no changes were pulled.