Skip to content

Instantly share code, notes, and snippets.


Reda NOUSHI noushi

  • EDC4IT
  • EMEA Literally
View GitHub Profile
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

My Openshift Cheatsheet

Examine the cluster quota defined for the environment:

$ oc describe AppliedClusterResourceQuota

Install pkgs using yum in a Dockerfile

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 ""
noushi / sysctl.conf
Created Nov 8, 2018 — forked from voluntas/sysctl.conf
Sysctl configuration for high performance
View sysctl.conf
# Increase size of file handles and inode cache
fs.file-max = 2097152
# Do less swapping
vm.swappiness = 10
vm.dirty_ratio = 60
vm.dirty_background_ratio = 2
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

You can’t perform that action at this time.