To generate projects in OpenShift with unique names without manually intervention:
Via REST API:
TOKEN=$(oc whoami -t)
ENDPOINT=$(oc config current-context | cut -d/ -f2 | tr - .)
curl -k \
-X POST \
#!/bin/env bash | |
set -eo pipefail | |
# | |
# Part of an introductory Fedora CoreOS blog post on my website: | |
# https://www.matthiaspreu.com/posts/fedora-coreos-first-steps/ | |
# | |
# Script sets up a FCOS virtual machine using QEMU. | |
# | |
# Initial user "matthias" with password "test" can be used. |
#!/bin/env bash | |
set -eo pipefail | |
# | |
# Part of a Fedora CoreOS blog post on my website: | |
# https://www.matthiaspreu.com/posts/fedora-coreos-embed-ignition-config/ | |
# | |
# Script modifies a FCOS virtual machine image and injects | |
# an Ignition configuration in it. | |
# |
# Part of a blog post about lambda calculus on my website: | |
# https://www.matthiaspreu.com/posts/lambda-calculus-recursion/ | |
# Y combinator based on the expression: | |
# | |
# Y = λf.(λx.f(xx))(λx.f(xx)) | |
Y <- function(f) { | |
fxx <- function(x) { f((x)(x)) } | |
(fxx)(fxx) |
To generate projects in OpenShift with unique names without manually intervention:
Via REST API:
TOKEN=$(oc whoami -t)
ENDPOINT=$(oc config current-context | cut -d/ -f2 | tr - .)
curl -k \
-X POST \