Skip to content

Instantly share code, notes, and snippets.

View noushi's full-sized avatar

Reda NOUSHI noushi

  • EDC4IT
  • EMEA Literally
View GitHub Profile
@noushi
noushi / ansible-summary.md
Created May 16, 2018 14:29 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

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

Configuration file

intro_configuration.html

First one found from of

My Openshift Cheatsheet

Examine the cluster quota defined for the environment:

$ oc describe AppliedClusterResourceQuota

Install pkgs using yum in a Dockerfile

  • Manage OpenShift Container Platform
    • Use the web console to manage and configure an OpenShift cluster
    • Use the command-line interface to manage and configure an OpenShift cluster
    • Query, format, and filter attributes of Kubernetes resources
    • Import, export, and configure Kubernetes resources
    • Locate and examine container images
    • Create and delete projects
    • Examine resources and cluster status
    • View logs
  • Monitor cluster events and alerts
autocmd FileType yaml setlocal ai et ts=2 sw=2 cursorcolumn cursorline
@noushi
noushi / .vimrc
Created December 1, 2022 14:55 — forked from millermedeiros/.vimrc
My VIM settings (.vimrc)
" =============================================================================
" Miller Medeiros .vimrc file
" -----------------------------------------------------------------------------
" heavily inspired by: @factorylabs, @scrooloose, @nvie, @gf3, @bit-theory, ...
" =============================================================================
" -----------------------------------------------------------------------------
" BEHAVIOR
#define USE_RDTSC 1

static inline unsigned long long rdtsc(void) {
    unsigned long long r;
    __asm__ __volatile__ ("rdtsc\n"
                          "shl $32,%%rdx\n"
                          "or %%rdx,%%rax\n"
                          "movq %%rax,%0" : "=r"(r) : : "edx", "eax", "rdx", "rax");
 return r;
@noushi
noushi / main.tf
Created January 26, 2022 16:23 — forked from smford22/main.tf
terraform GCP remote exec
/*
This is a test server definition for GCE+Terraform for GH-9564
*/
provider "google" {
project = "${var.project}" // Your project ID here.
region = "${var.region}"
}
resource "google_compute_firewall" "gh-9564-firewall-externalssh" {
#!/bin/sh
sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.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 )