Skip to content

Instantly share code, notes, and snippets.

View bryan-hunt's full-sized avatar

Bryan Hunt bryan-hunt

View GitHub Profile
@bryan-hunt
bryan-hunt / gist:a0e17a0132fae1d61b57c0a125aaa928
Created March 18, 2023 00:22
Escape sequences in openapi json
{
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "Swagger Petstore",
"description": "A sample API that uses a petstore as an example to demonstrate features in the OpenAPI 3.0 specification",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"name": "Swagger API Team",
"email": "apiteam@swagger.io",
@bryan-hunt
bryan-hunt / README.md
Last active January 3, 2022 17:14
Example Certificate Provisioning

Microchip Secure Element Tools

These tools are used to set up an example chain of trust ecosystem for use with Microchip ATECC508A and ATECC608A parts. Included are utilities to create the ecosystem keys and certificates.

Dependencies

Python scripts will require python 3 to be installed. Once python is installed install the requirements (from the path of this file):

@bryan-hunt
bryan-hunt / stretch_cal_log.txt
Created February 6, 2019 23:11
Python Cryptoauthlib install on stretch
pi@raspberrypi:~ $ pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
chardet (2.3.0)
cryptography (1.7.1)
devscripts (2.17.6+deb9u2)
file-magic (0.3.0)
idna (2.2)
keyring (10.1)
keyrings.alt (1.3)
pip (9.0.1)
@bryan-hunt
bryan-hunt / cal_gg_pkcs11.md
Last active April 1, 2023 16:27
Setting up ATECC608A, Cryptoauthlib PKCS11 for Greengrass HSI

Demo Setup for Cryptoauthlib PKCS11 and Greengrass on Raspberry Pi

  • Setup the Raspberry Pi for greengrass following the AWS tutorials for the Raspberry Pi. Modules 1 & 2 need to be completed before moving forward with the pkcs11 credentials.
  • Perform the steps detailed in the pkcs11 readme and stop at the "testing" section as the tests will not succeed without an initialize device.

Probing the device

An uninitialized device with the defaults provided in the readme will display the following:

@bryan-hunt
bryan-hunt / gist:3949923
Created October 25, 2012 01:14
KeilRDK groovy script for Jenkins-Warnings
//
// KeilRDK error/warning parsing script for the Warnings plugin for Jenkins
// https://wiki.jenkins-ci.org/display/JENKINS/Warnings+Plugin
//
// Regular expression:
// ^(.+)\((\d+)\):\s*([A-Za-z]+):\s*#(\d+)-D:(.+)$
//
import hudson.plugins.warnings.parser.Warning
import hudson.plugins.analysis.util.model.Priority