Skip to content

Instantly share code, notes, and snippets.

@aianus
aianus / net_http_monkey_patch.rb
Created January 9, 2019 02:58
Net::HTTP with sni_host param
module Net #:nodoc:
class HTTP < Protocol
# Override the SNI hostname used during SSL handshake
attr_accessor :sni_host
def connect
if proxy? then
conn_address = proxy_address
conn_port = proxy_port
else
@aianus
aianus / rbac.yaml
Created November 6, 2018 22:45 — forked from allanlei/rbac.yaml
Kubernetes Node Labeling permissions
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: node-labeler
rules:
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "update", "patch"]
---
apiVersion: rbac.authorization.k8s.io/v1beta1
@aianus
aianus / keybase.md
Created June 8, 2014 02:00
Keybase.io Proof

Keybase proof

I hereby claim:

  • I am aianus on github.
  • I am aianus (https://keybase.io/aianus) on keybase.
  • I have a public key whose fingerprint is 611E 0BCE 46F5 7BF9 4AF9 363A 37A2 389D 8D06 2448

To claim this, I am signing this object: