Skip to content

Instantly share code, notes, and snippets.

View zburgermeiszter's full-sized avatar
👨‍💻
Available for Remote DevOps Engineer positions

Zoltan Burgermeiszter zburgermeiszter

👨‍💻
Available for Remote DevOps Engineer positions
View GitHub Profile
@zburgermeiszter
zburgermeiszter / export-k8s.sh
Last active April 19, 2024 21:49
Export all resources from Kubernetes (k8s) clusters. Resources are exported to separate folders and files by namespace and API name.
#!/bin/bash
backup_folder="kubernetes_backup"
# Create a directory to store the backup
mkdir -p $backup_folder
# Get a list of all resource resources, including both namespaced and non-namespaced resources
resources=$(kubectl api-resources --verbs=list -o name)
# Get a list of all namespaces
@zburgermeiszter
zburgermeiszter / functions.tf
Created October 19, 2023 14:17 — forked from carlessanagustin/functions.tf
Terraform functions by example
##--------------------------
## Terraform: Functions ##
##--------------------------
## Open terraform console
terraform console
#######################
## Numeric Functions ##
#######################
@zburgermeiszter
zburgermeiszter / crypttab
Created September 11, 2021 23:53 — forked from tjvr/crypttab
Hibernate on Ubuntu 18.04 with LVM full-disk encryption
sda5_crypt UUID=c66880c1-c2f1-40fc-9580-f25d493876ef none luks,discard
@zburgermeiszter
zburgermeiszter / install_postman.sh
Created September 7, 2021 18:12 — forked from pil0u/install_postman.sh
Install Postman on Linux through CLI without Snap
# This script basically automates the official Postman installation guide for Linux:
# https://learning.postman.com/docs/getting-started/installation-and-updates/#installing-postman-on-linux
# 32 or 64-bit?
BIT=$(getconf LONG_BIT)
# Download the appropriate version
wget -O ~/postman.tar.gz "https://dl.pstmn.io/download/latest/linux${BIT}"
# Extract the archive in /opt
  • Based on https://gist.github.com/mdziekon/221bdb597cf32b46c50ffab96dbec08a
  • Installation date: 16-08-2019
  • Additional notes based on my own experience
  • EFI boot
  • Ubuntu 19.04 -> 21.04
  • This should work on any computer. Only the RAID > AHCI change described below and the device name for the nvme ssd drive are specific to this laptop.
  • The process describes a completely fresh installation with complete repartitioning, however it should work fine when Windows is already installed (eg. brand new machine with Windows preinstalled) as long as Windows already boots with EFI.
  • The process was conducted on Dell's XPS 15 9560 (2017) with specs:
  • CPU: i7-7700HQ
@zburgermeiszter
zburgermeiszter / disable-gnome-keyring-daemon.md
Created October 17, 2018 12:19
Disable gnome-keyring-daemon

sudo chmod -x /usr/bin/gnome-keyring-daemon

@zburgermeiszter
zburgermeiszter / uppercase-substitute.ts
Last active March 15, 2018 13:02
ES6 tagged template literal example
import * as _ from 'lodash'
const uppercase = (strings, ...values) => {
const upper = (input) => _.isString(input) ? input.toUpperCase() : input;
const zipped = _.zipWith(strings, values, (text, variable) => [text, upper(variable)]);
const flat = _.flattenDeep(zipped);
return flat.join('');
}
@zburgermeiszter
zburgermeiszter / singleton.ts
Last active March 9, 2018 15:40
Typescript singleton
// https://stackoverflow.com/a/36978360
class Singleton {
private static _instance: Singleton;
private constructor() {
console.log("Instantiated");
}
public static getInstance(): Singleton {
console.log("getInstance()");
@zburgermeiszter
zburgermeiszter / helm-rbac.md
Created February 12, 2018 10:38 — forked from mgoodness/helm-rbac.md
Helm RBAC setup for K8s v1.6+ (tested on minikube)
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller