- 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
trait JsonSerialize | |
{ | |
function jsonSerialize() | |
{ | |
$reflect = new ReflectionClass($this); | |
$props = $reflect->getProperties(ReflectionProperty::IS_STATIC | ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_PROTECTED | ReflectionProperty::IS_PRIVATE); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Vendor\Bundle\Twig; | |
/* | |
services.yml: | |
twig.md5: | |
class: Vendor\Bundle\Twig\Md5 | |
tags : | |
- { name: twig.extension } |
sudo chmod -x /usr/bin/gnome-keyring-daemon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Content incomments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$input = "0B012722900021AC35B2"; | |
$output = "0B012722900021AC35B21"; | |
function luhn16($input) { | |
$codeArray = array(); | |
$lastNumeric = array(); | |
// Step 1: Code Point mapping (hex2int) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(''); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://stackoverflow.com/a/36978360 | |
class Singleton { | |
private static _instance: Singleton; | |
private constructor() { | |
console.log("Instantiated"); | |
} | |
public static getInstance(): Singleton { | |
console.log("getInstance()"); |
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller