Skip to content

Instantly share code, notes, and snippets.

View bigkraig's full-sized avatar

Kraig Amador bigkraig

View GitHub Profile

Keybase proof

I hereby claim:

  • I am bigkraig on github.
  • I am kraigamador (https://keybase.io/kraigamador) on keybase.
  • I have a public key ASDpGzfENSU8r3o8CCglXox2U0Qu5OGUxXVM7kFgIQq2MQo

To claim this, I am signing this object:

@bigkraig
bigkraig / socat
Last active February 24, 2017 23:23
# Insightful instructions, originally posted by Xynova (https://github.com/xynova)
echo "TOOLBOX_DOCKER_TAG=24" >> $HOME/.toolboxrc
echo PATH=/opt/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin >> /etc/kubernetes/kubelet.env
# Make socat directories
mkdir -p /opt/bin/socat.d/bin /opt/bin/socat.d/lib
# Create socat wrapper
cat << EOF > /opt/bin/socat
#! /bin/bash
package chef
import "fmt"
type ACLService struct {
client *Client
}
// ACL represents the native Go version of the deserialized ACL type
type ACL map[string]ACLitems
#!/ usr/bin/env python
# By: Kelcey Damage, 2012 & Kraig Amador, 2012
api_url = 'your_stuff_here'
apiKey = 'your_stuff_here'
secret = 'your_stuff_here'
import hashlib, hmac, string, base64, urllib
import json, urllib
#!/ usr/bin/env python
# By: Kelcey Damage, 2012
import hashlib, hmac, string, base64, urllib
class SignedAPICall(object):
def __init__(self, api_url, apiKey, secret):
self.api_url = api_url
self.apiKey = apiKey
self.secret = secret
@bigkraig
bigkraig / cs_server_create.diff
Created September 6, 2012 01:06
modification to knife cs create server to allow a default run_list to be set in knife.rb
diff --git a/lib/chef/knife/cs_server_create.rb b/lib/chef/knife/cs_server_create.rb
index 240dd51..eb357b6 100644
--- a/lib/chef/knife/cs_server_create.rb
+++ b/lib/chef/knife/cs_server_create.rb
@@ -135,8 +135,8 @@ module KnifeCloudstack
:short => "-r RUN_LIST",
:long => "--run-list RUN_LIST",
:description => "Comma separated list of roles/recipes to apply",
- :proc => lambda { |o| o.split(/[\s,]+/) },
- :default => []