Skip to content

Instantly share code, notes, and snippets.

View johnnydecimal's full-sized avatar

Johnny Noble johnnydecimal

View GitHub Profile
@johnnydecimal
johnnydecimal / amazon-ses.sh
Last active October 25, 2024 13:27
Amazon SES mail sending script
#!/bin/bash
## ** UPDATE PER-MESSAGE **
message_body=$(<message.txt)
subject="The Quarterly, 1st ed. 2024-06 [D85.23.13]"
# sender
sender="Johnny ‘Decimal’ Noble <[email protected]>"
body="$message_body"
@johnnydecimal
johnnydecimal / P39 home page.md
Last active October 30, 2022 05:08
P39: PMP software for humans

P39: PMP software for humans

This Gist is the home page for this project. If we store information anywhere else, it must be linked here. Then you only have to remember one thing.

It's a new thing I'm trying, let me know what you think.

P39?

John's new Johnny.Decimal project naming structure is [letter][00-99], i.e. A00-Z99. 'P' is his prefix for personal projects, and the number '39' is meant to make the whole thing look a bit like 'PMP'. So it's memorable like.

// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@johnnydecimal
johnnydecimal / SketchSystems.spec
Last active June 19, 2021 11:53
Listing your Projects
Listing your Projects
click a Project -> Project selected - listing Areas
Project selected - listing Areas
click the Project header -> Listing your Projects
click an Area -> Area selected - listing Categories
Area selected - listing Categories
click the Project header -> Listing your Projects
click the Area header -> Project selected - listing Areas
click a Category -> Category selected - listing IDs
Category selected - listing IDs
@johnnydecimal
johnnydecimal / machine.js
Last active April 25, 2021 21:47
Generated by XState Viz: https://xstate.js.org/viz
const what_can_i_order = {
id: 'what_can_i_order',
type: 'compound',
initial: 'consulting_bom_team',
states: {
consulting_bom_team: {
on: {
CONSULTED: 'done'
}
},
@johnnydecimal
johnnydecimal / machine.js
Last active February 2, 2021 02:10
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@johnnydecimal
johnnydecimal / machine.js
Created September 21, 2020 22:20
Generated by XState Viz: https://xstate.js.org/viz
const hardwareMachine = Machine({
strict: true,
initial: "start",
states: {
start: {
on: {
CONFIRM_FINAL_REQUIREMENTS: "prepare_and_order"
}
App: OmniFocus 3.6.3 (v140.14.0)
Device: antimony.local (n9YYRdUsikA)
Apr 5, 2020 at 12:53 AM Scheduled (5.50s)
*** Error: {
code = "-1200";
domain = NSURLErrorDomain;
userInfo = {
NSErrorClientCertificateStateKey = 0;
NSErrorFailingURLKey = "https://sync3.omnigroup.com/jen729w/OmniFocus.ofocus/";
// Linked to play.jd.com.
// Do not delete or edit.
const jdLanguage = Machine({
id: 'jdLanguage',
initial: 'start',
states: {
start: {
on: {
FIND_AREA: 'area_detected',
// Linked to play.jd.com.
// Do not delete or edit.
const jdLanguage = Machine({
id: 'jdLanguage',
initial: 'start',
states: {
start: {
on: {
FIND_AREA: 'area_detected',