Skip to content

Instantly share code, notes, and snippets.

View NoraCodes's full-sized avatar
🦀
rusting away

Leonora Tindall NoraCodes

🦀
rusting away
View GitHub Profile
@NoraCodes
NoraCodes / amt2config.sh
Last active July 28, 2021 19:42
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 <[email protected]> ##
## 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
NoraCodes / sol_seqpal.py
Last active August 29, 2021 17:38
A sequencer helper firmware for the Sol MIDI to CV converter module from Winterbloom
"""
## Sol Seqpal v0.4.1 ##
## Leonora Tindall <[email protected]> ##
## 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
NoraCodes / dropsniff.py
Created November 23, 2018 21:56
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
NoraCodes / upload.sh
Created July 2, 2018 16:53
Script to upload things to Google Cloud Storage via OAuth bearer token
!/bin/bash
set -e
usage () {
echo "Usage:"
echo " upload.sh [object] [bucket] [OAuth bearer token]"
}
[ -z "$1" ] && echo "ERROR: No local object name supplied." && usage && exit 1
@NoraCodes
NoraCodes / gogs.log
Created March 17, 2018 13:24
Gogs bus error!
2018/03/17 00:02:47 [TRACE] CSRF Token: wdQKEuNtsm5y3e9LVcX2dqHz9J86MTUyMTI0NDk2NzUwNDU5NzY1Ng==
2018/03/17 00:03:07 [TRACE] Detected encoding: UTF-8 (fast)
2018/03/17 00:04:00 [TRACE] Template: repo/home
2018/03/17 00:05:42 [TRACE] Doing: MirrorUpdate
2018/03/17 00:06:33 [TRACE] Session ID: bb8e5fa9c54b3597
2018/03/17 00:06:33 [TRACE] CSRF Token: weRrgVR3UOU7MLYD4m5w1MiWhTc6MTUyMTI0NTE5MzU5OTM0MTc4MA==
2018/03/17 00:06:44 [TRACE] Template: repo/commits
2018/03/17 00:08:04 [TRACE] Session ID: ec81973c58f48efe
2018/03/17 00:08:04 [TRACE] CSRF Token: ETWb5YGr3ZZeU9E9z5ZZ0iMn6_Q6MTUyMTI0NTI4NDAwNTI0MDEwMA==
2018/03/17 00:08:04 [TRACE] Template: user/profile
@NoraCodes
NoraCodes / esp8266_scan.ino
Last active October 18, 2022 10:35
Network scanner on ESP8266
/**
* ESP8266 Scanner - Scans for networks on the 2.4GHz band and prints them out to the console.
* Program it onto your ESP8266, pull up miniterm, the Serial Monitor, etc, and view a list of
* wireless networks on your computer.
* Requres Arduino JSON (http://arduinojson.org/), downloadable from Library Manager or GitHub.
* Or, set OUTPUT_JSON and consume the serial output with your favorite JSON parser.
*
* Created by Leonora Tindall in 2017 for the ESP8266.
* This software is licensed under the GNU General Public License, Version 3.0.
*/
@NoraCodes
NoraCodes / work_queue.rs
Last active May 5, 2025 11:02
An example of a parallel work scheduling system using only the Rust standard library
// Here is an extremely simple version of work scheduling for multiple
// processors.
//
// The Problem:
// We have a lot of numbers that need to be math'ed. Doing this on one
// CPU core is slow. We have 4 CPU cores. We would thus like to use those
// cores to do math, because it will be a little less slow (ideally
// 4 times faster actually).
//
// The Solution:
@NoraCodes
NoraCodes / turing_drawings.txt
Last active November 6, 2018 20:32
Cool Turing Drawing images
Some Polygons (still)
http://maximecb.github.io/Turing-Drawings/#4,2,3,1,3,3,1,2,2,1,0,0,1,0,1,1,2,3,1,0,2,1,1,0,1,2
Moving Shapes (flashing)
http://maximecb.github.io/Turing-Drawings/#4,3,3,2,3,0,2,3,2,1,3,0,1,0,2,1,2,2,2,0,1,1,3,0,2,1,2,2,0,0,1,0,1,2,3,2,2,0
Slashing Noise (flashing)
http://maximecb.github.io/Turing-Drawings/#3,8,0,1,1,1,3,1,1,6,3,1,7,3,1,3,0,1,1,1,2,4,2,1,7,2,1,4,1,1,1,3,1,4,0,1,6,1,2,4,3,2,7,2,1,7,2,2,2,1,1,6,1,0,2,0,0,2,1,2,2,3,1,2,2,2,1,1,2,7,2,1,4,0
Logarithmic Slide (smooth)

Keybase proof

I hereby claim:

  • I am noracodes on github.
  • I am lfstindall (https://keybase.io/lfstindall) on keybase.
  • I have a public key ASDPVOLEYOVU2GJ8igFZ2Iyb_CuFiYTXiubc7huxZ1Mzrwo

To claim this, I am signing this object: