Skip to content

Instantly share code, notes, and snippets.

View jamescarr's full-sized avatar
🎯
Focusing

James Carr jamescarr

🎯
Focusing
View GitHub Profile
#!/usr/bin/env zsh
function aws-rds-describe() {
zparseopts -D -E -A opts -- o:
output=${opts[-o]:-"table"}
name=${1}
query=(
"DBInstances[]"
".{"

Uptime

select * from uptime;

Sytem Inventory

Datadoggin' for Fun and Profit

Today We Will Cover

  • Exploring metrics
  • APM
  • Synthetics
  • Using Notebooks
  • Building a Custom Dashboard
  • And More
  • events
### Keybase proof
I hereby claim:
* I am jamescarr on github.
* I am jamescarr (https://keybase.io/jamescarr) on keybase.
* I have a public key ASAiU20sGsNecdzYGqyyswSbo3qJw380XF_-HrTCY1cNUAo
To claim this, I am signing this object:
for {
select {
case m, ok := <-c:
if !ok {
breakl
}
handle(m)
case <-time.After(1 * time.Minute):
fmt.Println("timed out")
break
@jamescarr
jamescarr / sample-slack-coc.md
Last active June 20, 2017 00:46 — forked from annalee/sample-slack-coc.md
A sample code of conduct for social slack teams.

DevComo Code of Conduct

Welcome!

DevComo is a slack channel to connect engineers, designers, sysadmins and other technistas from the Mid Missouri Area

The current admins are:

  • jamescarr
exch := msg.Exchange
if val, ok := msg.Headers["x-original-exchange"]; ok {
exch = msg.Headers["x-original-exchange"]
}
err := ch.ExchangeDeclare(
"unrouted", // name
"topic", // type
true, // durable
false, // auto-deleted
false, // internal
false, // noWait
nil,
)
package main
import (
"database/sql"
_ "github.com/lib/pq"
"log"
)
func failOnError(e error) {
if e != nil {
package main
import (
"crypto/md5"
"crypto/sha1"
"crypto/sha256"
"fmt"
"hash"
)