Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

James Carr jamescarr

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

Uptime

select * from uptime;

Sytem Inventory

View gist:3e2224c9a964e6c84009254c9f216692

Datadoggin' for Fun and Profit

Today We Will Cover

  • Exploring metrics
  • APM
  • Synthetics
  • Using Notebooks
  • Building a Custom Dashboard
  • And More
  • events
View gist:5772578ff7ffaeaf7b7d7f5761c1cb7f
### 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:
View foo.go
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 Jun 20, 2017 — forked from annalee/sample-slack-coc.md
A sample code of conduct for social slack teams.
View sample-slack-coc.md

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