Skip to content

Instantly share code, notes, and snippets.


Ross Kukulinski rosskukulinski

View GitHub Profile
View ark backup logs test-2
time="2018-08-20T17:21:16Z" level=info msg="Starting backup" backup=heptio-ark/test-2 logSource="pkg/backup/backup.go:230"
time="2018-08-20T17:21:16Z" level=info msg="Including namespaces: *" backup=heptio-ark/test-2 logSource="pkg/backup/backup.go:233"
time="2018-08-20T17:21:16Z" level=info msg="Excluding namespaces: <none>" backup=heptio-ark/test-2 logSource="pkg/backup/backup.go:234"
time="2018-08-20T17:21:16Z" level=info msg="Including resources: *" backup=heptio-ark/test-2 logSource="pkg/backup/backup.go:237"
time="2018-08-20T17:21:16Z" level=info msg="Excluding resources: <none>" backup=heptio-ark/test-2 logSource="pkg/backup/backup.go:238"
time="2018-08-20T17:21:16Z" level=info msg="Backing up group" backup=heptio-ark/test-2 group=v1 logSource="pkg/backup/group_backupper.go:142"
time="2018-08-20T17:21:16Z" level=info msg="Evaluating resource" backup=heptio-ark/test-2 group=v1 groupResource=pods logSource="pkg/backup/resource_backupper.go:138"
time="2018-08-20T17:21:16Z" level=info msg="Listing items" b
Short name Full name
csr       certificatesigningrequests
cs componentstatuses
cm configmaps
ds daemonsets
deploy deployments
ep endpoints
ev events
hpa       horizontalpodautoscalers
View gist:60b79bc281b2316f8e4a12ca151901d0
withdraw:1 Pattern attribute value [^\d]*(\d{0,3}){1}(\,\d{3})*(\.\d{2})+[^\d]* is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /[^\d]*(\d{0,3}){1}(\,\d{3})*(\.\d{2})+[^\d]*/: Invalid escape
rosskukulinski /
Created October 19, 2016 18:16

Keybase proof

I hereby claim:

  • I am rosskukulinski on github.
  • I am rosskukulinski ( on keybase.
  • I have a public key whose fingerprint is AA52 0FC2 9B9E 7C5B 6402 1311 A653 0F47 E188 4C87

To claim this, I am signing this object:

rosskukulinski /
Created September 4, 2016 19:18
Rackspace delegate subdomain DNS
#!/usr/bin/env python
import pyrax
pyrax.set_setting("identity_type", "rackspace")
pyrax.set_credentials('XXX', 'YYY')
domain = pyrax.cloud_dns.find(name="")
print domain
mkdir ./cluster-dump
kubectl get --export -o=json ns | \
jq '.items[] |
select(!="kube-system") |
select(!="default") |
View gist:ccb9083bea9935417d76
+ docker build -t .
Sending build context to Docker daemon 557.1 kB
Sending build context to Docker daemon 1.114 MB
Sending build context to Docker daemon 1.671 MB
Sending build context to Docker daemon 2.228 MB
Sending build context to Docker daemon 2.785 MB
Sending build context to Docker daemon 3.342 MB
Sending build context to Docker daemon 3.899 MB
Sending build context to Docker daemon 4.456 MB
Sending build context to Docker daemon 5.014 MB

Here are 3 resources about running Elasticsearch on AWS. I recommend going through them in order:

  1. Webinar (by Elastic employees) about running Elasticsearch on AWS: Its a bit long (~1 hour) but I'd start here.

  2. These two blog posts cover setting up the AWS environment, then installing and configuring Elasticsearch on it:

  1. And this is a deeper technical dive into various configuration settings - primarily to do with HA and security - that might be useful when setting up Elasticsearch on AWS:
View gist:9fd8c15e104216e80f06
{{ if ls "/services/audiorouter" }}
upstream ar {
{{ range getvs "/services/audiorouter/*" }}
server {{ . }};{{ end }}
{{ end }}
View gist:7ba94fad5c30bb939262
var request = require('request');
var http = require('http');
var server = http.createServer(function(req, res) {
var query = request('');