Skip to content

Instantly share code, notes, and snippets.

View ALRubinger's full-sized avatar

Andrew Lee Rubinger ALRubinger

View GitHub Profile
Error: [ERROR] Tests run: 8, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 17.369 s <<< FAILURE! - in tbdex.sdk.protocol.TbdexTestVectorsProtocol
Error: [ERROR] parse_rfq Time elapsed: 11.05 s <<< ERROR!
[INFO] java.lang.IllegalStateException: Verification failed. Failed to resolve kid. Error: internalError
[INFO] at web5.sdk.jose.jws.DecodedJws.verify(Jws.kt:262)
[INFO] at tbdex.sdk.protocol.SignatureVerifier.verify(SignatureVerifier.kt:60)
[INFO] at tbdex.sdk.protocol.models.Message.verify(Message.kt:82)
[INFO] at tbdex.sdk.protocol.Parser.parseMessage(Parser.kt:45)
[INFO] at tbdex.sdk.protocol.TbdexTestVectorsProtocol.parse_rfq(TbdexTestVectorsProtocol.kt:145)
[INFO] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
@ALRubinger
ALRubinger / index.js
Created April 20, 2023 23:58
Web5 Quickstart
import { Web5 } from '@tbd54566975/web5';
const web5 = new Web5;
const did = await web5.did.create('ion');
console.log('did', did);
await web5.did.register({
connected: true,
did: did.id,
endpoint: 'app://dwn',
<html>
<head>
<script type="module">
import { Web5 } from 'https://cdn.jsdelivr.net/npm/@tbd54566975/web5@0.4.0-unstable.e6470ce-2023.4.01-19-39-11/dist/browser.mjs';
const web5 = new Web5;
const did = await web5.did.create('ion');
console.log('did', did);
await web5.did.register({
@ALRubinger
ALRubinger / gist:5d933b530fae307bf47a50d5f72f042d
Created March 9, 2023 23:41
HackMD / Git Technique for Collaborative Editing
* At the beginning of each week, Nick and I talk broadly about our goals for the week. We're finding it's a nice block of time we can wrap our heads around with planning. We think about that week in context of a grander Milestone, for instance the upcoming Phase2 work for the dev site we want out by end of this month.
* All of those scoping documents live here in a table: https://github.com/TBD54566975/collaboration/tree/main/planning
* For the current week, while things are in flux, we start from the template which helps us organize our thoughts. That template is here: https://github.com/TBD54566975/collaboration/blob/main/planning/open-source-programs/weekly/OSP_WEEKLY_SCOPING_TEMPLATE.md
* We copy that template into a new HackMD doc. And set permissions on that HackMD to "public viewable by everyone and editable by logged-in users". Then we commit that link to the planning index page.
* ...because HackMD lets you see real-time edits from others, and comment on specific sections and have a conversation ther
public interface PomlessResolveStageBase<EQUIPPEDRESOLVESTAGETYPE extends PomEquippedResolveStageBase<EQUIPPEDRESOLVESTAGETYPE, STRATEGYSTAGETYPE, FORMATSTAGETYPE>, UNEQUIPPEDRESOLVESTAGETYPE extends PomlessResolveStageBase<EQUIPPEDRESOLVESTAGETYPE, UNEQUIPPEDRESOLVESTAGETYPE, STRATEGYSTAGETYPE, FORMATSTAGETYPE>, STRATEGYSTAGETYPE extends MavenStrategyStageBase<STRATEGYSTAGETYPE, FORMATSTAGETYPE>, FORMATSTAGETYPE extends MavenFormatStage>
extends MavenResolveStageBase<UNEQUIPPEDRESOLVESTAGETYPE, STRATEGYSTAGETYPE, FORMATSTAGETYPE> {
 alr  ~  1  curl -v https://5d12631643f6210009062f8a--thirsty-nightingale-25da0e.netlify.com
* Trying 167.99.4.63...
* TCP_NODELAY set
* Connected to 5d12631643f6210009062f8a--thirsty-nightingale-25da0e.netlify.com (167.99.4.63) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
npm info lifecycle natural-zinc@1.0.0~postbuild: natural-zinc@1.0.0
npm timing npm Completed in 17200ms
npm info ok
---> Cleaning up npm cache
----> moving built web application to /opt/app-root/output
mv: cannot stat './dist/natural-zinc/*': No such file or directory
error: build error: non-zero (13) exit code from nodeshift/centos7-s2i-web-app@sha256:989207b23a6924d850d8970646c52379df3ec3c278a5ef6de83d5d432c3ed660
alr  tubescreamer  ~  $  curl -s https://raw.githubusercontent.com/fabric8-launcher/launcher-openshift-templates/master/scripts/minishift/install.sh | bash
This script will install the Launcher in Minishift. Make sure that:
- Minishift is running
- You have run oc login previously
- Your GitHub Username is correct [found from git config github.user]: ALRubinger
- Your GitHub Token is correct [found from git config github.token]: *REDACTED*
Press ENTER to continue ...
Creating launcher project ...
[alr@tubescreamer ~]$ minishift start --memory=8GB --show-libmachine-logs -v5
-- minishift version: v1.29.0+72fa7b2
-- Starting profile 'minishift'
Found binary path at /usr/local/bin/docker-machine-driver-kvm
Launching plugin server for driver kvm
Plugin server listening at address 127.0.0.1:37239
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
12:18 $ eval $(minishift oc-env)
✔ ~/business/jboss/git/fabric8-launcher/launcher-openshift-templates [master ↑·4|✔]
12:18 $ oc process --local -f openshift/launcher-template.yaml --param-file=released.properties -o yaml | oc create -f -
Error from server (Forbidden): configmaps is forbidden: User "developer" cannot create configmaps in the namespace "myproject": no RBAC policy matched
Error from server (Forbidden): configmaps is forbidden: User "developer" cannot create configmaps in the namespace "myproject": no RBAC policy matched
Error from server (Forbidden): deploymentconfigs.apps.openshift.io is forbidden: User "developer" cannot create deploymentconfigs.apps.openshift.io in the namespace "myproject": no RBAC policy matched
Error from server (Forbidden): services is forbidden: User "developer" cannot create services in the namespace "myproject": no RBAC policy matched
Error from server (Forbidden): deploymentconfigs.apps.openshift.io is forbidden: User "developer" cannot create deploymentconfigs.apps