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
  • 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 / JsonSerializableWithReflection.php
Last active September 10, 2020 18:40
PHP JsonSerializable with Reflection in Trait
<?php
trait JsonSerialize
{
function jsonSerialize()
{
$reflect = new ReflectionClass($this);
$props = $reflect->getProperties(ReflectionProperty::IS_STATIC | ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_PROTECTED | ReflectionProperty::IS_PRIVATE);
@zburgermeiszter
zburgermeiszter / Md5.php
Last active March 23, 2020 10:00
TWIG MD5 extension for Symfony
<?php
namespace Vendor\Bundle\Twig;
/*
services.yml:
twig.md5:
class: Vendor\Bundle\Twig\Md5
tags :
- { name: twig.extension }
@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 / ElasticSearch mapping examples
Last active September 5, 2018 09:27
ElasticSearch mapping examples
Content incomments
@zburgermeiszter
zburgermeiszter / luhn16.php
Created May 15, 2015 10:36
Luhn mod 16 checksum calculator
<?php
$input = "0B012722900021AC35B2";
$output = "0B012722900021AC35B21";
function luhn16($input) {
$codeArray = array();
$lastNumeric = array();
// Step 1: Code Point mapping (hex2int)
@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