Skip to content

Instantly share code, notes, and snippets.

@txels
txels / README.md
Last active January 7, 2018 19:27
Display fretboards in your browser

Fretboards on a browser

Instantiate a fretboard, and display some notes, scales, chord voicings, etc.

Examples:

// Layout a specific scale
var aPhrygian = Fretboard();
aPhrygian.scale("a phrygian");
apiVersion: v1
kind: Pod
metadata:
name: busybox
namespace: default
spec:
hostname: box
subdomain: busy
containers:
- image: "busybox:latest"
@txels
txels / netstat-rn
Created July 8, 2016 08:41
netstat -rn
$ netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.1.1 UGSc 49 0 en0
46.51.128/18 172.19.0.21 UGSc 0 0 utun0
46.51.192/20 172.19.0.21 UGSc 0 0 utun0
46.137/17 172.19.0.21 UGSc 0 0 utun0
46.137.128/18 172.19.0.21 UGSc 0 0 utun0
@txels
txels / rebase-onto.md
Last active December 19, 2018 02:00
Rebase a git branch onto another

Change the base branch for your current branch

Some cases:

  • you started a bugfix out of develop, but it should be applied to a release branch
  • you started on a branch and want to rebase it on some colleague's changes

Command

@txels
txels / keybase.md
Created December 21, 2014 14:16
Keybase Proof

Keybase proof

I hereby claim:

  • I am txels on github.
  • I am txels (https://keybase.io/txels) on keybase.
  • I have a public key whose fingerprint is 1EC0 AEF1 E659 86DC C1A3 DA40 D2A6 F325 06DA 3B9F

To claim this, I am signing this object:

@txels
txels / interface_test.py
Created February 23, 2013 13:36
This is a simple demo of using Zope interfaces to verify compliance without forcing users to explicitly declare them.
#!/usr/bin/env python
from zope.interface import Interface, classImplements, verify
class IGreet(Interface):
"""
Be friendly and greet people
"""
def hello(whom):