Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Riedmann mriedmann

View GitHub Profile
View oc-mirror-bug.md
oc image mirror -a pull-secret.txt --keep-manifest-list=true registry.redhat.io/openshift4/ose-elasticsearch-operator@sha256:882fff755fb513b7af659e5b47643bffe9d2ce9d492e208bbc4aa9b390570310=mirror.lab.example.com:5000/openshift4/ose-elasticsearch-operator
mirror.lab.example.com:5000/
  openshift4/ose-elasticsearch-operator
    blobs:
      registry.redhat.io/openshift4/ose-elasticsearch-operator sha256:82a8f4ea76cb6f833c5f179b3e6eda9f2267ed8ac7d1bf652f88ac3e9cc453d1 1.561KiB
      registry.redhat.io/openshift4/ose-elasticsearch-operator sha256:5caacc3f346e3cae733746c1d97e5b259333610acb9977953c8193646d61b65c 5.521KiB
      registry.redhat.io/openshift4/ose-elasticsearch-operator sha256:5808abd2c28ac0118bd858443443074e64a1819defecfaffd8b64f34e492fcf0 3.339MiB
      registry.redhat.io/openshift4/ose-elasticsearch-operator sha256:9f932d1a696e1cb4b35e1ac5e48b96a55a9b30abdbd11d312fd6e52ec5ead728 7.858MiB
      registry.redhat.io/openshift4/ose-elasticsearch-operator sha256:68b2a20998ac18623266c87e0ad6297e00a080
@mriedmann
mriedmann / update.sh
Created Mar 26, 2020
humhub-docker update script
View update.sh
#!/bin/bash
set -eo pipefail
CUR_VERSION=$(grep 'ARG HUMHUB_VERSION=' Dockerfile | tr "=" "\n" | tail -n 1)
NEW_VERSION=${NEW_VERSION:-$(curl -s https://api.github.com/repos/humhub/humhub/releases | jq -r '.[0] | .name')}
if [ "$CUR_VERSION" == "$NEW_VERSION" ]; then
echo "no update needed"
exit 0
View MarsClock.py
import re
import sys
import os
from pprint import pprint
import logging
import unittest
from parameterized import parameterized
if 'DEBUG' in os.environ:
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG, format='[%(levelname)s] %(message)s')
View openshift-splitter.py
#!/usr/bin/python3
from yaml import load, dump
import os, sys, re, glob
try:
from yaml import CLoader as Loader, CDumper as Dumper
except ImportError:
from yaml import Loader, Dumper
@mriedmann
mriedmann / check-iss.sh
Last active May 29, 2019
Test Keycloak with Linux CLI
View check-iss.sh
#!/bin/bash
PROTO=http
#PROTO=https
HOST=172.17.0.3:8080
HOST_HEADER=test.blub
PROTO_HEADER=http
#HOST=kc-test.loopback
JWT=$(curl -k \
-H "Host: $HOST_HEADER" \
-H "X-Forwarded-Proto: $PROTO_HEADER" \
View keybase.md

Keybase proof

I hereby claim:

  • I am mriedmann on github.
  • I am mriedmann (https://keybase.io/mriedmann) on keybase.
  • I have a public key ASCZvJHt4pWxxdLcNFteHHN0-z_QD_AO7NJp3waoUC5vkAo

To claim this, I am signing this object:

@mriedmann
mriedmann / gist:70e7950abbb8efa11c71
Created Jun 7, 2015
Setup TheForeman With Saltstack
View gist:70e7950abbb8efa11c71
yum install ruby193-rubygem-foreman_proxy_salt
yum install rubygem-smart_proxy_salt
curl -L https://bootstrap.saltstack.com -o /tmp/install_salt.sh
sudo sh /tmp/install_salt.sh -M git v2015.5.2
rm /tmp/install_salt.sh