Skip to content

Instantly share code, notes, and snippets.

View mrWinston's full-sized avatar

Marius Schulz mrWinston

  • Red Hat
  • Rostock, Germany
View GitHub Profile
@mrWinston
mrWinston / show_tomcat7_log_journal
Created March 9, 2017 11:50
Show Tomcat logs with journalctl #tomcat #ubuntu #log #debug #test
sudo journalctl -fn 500 -u tomcat7
@mrWinston
mrWinston / django_db_postgres_settings.py
Last active August 2, 2017 11:09
Django Postgres db settings #django #db #python #settings
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': '<DATABASE NAME>',
'USER': '<username >',
'PASSWORD': '<pw>',
'HOST': '<DNS or IP of postgres server>',
'PORT': '<Port of PSQL server>',
}
}
@mrWinston
mrWinston / goaccess_nginx_html
Created August 14, 2017 21:06
nginx log analyze with goaccess #log #operations #utility #stuff
cat access.* | goaccess -a -o ./report.html --log-format COMBINED
https://github.com/jessfraz/dockerfiles.git 8ff991327fd1c68369c2fb576215d0eabffca0e1
https://github.com/vimagick/dockerfiles.git f816cb6185a317ad193eff6bfa0456a324c80f1b
https://github.com/zabbix/zabbix-docker.git 29e6597c058dd8fe0531fbd584a4ee607ce87a5d
https://github.com/RedHatOfficial/openemr-kube.git 34ded74462c28b8268f18ec49cba14a98ee6768d
https://github.com/app-sre/qontract-reconcile.git 30af65af14a2dce962df923446afff24dd8f123e
https://github.com/app-sre/container-images.git c260deaf135fc0efaab365ea234a5b86b3ead404
https://github.com/google/fuzzbench.git d51da57c211af226dd7854085d9fc80070205738
https://github.com/kubernetes-sigs/cluster-api-provider-azure.git e101b68afe8ad95aafbf0843ce02ebc77122ac06
https://github.com/kubernetes-sigs/kubespray.git d9d29af87f724df5e01ffa72464e7fb08fb882cc
https://github.com/kubernetes-sigs/cluster-api-provider-nested.git 52f708b6b9d8f6a30e082bc5d80bbe1ba9d0368a
https://github.com/kubernetes-sigs/cluster-api-provider-openstack.git edea56989af0d0f46e9cece586d943d7bccf26d1
https://github.com/kubernetes-sigs/prometheus-adapter.git 407217728b9981b7a39c8cfb83004dd3a351c4ea
https://github.com/kubernetes-sigs/apiserver-network-proxy.git 6f3de56514e8b56b99da7d537026245b314d259b
https://github.com/RedHatOfficial/openemr-kube.git 34ded74462c28b8268f18ec49cba14a98ee6768d
https://github.com/app-sre/qontract-reconcile.git 30af65af14a2dce962df923446afff24dd8f123e
https://github.com/app-sre/container-images.git c260deaf135fc0efaab365ea234a5b86b3ead404
https://github.com/google/fuzzbench.git d51da57c211af226dd7854085d9fc80070205738
https://github.com/kubernetes-sigs/cluster-api-provider-azure.git e101b68afe8ad95aafbf0843ce02ebc77122ac06
https://github.com/kubernetes-sigs/kubespray.git d9d29af87f724df5e01ffa72464e7fb08fb882cc
https://github.com/kubernetes-sigs/cluster-api-provider-nested.git 52f708b6b9d8f6a30e082bc5d80bbe1ba9d0368a
https://github.com/kubernetes-sigs/cluster-api-provider-openstack.git edea56989af0d0f46e9cece586d943d7bccf26d1
https://github.com/kubernetes-sigs/prometheus-adapter.git 407217728b9981b7a39c8cfb83004dd3a351c4ea
https://github.com/kubernetes-sigs/apiserver-network-proxy.git 6f3de56514e8b56b99da7d537026245b314d259b
#/bin/bash
set -euo pipefail
monitoringPodList="$(oc -n openshift-monitoring get pods)"
firstDelete=(
"openshift-monitoring/alertmanager-main-0"
"openshift-monitoring/prometheus-k8s-0"
"openshift-monitoring/$(echo "$monitoringPodList" | grep "grafana" | awk '{print $1}')"
"openshift-monitoring/$(echo "$monitoringPodList" | grep "telemeter-client" | awk '{print $1}')"
@mrWinston
mrWinston / gist:0be99889d14cd1003411e8500d0f9103
Last active August 2, 2022 07:43
Create and remove a temp file in a bash script
#!/bin/bash
tmpfile="$(mktemp)"
# Make sure the temp directory gets removed on script exit.
trap "exit 1" HUP INT PIPE QUIT TERM
trap rm -rf EXIT
@mrWinston
mrWinston / prbody.md
Created August 3, 2022 07:07
Simple Pull Request Template

PR Title

Fixes: OSD-12345

  • Explain what
  • the PR does
  • To the code.
  • What problems does it solve

Testing instructions

@mrWinston
mrWinston / readme.md
Last active December 5, 2022 15:21
Run osde2e tests locally

How to run the osde2e tests locally

This short guide shows you how to setup the e2e tests on your local machine. We won't go into detail on how all of the e2e stuff works, as this is covered in great detail in the osde2e documentation itelf. Instead, i'll just focus on the steps I took to get them running locally, without too many tangents.

Prerequisites

  1. Fork and clone the osde2e test repo: gh.com/openshift/osde2e
  2. Make sure you have an osd cluster ready
  3. golang version 1.16+