I hereby claim:
- I am iandelahorne on github.
- I am iandelahorne (https://keybase.io/iandelahorne) on keybase.
- I have a public key ASBJoX8d6KzH6I9qXQjwULBoVkbeUwb4idDrVNm7z5TXRAo
To claim this, I am signing this object:
✔ ~/src/ansible [master|✚ 1…1⚑ 3]$ ./scripts/pssh i-021dc9f489f95bbfc hostname | |
OpenSSH_7.9p1, LibreSSL 2.7.3 | |
debug1: Reading configuration data /Users/ian/.ssh/config | |
debug1: /Users/ian/.ssh/config line 4: Applying options for * | |
debug1: Reading configuration data /etc/ssh/ssh_config | |
debug1: /etc/ssh/ssh_config line 48: Applying options for * | |
debug1: Executing proxy command: exec aws ssm start-session --debug --region us-west-1 --target i-021dc9f489f95bbfc --document-name AWS-StartSSHSession --parameters 'portNumber=22' | |
debug1: identity file /Users/ian/.ssh/id_rsa type 0 | |
debug1: identity file /Users/ian/.ssh/id_rsa-cert type -1 | |
debug1: Local version string SSH-2.0-OpenSSH_7.9 |
I hereby claim:
To claim this, I am signing this object:
panic: runtime error: invalid memory address or nil pointer dereference | |
[signal 0xb code=0x1 addr=0x198 pc=0x29670] | |
goroutine 1 [running]: | |
runtime.panic(0x23afa0, 0x519ed9) | |
/usr/local/go/src/pkg/runtime/panic.c:266 +0xb6 | |
github.com/rackspace/gophercloud.(*genericServersProvider).ServerById(0xc2102c5300, 0x2929d0, 0x8, 0x15, 0x0, ...) | |
/Users/ian/src/go/src/github.com/rackspace/gophercloud/servers.go:100 +0xd0 | |
main.main() | |
/Users/ian/src/gotratt/serverbyid.go:36 +0x3e1 |
package main | |
import ( | |
"errors" | |
"fmt" | |
"github.com/rackspace/gophercloud" | |
"github.com/mitchellh/multistep" | |
"log" | |
"time" | |
) |
: ian@Upshot-Knothole go; ./serverbyid | |
Got JSON body {"itemNotFound": {"message": "Instance could not be found", "code": 404}} | |
panic: runtime error: invalid memory address or nil pointer dereference | |
[signal 0xb code=0x1 addr=0x0 pc=0x304f2] | |
goroutine 16 [running]: | |
runtime.panic(0x2aa680, 0x46e8e4) | |
/usr/local/go/src/pkg/runtime/panic.c:279 +0xf5 | |
github.com/rackspace/gophercloud.(*genericServersProvider).ServerById(0xc2081de7b0, 0x2ee450, 0x8, 0x15, 0x0, 0x0) | |
/Users/ian/go/src/github.com/rackspace/gophercloud/servers.go:103 +0x252 |
package main | |
import ( | |
"code.google.com/p/goauth2/oauth" | |
urlshortener "code.google.com/p/google-api-go-client/urlshortener/v1" | |
"flag" | |
"fmt" | |
"log" | |
) |
path_elems=(${PATH//:/ }) | |
sbin_missing=1 | |
usr_sbin_missing=1 | |
usr_local_sbin_missing=1 | |
for i in "${!path_elems[@]}" ; do | |
if [ "${path_elems[i]}" = /sbin ]; then sbin_missing = 0 ; fi | |
if [ "${path_elems[i]}" = /usr/sbin ]; then usr_sbin_missing = 0 ; fi | |
if [ "${path_elems[i]}" = /usr/local/sbin ]; then usr_local_sbin_missing = 0 ; fi | |
done |
#ifndef _S3_H | |
#define _S3_H | |
struct s3_string { | |
char *ptr; | |
size_t len; | |
}; | |
struct s3_string * s3_string_init(); | |
size_t s3_string_curl_writefunc(void *ptr, size_t len, size_t nmemb, struct s3_string *s); |
# | |
# Author:: Ezra Pagel (<ezra@cpan.org>) | |
# License:: Apache License, Version 2.0 | |
# | |
require 'chef/knife' | |
require 'chef/knife/BaseVsphereCommand' | |
# Lists all known virtual machines in the configured datacenter | |
class Chef::Knife::VsphereVmList < Chef::Knife::BaseVsphereCommand |
#!./bin/knife exec | |
# ian-note: run from your home directory. Add the following to your .chef/knife.rb: | |
# knife[:ssh_user] = "myusername" | |
# A knife exec script to change chef node's name, preserving all the attributes. | |
# | |
# Usage: knife exec rename-node.rb old-name new-name | |
# | |
# Script retrieves the Node object, changes its 'name' attribute, |