Skip to content

Instantly share code, notes, and snippets.

@niklaskeerl
niklaskeerl / get_kubeconfig.sh
Created January 25, 2023 09:59
Get kubeconfig for gcloud gke cluster
# List all gcloud projects
gcloud projects list
# Set Project ID from project list
gcloud config set project $PROJECT_ID
# List all cluster names and zones for this project ID
gcloud container clusters list
# Generate kubeconfig entry
gcloud container clusters get-credentials --zone $LOCATION $NAME
@niklaskeerl
niklaskeerl / latex_with_latexindent.md
Created May 25, 2021 15:45
Working Latex distribution with latexindent for Arch Linux

Working Latex distribution with latexindent for Arch Linux

  1. Install the texlive-most group
sudo pacman -S texlive-most
  1. Install texlive-latexindent-meta from the AUR (Arch User Repository) using your favorite AUR helper
@niklaskeerl
niklaskeerl / notability_local_webdav_backup.md
Created May 24, 2021 08:50
Notability local webdav backup

Backup your Notability notes on your machine using webdav

Setup

  1. Prepare a folder where you want your backup to be.

  2. Install rclone for your system

  3. Run the webdav server using rclone

@niklaskeerl
niklaskeerl / .bashrc
Created May 17, 2021 08:36
.bashrc without fish as interactive shell
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
@niklaskeerl
niklaskeerl / keymap_solution.md
Last active May 16, 2021 13:05
Keymap not working in arch linux after archinstall

Keymap not working in arch linux after archinstall

Credits: @Torxed archlinux/archinstall#107

The keymap set in the in the archinstall script does not work in your window manager.

Solution (edit the keymap "de" with the one you want):

$ localectl set-keymap "" && localectl set-keymap de
@niklaskeerl
niklaskeerl / backup_home.md
Last active July 4, 2021 09:42
Backup home directory
@niklaskeerl
niklaskeerl / stakeholder_diagram.tex
Last active November 18, 2020 16:15
Stakeholder diagram latex template
\documentclass[border=10pt,tikz]{standalone}
\usepackage{pgf}
\usetikzlibrary{arrows,automata,shapes,positioning}
\usepackage[latin1]{inputenc}
\begin{document}
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=3.5cm,
semithick]
\tikzstyle{every state}=[ellipse,fill=white,text=black]
@niklaskeerl
niklaskeerl / hta.tex
Last active November 18, 2020 14:52
Hierarchial Task Analysis (HTA) latex template
\documentclass[border=10pt,tikz]{standalone}
\usepackage[edges]{forest}
\usetikzlibrary{fit}
\begin{document}
\begin{forest}
for tree={
draw,
align=center
},
@niklaskeerl
niklaskeerl / .xpdfrc
Last active July 26, 2020 15:38
xpdfrc configuration file
# to start xpdf always in fullscreen mode
# use this alias xpdf='xpdf -fullscreen'
# set zoom to page
initialZoom page
defaultFitZoom 600
# display mode to single page
@niklaskeerl
niklaskeerl / backup.md
Last active December 25, 2023 21:57
Encrypted backup using an external hard drive with luks and timeshift