Skip to content

Instantly share code, notes, and snippets.

View ckelner's full-sized avatar
🐕‍🦺
Datadog

Chris Kelner ckelner

🐕‍🦺
Datadog
View GitHub Profile
@ckelner
ckelner / bx_cf_marketplace.bash
Created May 31, 2017 14:47
Bluemix Cloud Foundry marketplace reference 31 May 2017
service plans description
APIConnect Essentials, Professional*, Enterprise*, Professional 5M*, Enterprise 25M*, Enterprise 1B*, Essentials - Native Create, manage, enforce, and run APIs.
AT&T Flow Designer user-provided
data "ibmcloud_cf_space" "spacedata" {
space = "${var.bluemix_space}"
org = "${var.bluemix_org}"
}
resource "ibmcloud_cf_service_instance" "redis-instance" {
name = "redis-123"
space_guid = "${data.ibmcloud_cf_space.spacedata.id}"
service = "redis"
plan = "100"
# Create a new virtual guest using image "Debian"
# Your VM will appear with hostname starting with "terraformed-"
resource "ibmcloud_infra_virtual_guest" "debian_small_virtual_guest" {
os_reference_code = "DEBIAN_7_64"
domain = "myapp.ibm.com"
datacenter = "wdc04"
network_speed = 100
hourly_billing = true
private_network_only = false
cores = 1
provider "ibmcloud" {
bluemix_api_key = "${var.bx_api_key}"
softlayer_api_key = "${var.sl_api_key}"
softlayer_username = "${var.sl_username}"
}

Keybase proof

I hereby claim:

  • I am ckelner on github.
  • I am kelner (https://keybase.io/kelner) on keybase.
  • I have a public key whose fingerprint is 9A19 853D 7E3D 0279 6CE4 E699 7FD5 06CF CA84 EDE5

To claim this, I am signing this object:

The days are long but the decades are short
I turned 30 last week and a friend asked me if I'd figured out any life advice in the past decade worth passing on. I'm somewhat hesitant to publish this because I think these lists usually seem hollow, but here is a cleaned up version of my answer:
1) Never put your family, friends, or significant other low on your priority list. Prefer a handful of truly close friends to a hundred acquaintances. Don’t lose touch with old friends. Occasionally stay up until the sun rises talking to people. Have parties.
2) Life is not a dress rehearsal—this is probably it. Make it count. Time is extremely limited and goes by fast. Do what makes you happy and fulfilled—few people get remembered hundreds of years after they die anyway. Don’t do stuff that doesn’t make you happy (this happens most often when other people want you to do something). Don’t spend time trying to maintain relationships with people you don’t like, and cut negative people out of your life. Negat
@ckelner
ckelner / aws_csv_totaler.py
Created February 3, 2015 17:47
dinky little py script to total up aws consolidated billing csvs. Needed because I have csvs w/ roughly 17mil rows in the ~7Gb file size range.
import csv
import sys
from decimal import Decimal
csv_file = open( sys.argv[1] )
count = 0
total_line_item_cost = Decimal(0)
for row in csv.reader( csv_file ):
count += 1
# get record type (column 4)
@ckelner
ckelner / issue_list_kelner_2013_12_03.txt
Created December 3, 2013 20:50
git issue list by order of solution execution
https://github.com/TheWeatherCompany/grid-console/issues/174
https://github.com/TheWeatherCompany/grid-console/pull/180
https://github.com/TheWeatherCompany/grid-api/issues/405
https://github.com/TheWeatherCompany/grid-api/issues/408
https://github.com/TheWeatherCompany/grid-api/issues/410
@ckelner
ckelner / phantomjs_jasmine.txt
Created November 26, 2013 18:43
phantomjs direct
phantomjs test/run-jasmine.js http://localhost:7357?testing=true
TypeError: 'undefined' is not an object (evaluating 'document.body.querySelectorAll('#TrivialReporter span.finished-at')[0].innerText')
phantomjs://webpage.evaluate():2
phantomjs://webpage.evaluate():3
phantomjs://webpage.evaluate():3
GET https://test.grid.weather.com/providers//regions/false/zones
GET https://test.grid.weather.com/?_providerId=&_regionId=false
GET https://test.grid.weather.com/providers//regions/false/zones
------------------START--------------------