Posts by Category

Posts by Year Posts by Tags Posts by Categories

EN

HowTo - Split PDFs in separate files

less than 1 minute read

# all pages as separate files $ pdfseparate input.pdf output-page%d.pdf # page 1-5 as separate files $ pdfseparate -f 1 -l 5 input.pdf output-page%d.pdf ...

k8s - HowTo - RBACs (WIP)

2 minute read

Definition RBAC - Role Based Access Control <SUBJECT> - “who wants access” Users are global humans processes that live outsi...

HowTo - Convert Audible Files (aax) to mp3

less than 1 minute read

Prerequisites audible-activator AAXtoMP3 install the programms from above in the prefered way for you system. Let’s get started Get “AUTHCODE” from ...

Video - Key to SRE

less than 1 minute read

Excerpt (WIP) define written SLAs, SLOs for every service (and measure it!) Use error budgets as your launch criterea teams are self-policing - becaus...

VScode Cheatsheet / Hacks

less than 1 minute read

Overview This is a Cheatsheet for some VScode hacks Prerequisite vscode Cheatsheet # Edit all occurences - Select text - [CTRL] + [SHIFT] + [L] # Mult...

GIT - copy files from other branch

less than 1 minute read

Overview This is a HowTo for copying files from a <SOURCE-BRANCH> into the current one. Prerequisite git Do it checkout the <CURRENT-BRANCH>...

GIT - open PR with CLI

less than 1 minute read

Install Tool “hub” e.g. for ARCH Linux: yay -S hub SSH instead of git protocol $ git config --global hub.protocol ssh Open PR on Github hub pull-request ...

FIX - VScode terminal font issues

less than 1 minute read

Problem I had the issue by using oh-my-ZSH with powerline fonts, that some chars are not rendered correctly in the VScode integrated Terminal Solution

GIT - colored log with graph

less than 1 minute read

Overview Colored output of the git log with a (kind of) graph Prerequisite git HowTo git log --graph --decorate --pretty=oneline --abbrev-commit

GIT - clone all repos at once

less than 1 minute read

Overview This is a HowTo for batch cloning all Repos of an User / Organization at once. Prerequisite having an <API-TOKEN> on Github for private Re...

SAILFISH - borg backup

less than 1 minute read

Overview This is a HowTo for installing & setting up borg backup on a Sailfish device. (in my case: a Sony Xperia XA2 ) Prerequisite wget should be i...

GIT - autosign commits with GPG key

less than 1 minute read

Overview This is a HowTo for setting up git for signing your commits auto-magic-ly with your GPG key. Prerequisite having a GPG-Key Do it get GPG key I...

ZSH

less than 1 minute read

https://github.com/robbyrussell/oh-my-zsh https://stackoverflow.com/questions/28491458/zsh-agnoster-theme-showing-machine-name

ZSH for Mac

less than 1 minute read

Link: http://sourabhbajaj.com/mac-setup/iTerm/zsh.html ##

VBOX - use a physical harddrive as disk

less than 1 minute read

Links https://web.archive.org/web/20180403231016/https://www.serverwatch.com/server-tutorials/using-a-physical-hard-drive-with-a-virtualbox-vm.html htt...

Tunneling / Port Forwarding

2 minute read

Introduction 1. local: -LSpecifies that the given port on the local (client) host is to be forwarded to the given host and port on the remote side. ss...

Tools

less than 1 minute read

lens: https://github.com/lensapp/lens GUI for k8s clusters bat: https://github.com/sharkdp/bat a cat clone with syntax highlighting Gatlin: https:/...

Terraform

less than 1 minute read

Tools: Terraforming: https://github.com/dtan4/terraforming create terraformfiles from existing Setup for “Reverse” Engineering an alread...

SALT - Pillars

less than 1 minute read

Weblinks https://github.com/saltstack/salt/issues/32144

RPI - GPIO Layout

less than 1 minute read

Links https://www.raspberrypi.org/documentation/usage/gpio/ http://raspberrypiguide.de/howtos/raspberry-pi-gpio-how-to/ https://de.pinout.xyz/ ht...

RPI - Breadboard

less than 1 minute read

Links https://tutorials-raspberrypi.de/raspberry-pi-gpio-erklaerung-beginner-programmierung-lernen/ https://www.datenreise.de/raspberry-pi-wie-verwen...

RPI - Accessoires

less than 1 minute read

