Skip to content

Instantly share code, notes, and snippets.

View bzub's full-sized avatar

bzub bzub

View GitHub Profile

Keybase proof

I hereby claim:

  • I am bzub on github.
  • I am bzub (https://keybase.io/bzub) on keybase.
  • I have a public key whose fingerprint is 52BC 5ECE 98CE 58D2 2FC4 EB5D 22EB A7E1 5614 2976

To claim this, I am signing this object:

@bzub
bzub / build.sh
Created November 30, 2018 18:03
IWD/DBUS OCI container build script using pacstrap (Arch Linux)
#!/usr/bin/env sh
set -e
set -x
# Boilerplate setup
alias buildah="sudo buildah"
container="$(buildah from scratch)"
alias run="buildah run ${container}"
alias copy="buildah copy ${container}"
alias add="buildah add ${container}"
@bzub
bzub / test_log.txt
Created January 14, 2019 01:25
terraform-provider-acme PR#18 test results
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test $(go list ./... |grep -v 'vendor') -v -timeout 240m
=== RUN TestPluginVersion
--- PASS: TestPluginVersion (0.00s)
PASS
ok github.com/terraform-providers/terraform-provider-acme (cached)
=== RUN TestResourceACMERegistrationMigrateState
2019/01/14 00:21:28 [DEBUG] Migrating acme_registration state: old v0 state: &terraform.InstanceState{ID:"regurl", Attributes:map[string]string{"account_key_pem":"key", "email_address":"nobody@example.com", "registration_body":"regbody", "registration_url":"https://acme-staging.api.letsencrypt.org/acme/reg/123456789", "registration_new_authz_url":"https://acme-staging.api.letsencrypt.org/acme/new-authz", "registration_tos_url":"https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf", "server_url":"https://acme-staging.api.letsencrypt.org/directory"}, Ephemeral:terraform.EphemeralState{ConnInfo:map[string]string(nil), Type:""}, Meta:map[string]interface {}(nil), Tainted:false, mu:sync.Mute
@bzub
bzub / test_log.txt
Created January 14, 2019 02:09
terraform-provider-acme PR#17 test results
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test $(go list ./... |grep -v 'vendor') -v -timeout 240m
=== RUN TestPluginVersion
--- PASS: TestPluginVersion (0.00s)
PASS
ok github.com/terraform-providers/terraform-provider-acme 0.013s
=== RUN TestResourceACMERegistrationMigrateState
2019/01/14 01:48:06 [DEBUG] Migrating acme_registration state: old v0 state: &terraform.InstanceState{ID:"regurl", Attributes:map[string]string{"registration_tos_url":"https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf", "server_url":"https://acme-staging.api.letsencrypt.org/directory", "account_key_pem":"key", "email_address":"nobody@example.com", "registration_body":"regbody", "registration_url":"https://acme-staging.api.letsencrypt.org/acme/reg/123456789", "registration_new_authz_url":"https://acme-staging.api.letsencrypt.org/acme/new-authz"}, Ephemeral:terraform.EphemeralState{ConnInfo:map[string]string(nil), Type:""}, Meta:map[string]interface {}(nil), Tainted:false, mu:sync.Mutex{
@bzub
bzub / test_log.txt
Created January 14, 2019 04:13
terraform-provider-acme PR#14 test results
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test $(go list ./... |grep -v 'vendor') -v -timeout 240m
=== RUN TestPluginVersion
--- PASS: TestPluginVersion (0.00s)
PASS
ok github.com/terraform-providers/terraform-provider-acme 0.013s
=== RUN TestResourceACMERegistrationMigrateState
2019/01/14 03:59:39 [DEBUG] Migrating acme_registration state: old v0 state: &terraform.InstanceState{ID:"regurl", Attributes:map[string]string{"registration_body":"regbody", "registration_url":"https://acme-staging.api.letsencrypt.org/acme/reg/123456789", "registration_new_authz_url":"https://acme-staging.api.letsencrypt.org/acme/new-authz", "registration_tos_url":"https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf", "server_url":"https://acme-staging.api.letsencrypt.org/directory", "account_key_pem":"key", "email_address":"nobody@example.com"}, Ephemeral:terraform.EphemeralState{ConnInfo:map[string]string(nil), Type:""}, Meta:map[string]interface {}(nil), Tainted:false, mu:sync.Mutex{
@bzub
bzub / main.go
Created January 9, 2020 16:27
kyaml: projected volume source sequence key
package main
import (
"fmt"
"os"
"sigs.k8s.io/kustomize/kyaml/yaml"
)
func main() {
@bzub
bzub / merge2_test.go
Last active January 10, 2020 21:37
use deepfield for associative key checck
{`nested associative -- add same name, different path`,
`
kind: Deployment
volumes:
- name: vol1
projected:
sources:
- secret:
name: source1
optional: false
@bzub
bzub / flatcar_firecracker.sh
Created March 8, 2020 17:33
Flatcar Linux via Flatcar
#!/usr/bin/env sh
set -e
command="${1}"
usage="${0} start|stop"
if [ -z "${command}" ]; then
echo "ERROR: command argument required. [start|stop]"
echo "${usage}"
exit 1
@bzub
bzub / nothing.yaml
Created March 14, 2021 01:53
nothing
# nothing