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:

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

noushi / gist:3dddf23debfe4ed672bd11d79d61c214
Last active Apr 26, 2018 — forked from jeremypruitt/gist:ca62a5cdc95f579713b9
Modified ansible windows remoting script
View gist:3dddf23debfe4ed672bd11d79d61c214
# Configure a Windows host for remote management with Ansible
# -----------------------------------------------------------
# This script checks the current WinRM/PSRemoting configuration and makes the
# necessary changes to allow Ansible to connect, authenticate and execute
# PowerShell commands.
# Set $VerbosePreference = "Continue" before running the script in order to
# see the output messages.
noushi /
Created Nov 9, 2017 — forked from congto/
How to use vagrant-kvm

Install Vagrant

sudo su
apt-get update && apt-get install -y libvirt-dev ruby-all-dev apparmor-utils
curl -O -L
dpkg -i vagrant_1.6.5_x86_64.deb 
aa-complain /usr/lib/libvirt/virt-aa-helper # workaround

Install vagrant-kvm as user