RPI - Accessoires https://www.amazon.de/Widerstand-Sortiment-EFANTUR-Stk-Widerst%C3%A4nde/dp/B077VJFF2N/ref=pd_sim_107_5?_encoding=UTF8&psc=1&ref...

RPG - Online Char Sheet

less than 1 minute read

Websites, Online Generators for RPG Character Sheets Links: https://github.com/zombieFox/awesomeSheet

SSH - Proxies und Jumphosts

1 minute read

Passing through a gateway or two A useful trick is „ssh -tt“ which forces tty allocation, so instead of the above you can do the following, connecting to ...

OSX - tinc

less than 1 minute read

Links https://github.com/kites/kites-tinc https://wiki.hamburg.ccc.de/ChaosVPN:MacOSXHowto https://www.tinc-vpn.org/examples/osx-install/

OSX - install on a bootable USB Stick

less than 1 minute read

Download “Install macOS High Sierra.app” from Appstore. it’s Stub File that must download the install data during the install process ...

OSX - encfs

less than 1 minute read

Links https://www.maketecheasier.com/install-encfs-mac/ https://www.maketecheasier.com/mount-encrypted-folder-mac-os-x-encfsgui/

OpenShift

less than 1 minute read

Links https://blog.openshift.com/understanding-service-accounts-sccs/ https://blog.openshift.com/getting-any-docker-image-running-in-your-own-openshift...

OC - Cheat-Sheet

less than 1 minute read

oc adm policy add-scc-to-user anyuid <USER> Links https://blog.openshift.com/getting-any-docker-image-running-in-your-own-openshift-cluster/

NIX - install on Mac

less than 1 minute read

Links: https://robots.thoughtbot.com/install-linux-on-a-macbook-air#what-is-nixos

Minishift

less than 1 minute read

Cheat-Sheet minishift addons enable anyuid # Changes the default security context constraints to allow pods to run with arbitrary UID. minishift ...

MATRIX - reset password (synapse)

less than 1 minute read

SQLite <user>@<host>:/# /usr/local/bin/hash_password Password: Confirm password: $2a$12$q...sp3m <user>@<host>:/# sqlite3 /<PA...

Linux Perfomance analysis

less than 1 minute read

Links https://web.archive.org/web/20170606112846/http://www.brendangregg.com/Slides/LinuxConEU2014_LinuxPerfTools.pdf

GITHUB - Pages

less than 1 minute read

http://www.stephaniehicks.com/githubPages_tutorial/pages/github-intro.htmlhttp://www.stephaniehicks.com/githubPages_tutorial/pages/github-intro.html gh-...

GIT-Magic

less than 1 minute read

Links https://pgi-jcns.fz-juelich.de/pub/doc/git_gitflow.pdf https://gist.github.com/MoOx/64010ce5847276159018794352b8c987 https://matthiasnoback.nl/...

GIT - Sync Fork from upstream Repo

less than 1 minute read

Add the Remote Upstream Repository git remote add upstream [Upstream git URL] Fetch the Upstream Branches git fetch upstream Merge Upstream Changes int...

GIT - Subtrees

less than 1 minute read

Setup git remote add <MY-SUBTREE> git@github.com:<USER>/<SUBPOJECT>.git git subtree add --prefix=<MY-SUBTREE>/ <MY-SUBTREE> ma...

GIT - Rebase (squashing)

2 minute read

When branching off of master or development the changes need to be merged back into the original branch. Let’s say you based your changes on the development...

CI - Publish to Github Pages

less than 1 minute read

Links https://github.com/serde-rs/serde-rs.github.io/issues/7 https://stackoverflow.com/questions/23277391/how-to-publish-to-github-pages-from-travis-c...

GIT - Forking

less than 1 minute read

Links: https://help.github.com/articles/syncing-a-fork/ https://help.github.com/articles/merging-an-upstream-repository-into-your-fork/ https://gist....

GIT - Create a new Branch with no history

less than 1 minute read

