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 / kubernetes_overview.md
Last active April 9, 2024 20:04 — forked from WintersMichael/kubernetes_overview.md
Understanding Kubernetes in 10 minutes - By Mike Schuette

Understanding Kubernetes in 10 minutes

Original document can be found here; written by Mike Schuette.

This document provides a rapid-fire overview of Kubernetes concepts, vocabulary, and operations. The target audience is anyone who runs applications in a cloud environment today, and who wants to understand the basic mechanics of a Kubernetes cluster. The goal is that within 10 minutes, managers who read this should be able to listen in on a Kubernetes conversation and follow along at a high level, and engineers should be ready to deploy a sample app to a toy cluster of their own.

This orientation doc was written because the official Kubernetes docs are a great reference, but they present a small cliff to climb for newcomers.

If you want to understand why you should consider running Kubernetes, see the official Kubernetes conceptual overview document. This doc

@ckelner
ckelner / google-fi-support-pixel5a-logic-board-dead.md
Last active June 23, 2022 18:02
My Pixel 5a from Google Fi subscription had a logic board failure 9mo after I received it, the device was under warranty and device protection through Google Fi. It was a nightmare trying to resolve my issue as I was on a business trip covering 1,500 miles and got zero sympathy from Google Support.

Noteworthy

  1. I have device protection through Google Fi and a phone which is under warranty.
  2. The Pixel 5a I have is from a subscription through Google Fi.
  3. The phone is only 9 months old.
  4. The phone has repeatedly turned off on its own (crash) since the first few weeks, but the hassle of getting a new one prevented me from doing anything about it. I guess I should be less lazy. It has always turned back on.
  5. The phone was slow and acted buggy at times. Reboots sometimes fixed it, but sometimes not. I chalked this up to the Android Operating System being bad, but looking back I now realize it was probably hardware.
  6. I have been using Google software for 20+ years, Google, Gmail, Maps, Chrome, Drive, Photos, Google+, Youtube, etc. a. I pay for youtube premium and google one.
@ckelner
ckelner / credit-card-regex.md
Created September 21, 2021 21:54 — forked from michaelkeevildown/credit-card-regex.md
Credit Card Regex Patterns

Credit Card Regex

  • Amex Card: ^3[47][0-9]{13}$
  • BCGlobal: ^(6541|6556)[0-9]{12}$
  • Carte Blanche Card: ^389[0-9]{11}$
  • Diners Club Card: ^3(?:0[0-5]|[68][0-9])[0-9]{11}$
  • Discover Card: ^65[4-9][0-9]{13}|64[4-9][0-9]{13}|6011[0-9]{12}|(622(?:12[6-9]|1[3-9][0-9]|[2-8][0-9][0-9]|9[01][0-9]|92[0-5])[0-9]{10})$
  • Insta Payment Card: ^63[7-9][0-9]{13}$
  • JCB Card: ^(?:2131|1800|35\d{3})\d{11}$
  • KoreanLocalCard: ^9[0-9]{15}$
@ckelner
ckelner / README.md
Last active October 5, 2020 17:08
Using the Datadog Ansible integration with Ansible Tower

Datadog and Ansible Tower

This doc explains the nuances of using the Datadog Ansible Integration with Ansible Tower.

Ansible Setup

In a directory of your choosing, run the following commands:

  • vagrant init ansible/tower
  • vagrant up --provider virtualbox
  • vagrant ssh
@ckelner
ckelner / _README.md
Created August 11, 2017 16:25
Monitoring SonarQube JVM/JMX metrics with Datadog

Sonarqube

This was a quick hack to get Datadog Java/JMX monitoring working with Sonar.

Prerequisites

  • Install docker

Run

@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 / dd_mysql_dupe_metrics_test.md
Last active January 3, 2018 04:40
Testing reporting mysql metrics from a remote host from two different hosts running the datadog agent (3 hosts total, one MySQL, two dd-agents)

Datadog: 1 MySQL reported by 2 hosts

  • Run MySQL via Docker:
    docker run -p 3306:3306 --name kelnerhax-mysql -e MYSQL_ROOT_PASSWORD=<password> -d mysql:latest
    
  • docker inspect <container-name> to get the container ip from `NetworkSettings.IPAddress"
  • docker exec -it <container-name> /bin/bash to get on the docker container
  • Follow https://docs.datadoghq.com/integrations/mysql/#prepare-mysql
    • mysql -u root --password=<password>
Near the office:
http://www.bonesrestaurant.com/ $$$$
http://www.kinganddukeatl.com/ $$
http://www.thesoutherngentlemanatl.com/ $$
Venturing a bit further away from the office:
http://capedutchrestaurant.com/ $$
https://www.holeman-finch.com/ $$
And even further away:

Monitor how many more api calls your git token has

Queries a Github Api rate_limit to find out how close you are to hitting your rate limit. Great for build servers when your not sure why something broke.

Use to create graphs like: Graph or you can display multiple values on a single graph: Graph2

Install

Plugins come with a YAML file and a python file. The YAML file is the