Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Available for Remote DevOps Engineer positions

Zoltan Burgermeiszter zburgermeiszter

👨‍💻
Available for Remote DevOps Engineer positions
View GitHub Profile
@zburgermeiszter
zburgermeiszter / crypttab
Created Sep 11, 2021 — forked from tjvr/crypttab
Hibernate on Ubuntu 18.04 with LVM full-disk encryption
View crypttab
sda5_crypt UUID=c66880c1-c2f1-40fc-9580-f25d493876ef none luks,discard
@zburgermeiszter
zburgermeiszter / install_postman.sh
Created Sep 7, 2021 — forked from pil0u/install_postman.sh
Install Postman on Linux through CLI without Snap
View install_postman.sh
# 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
View xps_15_9560__dualboot_with_encryption__notes.md
  • 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
View disable-gnome-keyring-daemon.md

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

@zburgermeiszter
zburgermeiszter / uppercase-substitute.ts
Last active Mar 15, 2018
ES6 tagged template literal example
View uppercase-substitute.ts
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 Mar 9, 2018
Typescript singleton
View singleton.ts
// 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 Feb 12, 2018 — forked from mgoodness/helm-rbac.md
Helm RBAC setup for K8s v1.6+ (tested on minikube)
View helm-rbac.md
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
View gist:c9156eb2b15d192f7bda49b9318c06b2
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
@zburgermeiszter
zburgermeiszter / serialize.js
Created Dec 22, 2017 — forked from istarkov/serialize.js
Serialize promise calls (run promises sequentially)
View serialize.js
// 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([])