Skip to content

Instantly share code, notes, and snippets.

@kibitzk
kibitzk / openshift-cheatsheet.md
Created September 1, 2021 20:57 — forked from rafaeltuelho/openshift-cheatsheet.md
My Openshift Cheatsheet

My Openshift Cheatsheet

Openshift build secrets for cloning git repos using SSH Keys

  • To create ssh secret:
oc create secret generic sshsecret \
    --from-file=ssh-privatekey=$HOME/.ssh/id_rsa
@kibitzk
kibitzk / tmux-cheatsheet.markdown
Created January 14, 2017 13:11 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@kibitzk
kibitzk / server.sh
Created January 14, 2017 13:10 — forked from MohamedAlaa/server.sh
osx computer info in terminal
#!/bin/bash
echo "--------------------------------------------------------------------------------"
uname -a
echo "--------------------------------------------------------------------------------"
MEMORY=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $1 $2 $3}'`
echo "$MEMORY"
echo "--------------------------------------------------------------------------------"
CORES_COUNT=`sysctl hw.ncpu | awk '{print $2}'`
echo "CPU"
sysctl -n machdep.cpu.brand_string
def self.parse_config(file)
config = {}
File.open(file).each_line do |line|
line.strip!
# skip comments
next if /^\#/.match(line)
# skip empty lines
next if /^\s*$/.match(line)