Skip to content

Instantly share code, notes, and snippets.

View mangelajo's full-sized avatar
😄

Miguel Angel Ajo Pelayo mangelajo

😄
View GitHub Profile

Environment

Jetpack 4.6, Jetson Xavier, Ubuntu 18.04

prepare

apt install -y curl jq runc iptables conntrack nvidia-container-runtime nvidia-container-toolkit

crio

Install crio

@eduardolfalcao
eduardolfalcao / enrollment.sh
Created May 28, 2020 17:05 — forked from dnoliver/enrollment.sh
TPM 2.0 Device Identity Attestation Samples
#!/bin/bash
# Dependencies
# tpm2-tools-4.0.1-1.fc31.x86_64
# tpm2-tss-2.3.1-1.fc31.x86_64
# tpm2-tss-engine-master
set -euxo pipefail
export TPM2TOOLS_TCTI="device:/dev/tpmrm0"
source ~/overcloudrc
curl https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2c > \
CentOS-7-x86_64-GenericCloud.qcow2c
openstack image create "centos7" --file CentOS-7-x86_64-GenericCloud.qcow2c \
--disk-format qcow2 --container-format bare \
--public
#!/bin/bash -e
# Usage ./k8s-service-account-kubeconfig.sh ( namespace ) ( service account name )
TEMPDIR=$( mktemp -d )
trap "{ rm -rf $TEMPDIR ; exit 255; }" EXIT
SA_SECRET=$( kubectl get sa -n $1 $2 -o jsonpath='{.secrets[0].name}' )