Skip to content

Instantly share code, notes, and snippets.

View kriswill's full-sized avatar

Kris Williams kriswill

View GitHub Profile
@kriswill
kriswill / disko.nix
Created June 19, 2024 04:59
Disko for a BIOS MBR partition on i686 VM
{
disko.devices = {
disk = {
vda = {
type = "disk";
device = "/dev/vda";
content = {
type = "gpt";
partitions = {
boot = {
@kriswill
kriswill / azure-region-aliases.md
Created April 30, 2024 22:14
Azure Region short aliases
DisplayName Name RegionalDisplayName Alias
East US eastus (US) East US EUS
East US 2 eastus2 (US) East US 2 EUS2
South Central US southcentralus (US) South Central US SCUS
West US 2 westus2 (US) West US 2 WUS2
West US 3 westus3 (US) West US 3 WUS3
Australia East australiaeast (Asia Pacific) Australia East AUE
Southeast Asia southeastasia (Asia Pacific) Southeast Asia SEA
North Europe northeurope (Europe) North Europe NEUR
S33c3TTrs6(Bz5E2JfZisdqq8Go3SNJEARmoY(ykV5SxhlkqsqrSgeGdaOLPNB0FM7F0TQQBa0aSXdsrzNmrJptmnz)S6QR6RQU6QVw96RUEySD4ToXJM7E7Cp4)hF94RhAVk0E04qh7p5567mkAP9eNRVuT31dJMe6UmE0u7yBOYxsTWz(2J9CME9Xxp8DoF2nYnWh(fDJRh(g)x5o15KGPoxpC2k)jXWpD)nhe54n7W7VzLVB8ft5F48q7foWND8)8vyZ1((F((B4)j9tj)y3B9cU7SzZCMe)cShoqAP70j0jkoi05(BINd)hFOhw6zhdFmY9Rozf0lyITNWV)khKqC)n)0938w8Fh2D64UlddM5cDnvIrtc8N5EBxhFNfR9xoP7ChBV45JC9NeSySnu3p07JzDq6eKxUJTdFXqN4K(5Gc9C7nNl3)Zo(tH)j8NRhE5Yjxc1iITcmuvtxP3GRVSh(X(AwwxFPg9rdyf7Y(4h10muV(sD8JgAAkxFPb(rfRbgxFPj8XEdm1HQzD9Wxbdqx)BV)MRa6k8FdIDwC9LdWIRQOm464RhE0Q45bHxp8IV6UawA7C0xdT9G18HdjMJRwV0HgbN6enbAWegR7VXo3AqWm4Ba2b3fldcJT9HcC00PDP)lFfdPBS6afp8(BGj(fNc1WpoGxI4q3BV1b(PXbFb(xWxBJ1EbSQ3fiuqnVE47PwPZ93Crwp9b2c7hHFDjWmVh5r70zYCNjFcgLW8BcobNm32)wjmHtc8GjvAfXYFqkh(j2(Nq17YKkCcw82uZ4l0X8)WzubUQ8vaAtzd9UfBwH9ytLY2Xy9gU0XZ7IPiRhWjW60taInXiEL7c8d6AMww9ngyIcagop4UhxbaypuMaay)iifl6pDsaU)M)MS1QHWG(nZMf5e3UerdxmHe(QPpa2Ap8Ka)O4WvtaHG7tgCO)JbzerqRSoyfSBZEnq7CCGnEpp0XlWEkJBokybXMJekOWUr(pdLcSCPNlww3flCM6ctlV1TLVpQQ9n
@kriswill
kriswill / gist:08c7ab96a1370c01b12e7d11dbcc3f9f
Created March 7, 2019 03:00
ElvUI profile - Darkmethod (shadow priest)
A0hHFwAgQIpZJLeEtEtAwyCOCbUMlGcA04BcA9U2UvWNFOMU1TlArQOkegdIcBAQCxE9JKUmCsBFFBtV6SMkjVSUk4JeApKYSSo3UdqJqp8UQ4ksFegp1VTRVaC2Ekr1lVByVgCtBSTlLSBRdwEJ7ZX+kpLBAuQw0mKiHiM0GcFllc1CfCZktCpOE6wGJPKaUMxWuK1Iu1X1m9JwRRwHpLQc6jkq05WuQ2o7yHdCNZ5QynlIWA+J9gtQDwNJmhRIqhs36wS6VKaYa9YpXiFCidus36fyuMrd+mO/xc36fSqPq9yt45ugl65gf7N+n8rjSna7dSIa4/ub6LVYoKN8jNRF9w/T0awPKxL+9DiOiq5ynUbEVK7LlCiGgO0kQglHtMPiZl0ujwQicFBdVB4JROCgOi6PBCJwULe+dIgRvmh2lPBiOj0n0nHl47psMeEw0Q6Lm3W5PFIXlUfquDzSrUN0oI9oh8XNulweCZzHwHVReSQQHgPquDwSiAB361PhC1M6adYFov1cs04clONmdIxmnSPSceWRQDi8jsJEItxt+Whcn1hOWMH+OmkyDdvtdrv1qYUOc806MyDwq/VaIprTptzKFLMWOlwnTaZhFTMgcChRfH8VaTINqwCxXsHngLp0C4SskybTsIoZEDiUKL6/ijSZhlVRwFyvYgReZwYEfrWCVCCwFjpcTyPpmDcVMyBwKFF8fxVpMg2rY95UIAXSaOq6i6z2Q5e10OE6aTINq2PeVOBQovj+KtJkGlbHvKkQFQPXSXQkwrEWOlxPIwVD1FkqZkDgUKL4/qo0UjBEnaWKamAgFQXVSctxJHrX/jppMg2rmAGBQ4ni+6tIk2lYhSiQJq7rrN0X0+mxFjpcTyPpmDcVMyBwKFF8f1UaSce8qeCAuYrGelAdqNl/QGRhCIuiTppMwypmQOBQovj+KtJkGlYhCoAgdbdEgQ72Ppq10OE6aTINq2PeVMyAwKFE8f1VpMk0rI55U4EUHJnXmQGBX60gFQiTW9ZCh+tp
@kriswill
kriswill / vcprompt.py
Created August 24, 2018 19:26
vcprompt
#!/usr/bin/env python
"""
Usage: vcprompt [options]
Version control information in your prompt.
Attribution: possible original author <Matthias Riegler https://github.com/xvzf>?
Options:
-f, --format FORMAT The format string to use.
@kriswill
kriswill / README.md
Last active July 14, 2018 19:00
Procedure to setup a local Kubernetes cluster on Docker for Mac

Procedure to setup a local Kubernetes cluster on Docker for Mac

July 14 2018

  1. Enable Kubernetes in the Docker for Mac Preferences:

![Docker for Mac - Preferences][docker-for-mac-preferences]

Verify the installation:

→ kubectl cluster-info
@kriswill
kriswill / apk-info-json.sh
Created October 9, 2017 19:24
Parse alpine apk package versions into a JSON blob
node -p "require('child_process').exec('apk info --verbose', (err, out) => { packages = {}; out.split('\n').filter(line => line.length).forEach(line => { const parts = line.split('-'); packages[parts[0]] = line.replace(parts[0]+'-', ''); }); console.log(JSON.stringify(packages, null, 2)); process.exit(0)}); '';"
@kriswill
kriswill / link-gliffy-modules.sh
Last active October 12, 2016 18:40
Re-link all @gliffy/ember-* modules with NPM
@kriswill
kriswill / terminfo.sh
Last active September 10, 2016 06:57
Prints information about the terminal application you are using
# prints information about the terminal application you are using
function terminfo() {
# make OPTIND local to prevent odd behaviour with getops when running a function multiple times
local OPTIND v
local _verbose=0
while getopts "v" OPTION
do
case $OPTION in
@kriswill
kriswill / controllers.application.js
Created August 25, 2016 16:40
Testing saving Twiddle to Gist
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});