Skip to content

Instantly share code, notes, and snippets.

View noushi's full-sized avatar

Reda NOUSHI noushi

  • Red Hat
  • EMEA Literally
View GitHub Profile
@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
autocmd FileType yaml setlocal ai et ts=2 sw=2 cursorcolumn cursorline
  • 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
@noushi
noushi / benchmark.sh
Created April 17, 2025 13:00 — forked from Darksecond/benchmark.sh
Openssl benchmark script
#!/bin/bash
echo Please make sure the server is running
echo the command is:
echo openssl s_server -WWW
echo and make sure the 1mb file is in the same directory
echo to make the 1mbrf file do:
echo dd if=/dev/urandom of=1mbrf bs=1024 count=1024
echo
echo the following benchmarks each will have run 50 times
echo
@noushi
noushi / NioTcpClient.java
Created July 1, 2025 15:35 — forked from sturgle/NioTcpClient.java
A java nio tcp client. Keep it here as notes.
// TCP Client (Java NIO)
// A minimalistic Java NIO TCP client. Stays always connected. Disconnects and reconnects on any exception in the event handlers (onConnect, onDisconnect, onRead).
package net.bobah.nio;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.ReadableByteChannel;