Skip to content

Instantly share code, notes, and snippets.

View jboxman's full-sized avatar

Jason Βoxman jboxman

View GitHub Profile
@jboxman
jboxman / index.adoc
Last active July 29, 2021 16:15
YAML ellipsis
Today
apiVersion: config.openshift.io/v1
kind: Scheduler
metadata:
  name: cluster
...
spec:
  defaultNodeSelector: node-role.kubernetes.io/app= (1)
@jboxman
jboxman / validate-yamls.txt
Created July 10, 2021 03:12
Output from validating YAMLs
Scanning /Users/jasonb/Self/work/openshift-docs/welcome/index.adoc
Scanning /Users/jasonb/Self/work/openshift-docs/welcome/learn_more_about_openshift.adoc
Scanning /Users/jasonb/Self/work/openshift-docs/welcome/oke_about.adoc
Scanning /Users/jasonb/Self/work/openshift-docs/welcome/legal-notice.adoc
Scanning /Users/jasonb/Self/work/openshift-docs/whats_new/new-features.adoc
Scanning /Users/jasonb/Self/work/openshift-docs/whats_new/deprecated-features.adoc
Scanning /Users/jasonb/Self/work/openshift-docs/getting_started/accessing-your-services.adoc
Scanning /Users/jasonb/Self/work/openshift-docs/getting_started/scaling-your-cluster.adoc
Scanning /Users/jasonb/Self/work/openshift-docs/getting_started/deleting-your-cluster.adoc
Scanning /Users/jasonb/Self/work/openshift-docs/getting_started/dedicated-networking.adoc
@jboxman
jboxman / ornot.adoc
Last active March 1, 2021 18:56
Specify me - these are not part of a procedure
Cluster Network Operator YAML configuration
name: <name> (1)
namespace: <namespace> (2)
rawCNIConfig: '{ (3)
  ...
}'
type: Raw
@jboxman
jboxman / ocp46-apis.txt
Created October 21, 2020 16:52
The API resources in OCP 4.6
NAME SHORTNAMES APIGROUP NAMESPACED KIND
bindings true Binding
componentstatuses cs false ComponentStatus
configmaps cm true ConfigMap
endpoints ep true Endpoints
events ev true Event
limitranges limits true LimitRange
namespaces ns false Namespace
nodes no false
@jboxman
jboxman / callouts.adoc
Created October 8, 2020 04:17
code block variables
  1. To create the object, enter the following command.

    $ oc apply -f <egressips_name>.yaml (1)
    1. Replace <egressips_name> with the name of the object.

@jboxman
jboxman / index.md
Last active July 22, 2020 00:29
verify multicast

First enable multicast for default netnamespace. (OpenShift SDN)

apiVersion: v1
kind: Pod
metadata:
  name: mserver
  labels:
    app: mserver
spec:
@jboxman
jboxman / resources.yaml
Last active July 6, 2020 21:04
OCP 4.4.3
- name: Authorization APIs
resources:
- kind: LocalResourceAccessReview
group: authorization.openshift.io
version: v1
- kind: LocalSubjectAccessReview
group: authorization.openshift.io
version: v1
- kind: ResourceAccessReview
group: authorization.openshift.io
@jboxman
jboxman / resources-443.yaml
Last active June 9, 2020 01:29
OCP resource groups
- name: Workloads APIs
resources:
- name: CronJob
group: batch
version: v1beta1
- name: DaemonSet
group: apps
version: v1
- name: Deployment
group: apps

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Malesuada fames ac turpis egestas integer eget. Rhoncus urna neque viverra justo nec ultrices dui. Faucibus nisl tincidunt eget nullam non nisi est sit. Lorem ipsum dolor sit amet change adipiscing elit pellentesque. Quis risus sed vulputate odio ut. Mi eget mauris pharetra et ultrices neque ornare aenean. Facilisi morbi tempus iaculis urna id volutpat lacus laoreet non. Tempor orci eu lobortis elementum nibh. Vitae elementum curabitur words nunc sed velit. A diam maecenas sed enim ut. Tellus orci ac auctor augue in here augue neque. Et sollicitudin ac orci phasellus egestas tellus rutrum. Nulla porttitor massa id neque.

@jboxman
jboxman / index.js
Created March 13, 2018 01:42
Set XMP-digiKam:Color label
const fs = require('fs');
const readline = require('readline');
const path = require('path');
const { spawnSync } = require('child_process');
// Ran 20180206 successfully
process.exit(0);
// exiftool -r -m -n -if '$Orientation != 1' -p '$Directory/$FileName' . -ext xmp -ext jpg > /tmp/imagefiles.txt
const stream = readline.createInterface({