this creates a <NEW_BRANCH_NAME> from the current branch, with the last commit as the only commit. (no history) git branch <NEW_BRANCH_NAME> $(e...

GIT - configure upstream repo for a Fork

less than 1 minute read

Links: https://help.github.com/articles/configuring-a-remote-for-a-fork/ https://medium.com/sweetmeat/how-to-keep-a-downstream-git-repository-current-w...

GIT - Cherry-Pick

less than 1 minute read

Links: http://think-like-a-git.net/sections/rebase-from-the-ground-up/cherry-picking-explained.html

Encrypted remote backups with SSHFS and LUKS

less than 1 minute read

Links https://ruderich.org/simon/notes/encrypted-remote-backups https://security.stackexchange.com/questions/61104/encrypted-offsite-storage-using-sshf...

DOCKER - SSH and Gogs

less than 1 minute read

Links: https://web.archive.org/web/20161017143411/http://www.ateijelo.com/blog/2016/07/09/share-port-22-between-docker-gogs-ssh-and-local-system

DOCKER - save vs. export

less than 1 minute read

Link: https://web.archive.org/web/20170625175849/http://tuhrig.de/difference-between-save-and-export-in-docker/

DOCKER - minimum image

less than 1 minute read

Links: https://blog.cloud66.com/how-to-create-the-smallest-possible-docker-image-for-your-golang-application/

DOCKER - Logging

less than 1 minute read

Logspout Log forwarder which can use the docker socket https://github.com/gliderlabs/logspout

DOCKER - Cheatsheet

less than 1 minute read

deletes old containers and images docker ps -a | grep "Exit-Created" | cut -d ' ' -f 1 | xargs sudo docker rm; docker images | grep "<none>" | awk '{...

SALT - Creating hashed passwords

less than 1 minute read

salt '*' shadow.gen_password 'I_am_password' salt '*' shadow.gen_password 'I_am_password' crypt_salt='I_am_salt' algorithm=sha256 https://docs.saltsta...

CLI-Magic

less than 1 minute read

commandline magic http://steve-parker.org/sh/quickref.shtml

bind mount

less than 1 minute read

Links https://unix.stackexchange.com/questions/198590/what-is-a-bind-mount

AEM - Adobe Experience Manager (6.3)

less than 1 minute read

Collection of curl commands. User Management Change (Admin-)Password: you’ll need jq for this… #!/bin/sh # get USER_PATH from specific user - this diffe...

VM export on VMware Fusion (OSX)

less than 1 minute read

/Applications/VMware Fusion.app/Contents/Library/VMware OVF Tool/ovftool --acceptAllEulas /Users/<USERNAME>/Documents/Virtual\ Machines.localized/<V...

NGINX - Random

less than 1 minute read

Proxy-Redirect: https://www.cyberciti.biz/faq/proxy_redirect-change-replace-location-refresh-response-headers/

CLI - create LVM thinprovisioned Volumes

less than 1 minute read

pvcreate /dev/sda vgcreate vg01_bricks /dev/sda lvcreate -l 100%FREE -T vg01_bricks/lv_thinpool ... mkfs.ext4 /dev/mapper/vg01_bricks-lv_thinpool

FreeBSD - Docker

less than 1 minute read

Links: https://web.archive.org/web/20160415212315/http://www.freenas.org:80/blog/docker-done-right/ https://forums.freebsd.org/threads/62198/

FreeBSD - Tinc

less than 1 minute read

Links: https://web.archive.org/web/20170923110343/https://wiki.openbeelab.org/index.php/Tinc

CLI - explainshell.com

less than 1 minute read

Web tool, that uses the manpages, for visualization of shell commands.

CLI - GPG

less than 1 minute read

Encrypt text in a file echo "<CLEAR-TEXT>" - gpg --encrypt --sign --armor -r <EMAIL/ID> > <PATH-TO-FILE>.gpg

CJDNS - install on Debian 8

less than 1 minute read

#Dependency apt install nodejs build-essential git cd /opt git clone https://github.com/cjdelisle/cjdns.git cd cjdns ./do ln -s /opt/cjdns/cjdroute /usr/bin...

Back to top ↑

DE

RPI - Sensoren

less than 1 minute read

DHT11 / DH22 - Luftfeuchtigkeits-, Temperatur Sensor http://www.uugear.com/portfolio/dht11-humidity-temperature-sensor-module/ https://www.amazon.de/IZ...

RPI - Multiroom-Audio (synchron)

less than 1 minute read

Volumio (mpd) + SpotifyConnect +Snapcast(+ Shariplay) (geht bestimmt auch mit RuneAudio) Features Multiroom-Wiedergabe (synchrone Wiedergabe auf mehreren L...

RPi - Multiroom Audio Server

2 minute read

(datt Ding, wo die Musik reinkommen tut…) Voraussetzung Volumio ist installiert Software nachinstallieren sudo apt-get update sudo apt-get install bu...

RPi - Multiroom Audio Client(s)

less than 1 minute read

(die Dinger, wo die Musik rauskommen tut…) Voraussetzung raspian (Debian 8 minimal) optional: Filesystem vergrößern: apt-get install raspi-config ra...

HOWTO - Gitbook - build static page

less than 1 minute read

Voraussetzungen … Build Hierbei wird eine Statische Seite im Unterordner docs erzeugt. cd <PATH-TO-GITBOOK>/ # Wechsel ins Verzeichnis gitbo...

CLI - Top 10 Prozesse anzeigen lassen

less than 1 minute read

die 10 Prozesse mit der meisten CPU-Load anzeigen lassen (sortiert) ps -Ao user,uid,comm,pid,pcpu,tty --sort=-pcpu - head -n 10

CLI - tar mit Progressbar

less than 1 minute read

mit Hilfe von pv mittels du wird die Größe des Verzeichnisses ermittelt tar -cf - . - pv -s $(du -sb . - awk '{print $1}') - gzip > out.tgz

CLI - Suchen und Löschen in der Konsole

less than 1 minute read

Dieses Vorgehen benutzt man, um bestimmte Dateien zu suchen und gleichzeitig auch zu löschen. Allgemeine Syntax: find <dir-name> <criteria> <...

CLI - Suchen in mehreren Dateien

less than 1 minute read

mit grep: grep -r "<SUCHBEGRIFF-IN-DEN-DATEIEN>" /<PFAD-DER-DURCHSUCHT-WERDEN-SOLL> -r - recursive mit find:

CLI - Schreibmaschine simulieren

less than 1 minute read

echo "You can simulate on-screen typing just like in the movies" - pv -qL 10 -ql 10- gibt an wieviele Zeichen pro Sekunde geschrieben werden sollen

pfSense - LACP & Jumbo Frames

less than 1 minute read

Problem will man die MTU bei einem LAGG-Interface z.b. auf9000setzen, hat man das Problem, dass die MTU bei den LAGG-Mitgliedern (physiche Interfaces) ni...

CLI - PDFs scannen

less than 1 minute read

PDF-Bearbeitung Mit convert können bspw. gescannte Dokumente als PDF gespeichert werden. Die Befehls-Syntax zum einfachen Speichern einer PNG-Datei im PDF-F...

CLI - pbzip2 - parallel packen

less than 1 minute read

geht schneller verbraucht weniger Platz Einpacken: tar vcf myfile.tbz2 --use-compress-prog=pbzip2 dir_to_compress/ ODER

CLI - OS Version anzeigen

less than 1 minute read

Ubuntu cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=9.04 DISTRIB_CODENAME=jaunty DISTRIB_DESCRIPTION="Ubuntu 9.04"

CLI - nur Dateinamen ausgeben

less than 1 minute read

Folgende CLI Magic ermöglicht es aus einem<OUTPUT>/ einem Dateipfad mit variabler Verzeichnistiefe (z.B./irgend/ein/Pfad/zu/einer/<DATEI>.<END...

CLI - Logging im bash skript

less than 1 minute read

folgendes Codeschnipsel am Anfang vom Skript bewirkt, dass die komplette Bildschirmausgabe (auch remote-Sessions) ins Logfile geschrieben wird.

CLI - dd Progressbar

less than 1 minute read

Problem „Ich will einen Fortschritt bei dd sehen“ „Ich will wissen wie weit dd ist und wie lange es noch dauert *ningl* “ Ursache ddbietet bot früh...

CLI - Bash Scripting Grundlagen

3 minute read

Skriptbeispiele. Hier findet Ihr einige Skriptbeispiele aus unseren Trainings und Projekterfahrungen. Mit Bash-Skripten kann man fast alles realisieren, wa...

Back to top ↑

HowTo

HOWTO - Gitbook - build static page

less than 1 minute read

Voraussetzungen … Build Hierbei wird eine Statische Seite im Unterordner docs erzeugt. cd <PATH-TO-GITBOOK>/ # Wechsel ins Verzeichnis gitbo...

CLI - Bash Scripting Grundlagen

3 minute read

Skriptbeispiele. Hier findet Ihr einige Skriptbeispiele aus unseren Trainings und Projekterfahrungen. Mit Bash-Skripten kann man fast alles realisieren, wa...

Back to top ↑

howto

HowTo - Convert Audible Files (aax) to mp3

less than 1 minute read

Prerequisites audible-activator AAXtoMP3 install the programms from above in the prefered way for you system. Let’s get started Get “AUTHCODE” from ...

Back to top ↑