Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am lstoll on github.
  • I am lstoll (https://keybase.io/lstoll) on keybase.
  • I have a public key whose fingerprint is A688 56F0 EA24 0128 70BB F0A7 77A1 AB8D B26F 07E7

To claim this, I am signing this object:

@lstoll
lstoll / e2e.log
Created December 17, 2017 19:52
201712171818_sonobuoy_06ff56dd-f05f-4805-b083-b8e56a328bab
Dec 17 18:18:13.997: INFO: Overriding default scale value of zero to 1
Dec 17 18:18:13.997: INFO: Overriding default milliseconds value of zero to 5000
Running Suite: Kubernetes e2e suite
===================================
Random Seed: 1513534693 - Will randomize all specs
Will run 126 of 699 specs
Dec 17 18:18:14.166: INFO: >>> kubeConfig:
Dec 17 18:18:14.169: INFO: Waiting up to 4h0m0s for all (but 0) nodes to be schedulable
Dec 17 18:18:14.184: INFO: Waiting up to 10m0s for all pods (need at least 0) in namespace 'kube-system' to be running and ready
@lstoll
lstoll / dialer.go
Last active April 22, 2016 22:11
Websockets as a drop in TCP replacement
package wsnet
import (
"net"
"time"
"golang.org/x/net/websocket"
)
// Dial gives you a net.Conn that talks to a WS destination.
openssl genrsa 2048 > wildcard.cle.lds.li.key
openssl req -new -key wildcard.cle.lds.li.key -sha256 -nodes -subj '/C=US/ST=OH/L=/O=cle.lds.li/OU=/CN=*.cle.lds.li/[email protected]/subjectAltName=DNS.1=cle.lds.i' > wildcard.cle.lds.li.csr
openssl x509 -req -days 365 -signkey wildcard.cle.lds.li.key < wildcard.cle.lds.li.csr > wildcard.cle.lds.li.crt
openssl pkcs12 -export -out wildcard.cle.lds.li.p12 -inkey wildcard.cle.lds.li.key -in wildcard.cle.lds.li.crt

Keybase proof

I hereby claim:

  • I am lstoll on github.
  • I am lstoll (https://keybase.io/lstoll) on keybase.
  • I have a public key whose fingerprint is A688 56F0 EA24 0128 70BB F0A7 77A1 AB8D B26F 07E7

To claim this, I am signing this object:

@lstoll
lstoll / commands.txt
Created September 25, 2015 21:33
EdgeOS IPv6 + delegation on Time Warner Cable
# Assumes eth0 is internet, switch0 is normal internal network, and switch0.52 is a DMZ
# Firewall
lstoll@corerouter# set interfaces ethernet eth0 firewall in ipv6-name wan6_in
lstoll@corerouter# set interfaces ethernet eth0 firewall local ipv6-name wan6_local
lstoll@corerouter# set firewall ipv6-name wan6_in default-action drop
lstoll@corerouter# set firewall ipv6-name wan6_in description "WAN IPv6 to internal networks"
lstoll@corerouter# set firewall ipv6-name wan6_in enable-default-log
lstoll@corerouter# set firewall ipv6-name wan6_in rule 10 action accept
# Assumes eth0 is internet, switch0 is normal internal network, and switch0.52 is a DMZ
# Firewall
lstoll@corerouter# set interfaces ethernet eth0 firewall in ipv6-name wan6_in
lstoll@corerouter# set interfaces ethernet eth0 firewall local ipv6-name wan6_local
lstoll@corerouter# set firewall ipv6-name wan6_in default-action drop
lstoll@corerouter# set firewall ipv6-name wan6_in description "WAN IPv6 to internal networks"
lstoll@corerouter# set firewall ipv6-name wan6_in enable-default-log
lstoll@corerouter# set firewall ipv6-name wan6_in rule 10 action accept
/* upstart
*
* control.c - D-Bus connections, objects and methods
*
* Copyright 2009-2011 Canonical Ltd.
* Author: Scott James Remnant <[email protected]>.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2, as
* published by the Free Software Foundation.

Keybase proof

I hereby claim:

  • I am lstoll on github.
  • I am lstoll (https://keybase.io/lstoll) on keybase.
  • I have a public key whose fingerprint is FEE1 FA02 5493 B259 CC6A C1E8 378C F51D 274A F8E1

To claim this, I am signing this object:

hg_ps1() {
hg prompt "{ on {branch}}{ at {bookmark}}{status}{ ↑{outgoing}}{outgoing|count}{ ↓{incoming}}{incoming|count}" 2> /dev/null
}
function parse_git_branch {
#[ -d .git ] || return 1
git_status="$($@ -c status.displayCommentPrefix=true status)" # 2> /dev/null)"
branch_pattern="^# On branch ([^${IFS}]*)"
remote_pattern="# Your branch is (.*) of"
diverge_pattern="# Your branch and (.*) have diverged"