Skip to content

Instantly share code, notes, and snippets.

Avatar

Kris Williams kriswill

View GitHub Profile
View vcprompt.py
#!/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.
View Tranq's plater profile
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 Mar 7, 2019
ElvUI profile - Darkmethod (shadow priest)
View gist:08c7ab96a1370c01b12e7d11dbcc3f9f
A0hHFwAgQIpZJLeEtEtAwyCOCbUMlGcA04BcA9U2UvWNFOMU1TlArQOkegdIcBAQCxE9JKUmCsBFFBtV6SMkjVSUk4JeApKYSSo3UdqJqp8UQ4ksFegp1VTRVaC2Ekr1lVByVgCtBSTlLSBRdwEJ7ZX+kpLBAuQw0mKiHiM0GcFllc1CfCZktCpOE6wGJPKaUMxWuK1Iu1X1m9JwRRwHpLQc6jkq05WuQ2o7yHdCNZ5QynlIWA+J9gtQDwNJmhRIqhs36wS6VKaYa9YpXiFCidus36fyuMrd+mO/xc36fSqPq9yt45ugl65gf7N+n8rjSna7dSIa4/ub6LVYoKN8jNRF9w/T0awPKxL+9DiOiq5ynUbEVK7LlCiGgO0kQglHtMPiZl0ujwQicFBdVB4JROCgOi6PBCJwULe+dIgRvmh2lPBiOj0n0nHl47psMeEw0Q6Lm3W5PFIXlUfquDzSrUN0oI9oh8XNulweCZzHwHVReSQQHgPquDwSiAB361PhC1M6adYFov1cs04clONmdIxmnSPSceWRQDi8jsJEItxt+Whcn1hOWMH+OmkyDdvtdrv1qYUOc806MyDwq/VaIprTptzKFLMWOlwnTaZhFTMgcChRfH8VaTINqwCxXsHngLp0C4SskybTsIoZEDiUKL6/ijSZhlVRwFyvYgReZwYEfrWCVCCwFjpcTyPpmDcVMyBwKFF8fxVpMg2rY95UIAXSaOq6i6z2Q5e10OE6aTINq2PeVOBQovj+KtJkGlbHvKkQFQPXSXQkwrEWOlxPIwVD1FkqZkDgUKL4/qo0UjBEnaWKamAgFQXVSctxJHrX/jppMg2rmAGBQ4ni+6tIk2lYhSiQJq7rrN0X0+mxFjpcTyPpmDcVMyBwKFF8f1UaSce8qeCAuYrGelAdqNl/QGRhCIuiTppMwypmQOBQovj+KtJkGlYhCoAgdbdEgQ72Ppq10OE6aTINq2PeVMyAwKFE8f1VpMk0rI55U4EUHJnXmQGBX60gFQiTW9ZCh+tp
@kriswill
kriswill / README.md
Last active Jul 14, 2018
Procedure to setup a local Kubernetes cluster on Docker for Mac
View README.md

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 Oct 9, 2017
Parse alpine apk package versions into a JSON blob
View apk-info-json.sh
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 Oct 12, 2016
Re-link all @gliffy/ember-* modules with NPM
View link-gliffy-modules.sh
@kriswill
kriswill / terminfo.sh
Last active Sep 10, 2016
Prints information about the terminal application you are using
View terminfo.sh
# 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 Aug 25, 2016
Testing saving Twiddle to Gist
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View gist:3b855c6de3af654fe5a2
Verifying that +krisw is my blockchain ID. https://onename.com/krisw
@kriswill
kriswill / kris.tmTheme
Created Jul 17, 2012
Kris' Railscast theme - modified for SublimeText2
View kris.tmTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Kris - based on Railscasts</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
You can’t perform that action at this time.