Skip to content

Instantly share code, notes, and snippets.

View misanche's full-sized avatar

Mikel Sanchez Herrero misanche

View GitHub Profile
@rafaeltuelho
rafaeltuelho / openshift-cheatsheet.md
Last active April 4, 2024 13:03
My Openshift Cheatsheet

My Openshift Cheatsheet

Project Quotes, Limits and Templates

  • Cluster Quota
oc create clusterquota env-qa \
    --project-label-selector environment=qa \
    --hard pods=10,services=5
    
oc create clusterquota user-qa \
@yorammi
yorammi / 2repos-sync.sh
Last active January 11, 2024 07:25
Sync 2 remote repositories script - Just define the 3 variables (use export command for that!)
#!/bin/bash
# REPO_NAME=<repo>.git
# ORIGIN_URL=git@<host>:<project>/$REPO_NAME
# REPO1_URL=git@<host>:<project>/$REPO_NAME
rm -rf $REPO_NAME
git clone --bare $ORIGIN_URL
if [ "$?" != "0" ]; then
echo "ERROR: failed clone of $ORIGIN_URL"
@slavniyteo
slavniyteo / crt-load.sh
Created December 28, 2017 09:54
Download TLS certificate from server
#!/bin/sh
#================== Load certificate from server ===============================
HOST_NAME="${HOST_NAME:-google.com}"
SERVER_NAME="${SERVER_NAME:-${HOST_NAME}}"
PORT="${PORT:-443}"
FORMAT="${FORMAT:-PEM}" # DER|PEM|NET see `man x509`
FILE_NAME="${FILE_NAME}" # Filename into /usr/local/share/ca-certificates