Skip to content

Instantly share code, notes, and snippets.

🐍
Snek

Greg Taylor gtaylor

🐍
Snek
Block or report user

Report or block gtaylor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:95ba88467745678ee5389710fd0a2915
# Calico Version v3.0.2
# https://docs.projectcalico.org/v3.0/releases#v3.0.2
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: calico-node
rules:
- apiGroups: [""]
resources:
- namespaces
View gist:98285709e39e9ae9fda9728028cf80bf
# Calico Version v3.0.2
# https://docs.projectcalico.org/v3.0/releases#v3.0.2
# This manifest includes the following component versions:
# calico/node:v3.0.2
# calico/cni:v2.0.0
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
View gist:9f7c6ccd70431f61dbfba6365eedc291
resource aws_instance some_instance {
ami = "${data.aws_ami.kubernetes.id}"
instance_type = "${var.instance_type}"
iam_instance_profile = "${var.instance_profile_name}"
key_name = "${var.ssh_key_name}"
subnet_id = "${var.subnet_id}"
vpc_security_group_ids = ["${var.security_group_ids}"]
user_data = "${data.template_cloudinit_config.master.rendered}"
}
@gtaylor
gtaylor / KeybaseProof
Last active May 5, 2016
Keybase Github Proof
View KeybaseProof
g6Rib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEgoAPBT1bI3warWJAWjF4srcV5LxnzHe/QRNqr/k9yVLsKp3BheWxvYWTFAut7ImJvZHkiOnsia2V5Ijp7ImVsZGVzdF9raWQiOiIwMTIwYTAwM2MxNGY1NmM4ZGYwNmFiNTg5MDE2OGM1ZTJjYWRjNTc5MmYxOWYzMWRlZmQwNDRkYWFiZmU0ZjcyNTRiYjBhIiwiaG9zdCI6ImtleWJhc2UuaW8iLCJraWQiOiIwMTIwYTAwM2MxNGY1NmM4ZGYwNmFiNTg5MDE2OGM1ZTJjYWRjNTc5MmYxOWYzMWRlZmQwNDRkYWFiZmU0ZjcyNTRiYjBhIiwidWlkIjoiYmQ3ZmVjNDIyNjQ3N2RjZGVlMWMyZGUzZTEyNTIyMTkiLCJ1c2VybmFtZSI6Imd0YXlsb3IifSwic2VydmljZSI6eyJuYW1lIjoiZ2l0aHViIiwidXNlcm5hbWUiOiJndGF5bG9yIn0sInR5cGUiOiJ3ZWJfc2VydmljZV9iaW5kaW5nIiwidmVyc2lvbiI6MX0sImNsaWVudCI6eyJuYW1lIjoia2V5YmFzZS5pbyBnbyBjbGllbnQiLCJ2ZXJzaW9uIjoiMS4wLjE1In0sImN0aW1lIjoxNDYyNDcyNTY5LCJleHBpcmVfaW4iOjUwNDU3NjAwMCwibWVya2xlX3Jvb3QiOnsiY3RpbWUiOjE0NjI0NzI1MTUsImhhc2giOiI3OGI2MzYwMWIxYzIwYmNlNTM4YzViZjkzYzc3ZTU1OWEzYTRjNWI2ZGM1ZDNmMjJjNWIyMzlmZjBiNmU0ZTdiODhmZTUwMzM3NGM0YzZjMzNlMWY1NDY2NDcwMTk4MGU2ZmM2ZmNjYjE5NjcwMTc1MzVjMzczZjk0NjJhMzNiZCIsInNlcW5vIjo0NTc3MDJ9LCJwcmV2IjoiMmM3OGU3YzYwMjQ0ZDk3MjNkMDQzYWEwNDZmODI0NWIxYzIz
View gist:cf8ae7e1cd14976cd983
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x80ef]
goroutine 1 [running]:
main.run(0x977bd8, 0xc8200ceb70, 0xc82008ec00, 0x6, 0x8, 0xc820084900, 0x865, 0x0, 0x0, 0x0)
/drone/src/github.com/drone/drone-cli/drone/exec.go:252 +0x33f
main.execCmd(0xc820076ea0, 0x0, 0x0)
/drone/src/github.com/drone/drone-cli/drone/exec.go:202 +0x18f9
main.glob.func8(0xc820076ea0)
/drone/src/github.com/drone/drone-cli/drone/exec.go:25 +0x28
github.com/drone/drone-cli/vendor/github.com/codegangsta/cli.Command.Run(0x4e04b8, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x52c9e0, 0x16, 0x0, ...)
@gtaylor
gtaylor / .drone.yml
Last active Feb 17, 2016
Python + Drone + Docker publish
View .drone.yml
cache:
mount:
- wheeldir
build:
image: python:2.7.11
commands:
- pip wheel -r requirements.txt --wheel-dir=wheeldir --find-links=wheeldir
- pip install --use-wheel --no-index --find-links=wheeldir -r requirements.txt
- nosetests -v test/
View gist:62d2bfaca1082a4c2a4f
[global]
timeout = 60
index-url = http://user:pass@myindex.com/
@gtaylor
gtaylor / wordpress_api.py
Created Oct 11, 2015
Wordpress.com API Access token
View wordpress_api.py
import requests
data = {
'client_id': 1234,
'redirect_uri': 'http://gc-taylor.com',
'client_secret': 'yoursecrethere',
'code': 'yourcode',
'grant_type': 'authorization_code',
}
View gist:f232db1e3302272552d0
<match graylog2.**>
type copy
<store>
type gelf
host {{ graylog2_server_host }}
port {{ graylog2_server_port }}
heartbeat_type tcp
flush_interval 5s
</store>
#<store>
View gist:25c635badd05ae3527a4
[2014-10-14 11:47:28,336: INFO/MainProcess] Connected to redis://:**@pub-redis-15274.us-east-mz.2.ec2.garantiadata.com:15274/0
[2014-10-14 11:47:28,372: INFO/MainProcess] mingle: searching for neighbors
[2014-10-14 11:47:29,430: INFO/MainProcess] mingle: sync with 2 nodes
[2014-10-14 11:47:29,431: INFO/MainProcess] mingle: sync complete
[2014-10-14 11:47:29,493: WARNING/MainProcess] celery@syncing.celery-i-4c2bb361 ready.
[2014-10-14 11:47:29,980: INFO/MainProcess] Events of group {task} enabled by remote.
You can’t perform that action at this time.