- Understand Kubernetes API primitives
- Create and configure basic Pods
-
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 | |
set -eu | |
FOLDER=$1 | |
PLAYLIST=$2 | |
rm -f playlist.txt | |
mkdir -p $FOLDER | |
yt-dlp --flat-playlist -i --print-to-file url playlist.txt $PLAYLIST |
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 { PrometheusExporter } = require('@opentelemetry/exporter-prometheus'); | |
const { MeterProvider } = require('@opentelemetry/metrics'); | |
const { Resource } = require('@opentelemetry/resources'); | |
// Add your port and startServer to the Prometheus options | |
const options = {port: 9464, startServer: true}; | |
const exporter = new PrometheusExporter(options); | |
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
{ | |
"main": { | |
"name": "express", | |
"ecosystem": "npm", | |
"repository": "https://github.com/expressjs/express" | |
}, | |
"librariesio": { | |
"name": "express", | |
"platform": "NPM", | |
"description": "Fast, unopinionated, minimalist web framework", |
Lately I came back into Javascript development. Although my preferred language is still Go there is the undeniable fact that JavaScript is a tool used by many modern platforms. As per request by Mr. Goern here are my lessons learned. Please comment and fill in.
I’m on a Mac and use iTerm and VSCode. I’m not going to argue about these choices.
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
oc login -u system:admin | |
cat <<-EOF > /Users/mdl/tmp/pv.yaml | |
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: pv0001 | |
spec: | |
capacity: | |
storage: 1Gi |
https://github.com/openshift/origin/blob/master/docs/cluster_up_down.md
$ brew update
$ brew install --devel openshift-cli
# add 172.30.0.0/16 to the insecure registries
$ docker-machine ssh
oc new-project mdl
oc new-build https://github.com/openshift-s2i/s2i-aspnet
oc new-app sabre1041/s2i-aspnet~https://github.com/openshift-s2i/s2i-aspnet-example --context-dir=app --name=aspnet-app
oc expose service aspnet-app
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
export OPENSHIFT_DEV_CLUSTER=true | |
export OPENSHIFT_NUM_MINIONS=1 | |
vagrant up | |
Bringing machine 'master' up with 'virtualbox' provider... | |
Bringing machine 'minion-1' up with 'virtualbox' provider... | |
==> master: Importing base box 'fedora_deps'... | |
==> master: Matching MAC address for NAT networking... | |
==> master: Setting the name of the VM: origin_master_1467065804327_11350 | |
==> master: Fixed port collision for 22 => 2222. Now on port 2200. |