Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am lattwood on github.
  • I am lattwood (https://keybase.io/lattwood) on keybase.
  • I have a public key ASDJc6pSA0COVJTqkKzL7R8uQWQMaD4_wxWjL9H5WwJrsAo

To claim this, I am signing this object:

@lattwood
lattwood / bastion_test.py
Created October 30, 2015 16:39
Stackstorm SSH Bastion Client Testing
#!/usr/bin/env python
import logging
import pprint
from oslo_config import cfg
from st2actions.runners.ssh.parallel_ssh import ParallelSSHClient
from st2common.logging.formatters import ConsoleLogFormatter
# Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@lattwood
lattwood / lol integers
Created November 25, 2014 14:22
Golang can't tell the difference between uint16 and int. Any ideas?
~/gopath/src/github.com/therounds/rhazes $ make bin/rhazesd
/Users/logan/gopath/bin/goop go build -o bin/rhazesd ./rhazes
# github.com/therounds/rhazes/rhazes
rhazes/main.go:133: cannot use config.Port (type int) as type uint16 in argument to supercommon.AppServer
rhazes/main.go:139: cannot use config.SSL.Port (type int) as type uint16 in argument to appserver.TLSConfig
goop: Command failed with exit status 2
make: *** [bin/rhazesd] Error 2
✘ ~/gopath/src/github.com/therounds/rhazes $ grep int rhazes/services/config.go
rhazes/services/config.go: Port int
rhazes/services/config.go: Port int
" vim exits with non-zero sometimes, thanks to pathogen.
filetype indent plugin on
call pathogen#infect()
call pathogen#helptags()
syntax on
let mapleader=","
if has("autocmd")