Skip to content

Instantly share code, notes, and snippets.

View bobcallaway's full-sized avatar

Bob Callaway bobcallaway

View GitHub Profile
# used in OpenSSF EU 22 presentation:
#!/bin/sh
#set -X
#doitlive commentecho: true
### start second demo
#!/bin/sh
#set -x
# used in DevConf 22 presentation: https://www.youtube.com/watch?v=vh26wcpA1-M
#!/bin/sh
#set -X
#doitlive commentecho: true
#
# Start with a clean slate
make clean
#
# Edit the source
#!/bin/sh
# assumes you have curl, jq and smallstep CLI in path
POLLURL="https://oauth2.sigstore.dev/auth/device/token"
START=$(curl -s -d client_id=sigstore -d "scope=openid email" https://oauth2.sigstore.dev/auth/device/code -o -)
echo "Please visit $(echo $START | jq -r '.verification_uri_complete')"
DEVICECODE=$(echo $START | jq -r '.device_code' )
#!/bin/sh
#set -x
#doitlive commentecho: true
# Requires openssl, step (https://github.com/smallstep/cli), jq
## COSIGN or SWISS-ARMY-KNIFE TOOL
# use openssl to generate keypair
openssl ecparam -genkey -name secp384r1 > ec_private.pem
Bobs-MacBook-Pro:square-webhook bcallawa$ terraform init -reconfigure
Initializing the backend...
Successfully configured the backend "gcs"! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing provider plugins...
- Checking for available provider plugins...
panic: runtime error: invalid memory address or nil pointer dereference