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 / 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 / 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
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
@zburgermeiszter
zburgermeiszter / serialize.js
Created December 22, 2017 14:43 — forked from istarkov/serialize.js
Serialize promise calls (run promises sequentially)
// promise
const sleep = (timeout, v) => new Promise(r => setTimeout(() => {console.log(v); r(v)}, timeout));
// series to call
const series = [() => sleep(1000, 1), () => sleep(1000, 2), () => sleep(1000, 3)];
// serialize
const r = series
.reduce(
(m, p) => m.then(v => Promise.all([...v, p()])),
Promise.resolve([])
@zburgermeiszter
zburgermeiszter / development.ts
Created November 24, 2017 22:06 — forked from romelgomez/development.ts
Express Server with TypeScript
import * as server from "./server";
new server.App
@zburgermeiszter
zburgermeiszter / NewsArticle.yaml
Created November 21, 2017 17:05 — forked from JamesMessinger/NewsArticle.yaml
Example of using `allOf` to extend an object in a Swagger API
swagger: "2.0"
info:
version: "1.0.0"
title: minimal
description: News Articles ftw
paths:
/users:
get:
responses:
"200":
@zburgermeiszter
zburgermeiszter / .eslintrc.js
Created June 23, 2017 09:21 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {