Skip to content

Instantly share code, notes, and snippets.

View jakoberpf's full-sized avatar

Jakob Boghdady jakoberpf

View GitHub Profile
@jakoberpf
jakoberpf / CKAD command tips.md
Created July 8, 2023 11:13
CKAD command tips.md

Some tips and common pitfalls for the CKAD exam.

auto shell configuration

Note: I am currently not sure if this would be allowed in the exam, as this is an external ressource.

# curl -s https://gist.github.com/6e3acd88f2f88394ad88e2dff1d8e530 | sh
@jakoberpf
jakoberpf / CKAD shell setup.md
Last active July 8, 2023 11:13
CKAD shell setup.md
alias k=kubectl
alias kn='k config set-context --current --namespace'
alias kall='k get all -o wide --show-labels'
alias kc='k config get-contexts'

export do='--dry-run=client -o yaml'
export now='--force --grace-period 0'
@jakoberpf
jakoberpf / [manual] backblaze windows vm setup.md
Created April 8, 2022 17:08
Manual guide in setting up a windows vm on proxmox with an ceph filesystem client

[secret] backblaze windows vm setup

This is a WIP guide on how to setup a proxmox virtual machine with windows 10 or 11 to be used as backblaze backup client.

Create Windows 10/11 Proxmox VM Guide

Notes

  • Use the english installer since the german does have issues with the virtuo drivers
# [cheatsheet] networking/ports troubleshooting
```bash
apt install net-tools
netstat -tulpn
```
## Sources
[cyberciti.biz](https://www.cyberciti.biz/faq/what-process-has-open-linux-port/)

[guide] keycloak authentication for proxmox

How to setup Proxmox to use Keycloak as authentication realm.

Proxmox Setup

root@proxmox:/etc/pve# cat domains.cfg
pam: pam
        comment Linux PAM standard authentication

[troubleshooting] Ubuntu desktop freezing with raspberry pi

According to https://bugs.launchpad.net/ubuntu/+source/linux-raspi/+bug/1946368, this is a known bug on some Ubuntu kernel versions. Commonly, this issue happens when using high resolution screens (higher than 1920×1080@60Hz). Some users report this issue also playing high resolution videos and/or dragging applications to the sidebar. However, I found this problem happening in my Raspberry PI 4 model B even if simply browsing simple pages…

The issue comes from the default KMS, which appears to be unstable on Raspberry PI hardware. The workaround is enabling a “fake” KMS version, which limits the number of functions available for video output but avoids freezing.

Another problem that gets Ubuntu Desktop freezing on Raspberry PI comes with the USB power management module from recent kernels. It is a best practice to suspend devices (or part of them) when they are not used (idle mode). But with Raspberry PI and Ubuntu sometimes happens that, pluggi

@jakoberpf
jakoberpf / [manual] create erasure-coding ceph filesystem pool.md
Last active January 20, 2022 09:22
Cheatsheet how to setup a erasure coding pool, add it to a ceph filesystem and configure files/directories to use the ec pool.

[manual] create erasure-coding ceph filesystem pool

Cheatsheet how to setup a erasure coding pool, add it to a ceph filesystem and configure files/directories to use the ec pool.

root@ceph:~$ ceph osd erasure-code-profile set ec-62-profile k=6 m=2 crush-failure-domain=osd crush-device-class=hdd
root@ceph:~$ ceph osd pool create glacier_data_ec-62 erasure ec-62-profile
root@ceph:~$ ceph osd pool set glacier_data_ec-62 allow_ec_overwrites true
root@ceph:~$ ceph osd pool application enable glacier_data_ec-62 cephfs
root@ceph:~$ ceph fs add_data_pool glacier glacier_data_ec-62
@jakoberpf
jakoberpf / [manual] ceph client setup.md
Last active January 19, 2022 22:00
Cheatsheet for setting up a new ceph client

[manual] ceph client setup

Cheatsheet for setting up a new ceph client

Gather key and config

From any autheticated ceph host/client.

root@ceph:~$ ceph auth get-or-create client.fs
@jakoberpf
jakoberpf / [troubleshooting] macOS M1 minikube network issue.md
Created January 18, 2022 09:24
how to fix minikube start docker network issue on macOS M1

[troubleshooting] macOS M1 minikube network issue

When starting minikube, we see a docker network related error.

Issue

$ minikube start
😄  minikube v1.24.0 auf Darwin 12.0.1 (arm64)
✨  Automatically selected the docker driver
@jakoberpf
jakoberpf / [script] add host to hosts file
Created January 5, 2022 15:47
Add a new host to the /etc/hosts file
#!/bin/bash
# insert/update hosts entry
ip_address="192.168.x.x"
host_name="my.hostname.example.com"
# find existing instances in the host file and save the line numbers
matches_in_hosts="$(grep -n $host_name /etc/hosts | cut -f1 -d:)"
host_entry="${ip_address} ${host_name}"
echo "Please enter your password if requested."