Skip to content

Instantly share code, notes, and snippets.

View johnarok's full-sized avatar

johnarok

View GitHub Profile
@johnarok
johnarok / xrandr-cheatsheet.md
Created January 6, 2019 00:00
xrandr-cheatsheet
xrandr --output Virtual1 --mode 1440x900 
xrandr --output eDP1 --scale 1.25x1.25 # gist
xrandr --output Virtual1 --dpi 166 #optional
@johnarok
johnarok / terminal-cheatsheet.md
Created January 6, 2019 03:30
terminal-cheatsheet

Screentshot scrot -q 90 -s destination.jpg

@johnarok
johnarok / k8s-ubuntu-containerd-cilium.md
Last active February 16, 2019 19:19
k8s-ubuntu-containerd-cilium

Install System Packages

apt-get update && apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF
apt-get update && apt-get install -y kubelet=1.13.3-00 kubeadm=1.13.3-00  kubectl=1.13.3-00
@johnarok
johnarok / k8s-centos7-containerd-cilium.md
Last active March 26, 2019 16:25
k8s-centos7-containerd-cilium
setenforce 0
sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config
systemctl stop firewalld
systemctl disable firewalld
yum install wget
cp /home/vagrant/CACerts/* /etc/pki/ca-trust/source/anchors/
@johnarok
johnarok / filewatchers.txt
Last active March 1, 2019 15:39
K8S-Misc
File watchers
find /proc/*/fd -type l -lname '*inotify' -print 2>/dev/null \
> | cut -d / -f 3 | (while read pid; do ps --no-headers -p $pid -o user,command; done) \
> | sort | uniq -c
1 dbus /bin/dbus-daemon
2 polkitd /usr/lib/polkit-1/polkitd
1 root /usr/bin/abrt-watch-log
5 root /usr/bin/kubelet
@johnarok
johnarok / gist:fcf823fe296b465401fcbedd39e48217
Created December 10, 2024 00:58
c4 model data platform
workspace {
model {
# People/Actors
businessUser = person "Business User" "Consumes data insights and reports"
dataEngineer = person "Data Engineer" "Develops and maintains data pipelines"
dataScientist = person "Data Scientist" "Develops ML models and performs advanced analytics"
dataAnalyst = person "Data Analyst" "Performs data analysis and creates reports"
group "Data Platform" {
# Software Systems - External