Skip to content

Instantly share code, notes, and snippets.

View darron's full-sized avatar
🎯
Focusing

darron froese darron

🎯
Focusing
View GitHub Profile
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis eros odio, vehicula eu tincidunt vel, fringilla a massa. In pharetra nunc et massa placerat finibus. Sed ligula nunc, porttitor id sodales vitae, vehicula vitae urna. Aenean ut justo est. Fusce in felis a nibh aliquet tincidunt ultrices non enim. Vestibulum vitae egestas risus. Phasellus est ex, condimentum et lectus ac, egestas consectetur turpis. Cras sit amet massa et nisl tristique lacinia vel quis diam. Etiam feugiat magna vitae ornare rutrum. Phasellus quis iaculis nisi, at placerat quam. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Ut ex ante, fringilla vel euismod in, gravida a nunc. Donec laoreet, metus id vulputate aliquam, sem massa semper mi, at viverra mi lectus nec erat. Morbi sapien tellus, laoreet ac tempor at, efficitur in eros.
Interdum et malesuada fames ac ante ipsum primis in faucibus. Proin commodo odio ligula, ut pretium quam rutrum ac. Cras sodales tortor erat, id hendrerit lec
@darron
darron / fizz-buzz.go
Created December 10, 2015 04:29
Fizz Buzz in Golang.
package main
import (
"fmt"
)
// "Write a program that prints the numbers from 1 to 100.
// But for multiples of three print “Fizz” instead of the number
// and for the multiples of five print “Buzz”.
// For numbers which are multiples of both three and five print “FizzBuzz”."
[
{
"_id": "564b68340ef2751c02e2c57c",
"index": 0,
"guid": "ccc41d29-87c7-4c7c-ac9f-777e8ad39f5c",
"isActive": false,
"balance": "$3,734.70",
"picture": "http://placehold.it/32x32",
"age": 22,
"eyeColor": "brown",
#!/bin/bash
export PATH="/opt/chef/embedded/bin:$PATH"
gem install diffy --no-ri --no-rdoc
gem install diplomat --no-ri --no-rdoc
1 animal is fine in a house.
17 animals would be my personal hell.
2 cats would be a nightmare.
3 animals are too many.
And this is another line.
Cause I like to test sorting.
Darron is a Site Reliability Engineer for Datadog.
OS X is pretty handy - happy I stuck with it years ago.
Professional engineers are smart and have taken lots of schooling.
This is a test of the Joshua file.
Zebras are a fine animal.
And this is another line.
1 animal is fine in a house.
Professional engineers are smart and have taken lots of schooling.
@darron
darron / log-generate.rb
Created October 20, 2015 17:12
Generate some CLF log lines and add it to a file one line at a time.
#!/usr/bin/env ruby
urls = %W(/homepage /page/subpage /page/about_us /section/two /dude /dudette)
ips = %W(127.0.0.1 192.168.0.1 192.168.1.4 192.168.2.3 192.168.5.5 192.168.7.1)
verbs = %W(GET POST PUT DELETE)
results = %W(200 404 403 301 302 500 200 200 200 200 200 200 200)
identities = %W(darron - - - - - - - - - -)
# 127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326
@darron
darron / redis-load.rb
Created October 8, 2015 03:06
Insert a whole bunch of data into Redis for some small load testing.
#!/usr/bin/env ruby
require 'digest'
require 'redis'
redis = Redis.new
class Time
def to_ms
(self.to_f * 1000.0).to_i
log_level = "DEBUG"
bind_addr = "10.232.28.223"
advertise {
rpc = "10.232.28.223:4647"
serf = "10.232.28.223:4648"
}
data_dir = "/var/lib/nomad"
server {
enabled = true
bootstrap_expect = 3
@darron
darron / docker
Created September 13, 2015 03:17
# Docker Upstart and SysVinit configuration file
# Customize location of Docker binary (especially for development testing).
#DOCKER="/usr/local/bin/docker"
# Use DOCKER_OPTS to modify the daemon startup options.
#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"
# If you need Docker to use an HTTP proxy, it can also be specified here.
#export http_proxy="http://127.0.0.1:3128/"