Skip to content

Instantly share code, notes, and snippets.

View NCommander's full-sized avatar
🏠
Working from home

NCommander (Michael Casadevall) NCommander

🏠
Working from home
View GitHub Profile
@NCommander
NCommander / gist:fc053e5035489a1e6e792d55f8fdbdcf
Created April 4, 2024 03:35
OmniOS bloody bash make check
ncmdr@rosetta2:~/bash-5.2.21/tests$ /usr/bin/bash run-all
run-all: line 21: -c: command not found
declare -r SHELLOPTS="braceexpand:hashall:interactive-comments"
Testing ../bash
version: 5.2.21(1)-release
versinfo: 5 2 21 1 release x86_64-pc-solaris2.11
HOSTTYPE = x86_64
OSTYPE = solaris2.11
MACHTYPE = x86_64-pc-solaris2.11
Any output from any test, unless otherwise noted, indicates a possible anomaly
mcasadevall@infinityway ~/src/bash-5.2.21
% make check
./support/recho.c:45:11: warning: passing arguments to 'strprint' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
strprint(argv[i]);
^
./support/recho.c:37:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
main(argc, argv)
^
./support/recho.c:52:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
strprint(str)
@NCommander
NCommander / gist:b0838c36beb2d92c036ea2ebf7cb19c9
Last active April 4, 2024 03:20
bash make check on OmniOS/bloody
ncmdr@rosetta2:~/bash-5.2.21$ make check
`pipesize.h' is up to date.
***********************************************************
* *
* GNU bash, version 5.2.21(1)-release (x86_64-pc-solaris2.11)
* *
***********************************************************
Testing /home/ncmdr/bash-5.2.21/bash
mcasadevall@infinityway ~/illumos-arm64
% locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 6.4.0 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90400
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23400
brzbmxr.lib(awtmz.obj) : error LNK2001: unresolved external symbol "_TrapezoidRenderPIZ2TIANT"
brzbmxr.lib(zbmesh.obj) : error LNK2001: unresolved external symbol "_ZbOSCopyModelToScreen_A"
brzbmxr.lib(zbmesh.obj) : error LNK2001: unresolved external symbol "_ZbOSFFVGroupCulledLit_A"
brzbmxr.lib(zbmesh.obj) : error LNK2001: unresolved external symbol "_ZbOSFFVGroupCulled_A"
brzbmxr.lib(zbmesh.obj) : error LNK2001: unresolved external symbol "_ZbOSTVGroupBC_A"
brzbmxr.lib(zbmesh.obj) : error LNK2001: unresolved external symbol "_ZbOSTVGroupLitBC_A"
brzbmxr.lib(zbmesh.obj) : error LNK2001: unresolved external symbol "_ZbOSTVGroupLit_A"
brzbmxr.lib(zbmesh.obj) : error LNK2001: unresolved external symbol "_ZbOSTVGroup_A"
+ verbose=on
+ shift
+ [[ -n '' ]]
+ [[ on != on ]]
+ get_simple -vv
+ [[ -n -vv ]]
++ type -t get_-vv
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n '' ]]
@NCommander
NCommander / gist:6111c08a5d6be85d483727b15803b0c7
Last active January 7, 2022 06:32
Implement RFC 7638 with python-jose
#!/usr/bin/env python3
"""Quick and dirty python-jose kid generator
This is needed because jose doesn't offer a way to generate the key
thumbprint in a RFC 7638 complaint matter, and it's the only library
that can handle both EC signatures, and is MIT license compatible
"""
import base64
{
"iss": "https://spec.smarthealth.cards/examples/issuer",
"nbf": 1639490372.558,
"vc": {
"type": [
"https://smarthealth.cards#health-card",
"https://smarthealth.cards#immunization",
"https://smarthealth.cards#covid19"
],
"credentialSubject": {
{
"resourceType": "Bundle",
"type": "collection",
"entry": [
{
"fullUrl": "resource:0",
"resource": {
"resourceType": "Patient",
"name": [
{