- Multi-instance vTPM proxy driver - https://lwn.net/Articles/681696/
- vTPM snippets - https://gist.github.com/lukehinds/f7338fe3bd13687e2600fa70a2055e1c
- Using the IBM TSS with swtpm - https://github.com/stefanberger/swtpm/wiki/Using-the-IBM-TSS-with-swtpm
- swtpm manpage
- Device Plugin proposal - https://github.com/kubernetes/design-proposals-archive/blob/main/resource-management/device-plugin.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/tls" | |
"encoding/json" | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"net/url" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"federationRelationships": [ | |
{ | |
"trustDomain": "one.org", | |
"bundleEndpointURL": "https://one.org/bundle", | |
"bundleEndpointProfile": "https_web", | |
"trustDomainBundleFormat": "pem", | |
"trustDomainBundle": "-----BEGIN CERTIFICATE-----\nMIIBmjCCAUCgAwIBAgIRAKpiAzGgNbvEzW4x9hwvT10wCgYIKoZIzj0EAwIwHjEL\nMAkGA1UEBhMCVVMxDzANBgNVBAoTBlNQSUZGRTAeFw0yMjA4MzAwMTEzNDhaFw0z\nMjA4MjcwMTEzNThaMB4xCzAJBgNVBAYTAlVTMQ8wDQYDVQQKEwZTUElGRkUwWTAT\nBgcqhkjOPQIBBggqhkjOPQMBBwNCAATmRBUW6+vP+bPmL3CPiVgHlPUjWk4KIKRB\nhMmGs857U0FuDQLP/6co0zPGo6p0DdlF8gNNzRrm+ClAjm9T2Ql0o18wXTAOBgNV\nHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUbTnANqhKvdbF\nSovpgj59ZvdvMJwwGwYDVR0RBBQwEoYQc3BpZmZlOi8vb25lLm9yZzAKBggqhkjO\nPQQDAgNIADBFAiAmd6SoiczL/CxrcgnR85K1FnnX7XSe30qG6Bki+W3g5QIhAJYv\nZUFPRou/ueQ7968gHmQ+rEZXaOalmCtKc/q7yNii\n-----END CERTIFICATE-----" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Copy docker images from a registry to another one given a pattern | |
#!/bin/bash | |
SRC_REGISTRY=localhost:5000 | |
DST_REGISTRY=public.ecr.aws/xxxxxxx | |
NEW_TAG=latest | |
docker images --format "{{.ID}} {{.Repository}}" | while read line; do | |
pieces=($line) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM resin/rpi-raspbian:latest | |
EXPOSE 80 | |
VOLUME ["/config"] | |
RUN apt-get update && \ | |
apt-get upgrade; \ | |
RUN echo "deb http://http.debian.net/debian jessie-backports main" >> /etc/apt/sources.list; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
REGEX='s/('$1'*-[a-z0-9\-]*)(.*)/\1/g' | |
POD=`kubectl get pods | grep $1 | sed -E $REGEX` | |
multitail -f --config $HOME/multitail.conf -CS $1 -l 'kubectl logs '$POD' -f' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.cli.command() | |
def secure(length): | |
context = ('certs/server.crt', 'certs/server.key') | |
app.run(host='0.0.0.0', port=443, debug=True, ssl_context=context) | |
#$ export FLASK_APP=wsgi.py flask secure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const links = document.querySelectorAll('.delete-time-for-activity-link'); | |
for (let i = 0; i < links.length; i++) { | |
setTimeout(() => { | |
links[i].click(); | |
setTimeout(() => document.querySelector('.delete-entity-time button').click(), 1000); | |
}, i*5000); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { Loader } from 'semantic-ui-react'; | |
const withLoader = (WrappedComponent, dataProps) => ( | |
class LoaderHOC extends Component { | |
render() { | |
const prop = this.props[dataProps]; | |
return (!prop || Object.keys(prop).length === 0) | |
? <Loader active /> | |
: <WrappedComponent {...this.props} />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"extends": "react-app", | |
"rules": { | |
"semi": "warn", | |
"no-compare-neg-zero": "warn", | |
"no-extra-semi": "warn", | |
"no-invalid-regexp": "warn", | |
"valid-jsdoc": "warn", | |
"array-callback-return": "warn", | |
"consistent-return": "warn", |
NewerOlder