Skip to content

Instantly share code, notes, and snippets.

View jtarchie's full-sized avatar
🖖
spocking along

JT A. jtarchie

🖖
spocking along
View GitHub Profile
@jtarchie
jtarchie / main.go
Created August 1, 2023 02:15
dagger container order resolution
package main
import (
"context"
"fmt"
"os"
"dagger.io/dagger"
)
function e(name) {
var e = document.createEvent('HTMLEvents');
e.initEvent('name', true, false);
return e;
}
var element = $$("span[title='View']")[0]
element.dispatchEvent(e("contextmenu"));
element = $$("div[data-automation-id='ciewPrintableVersion']")[0]
final_name: ((first_name))
#! some variables need to be configurable externally
#! we can specify them in a separate file or a separate
#! YAML document node
#@ load("@ytt:data", "data")
jobs:
#@ for/end iaas in data.values.iaases:
- name: #@ "create-" + iaas.name
- name: #@ "destroy-" + iaas.name

A table defined as (this is simplified):

CREATE TABLE build_events (
   build_id INTEGER, -- associated with the builds table (joins not important here)
   event_id INTEGER, -- increases for every entry that is inserted, used in a subquent ORDER BY
   payload TEXT.     -- JSON payload
);

Keybase proof

I hereby claim:

  • I am jtarchie on github.
  • I am jtarchie (https://keybase.io/jtarchie) on keybase.
  • I have a public key ASBweLkiDXMDPc0AQOqTRY9sYjSvXoZ2wvvv0S0OT4k8kwo

To claim this, I am signing this object: