Skip to content

Instantly share code, notes, and snippets.


Reda NOUSHI noushi

  • EDC4IT
  • EMEA Literally
View GitHub Profile

My Openshift Cheatsheet

Examine the cluster quota defined for the environment:

$ oc describe AppliedClusterResourceQuota

Install pkgs using yum in a Dockerfile

noushi /
Created May 16, 2018 — forked from andreicristianpetcu/
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file


First one found from of

sudo yum-config-manager --add-repo
sudo yum -y install libvirt-daemon-kvm libvirt-client vagrant gcc-c++ make libstdc++-devel libvirt-devel
sudo systemctl enable --now libvirtd
vagrant plugin install vagrant-libvirt
sudo usermod -a -G libvirt $( id -un )
noushi / instructions.adoc
Created Oct 9, 2020 — forked from thoraxe/instructions.adoc
Temporary OpenShift GPU demo docs
View instructions.adoc

GPU demos with OpenShift using Caffe2


The RHPDS catalog item you provisioned is a single-node OpenShift environment that is backed by an Amazon P-type EC2 instance which has 1 NVIDIA GPU. It is a 100% vanilla/standard OpenShift Container Platform 3.10 installation. Post-install, there were a few additional things done consuming Ansible content from the

noushi / znp
Created Jul 7, 2020 — forked from erikw/znp
znp: Wrap shell command in ZFS pre-post snapshots and log outputs.
View znp
#!/usr/bin/env bash
# Runs a command wrapped in ZFS pre-post snapshots. The whole data pool is recursively snapshotted.
# Analogous to my snp script for BTRFS:
# Usage: $ znp <commands>
# e.g.: $ znp pgk upgrade
# e.g.: $ znp portmaster -aG
# e.g.: $ znp freebsd-upgrade install
kvm -smp 2 \
-m 4096 \
-cpu host \
-M q35 \
-drive if=pflash,format=raw,readonly,file=/usr/share/OVMF/OVMF_CODE.fd \
View Kerberos + Apache + SVN HOWTO
Kerberos + Apache + SVN
I did this on Ubuntu server 10.10. Based on this:
1) Make sure the server has appropriate DNS info, e.g.: (/etc/hosts) localhost ubuntu
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:


start new with session name:

POD=$( oc get pod -n glusterfs | grep heketi | cut -f1 -d' ' )
eval $(oc rsh $POD set | grep -i heketi )
oc rsh $POD heketi-cli --server $SERVER --user admin --secret $HEKETI_ADMIN_KEY
View memcached_operator.go
package memcached
import (
cachev1alpha1 ""
appsv1 ""