Skip to content

Instantly share code, notes, and snippets.

View miketheman's full-sized avatar
🌴
On vacation

Mike Fiedler miketheman

🌴
On vacation
View GitHub Profile
@miketheman
miketheman / 1_command.log
Last active February 6, 2016 22:48
otto dev failure for vmware_fusion project
$ otto dev
==> Verifying created layer: consul
==> Verifying created layer: python2.7
==> Creating local development environment with Vagrant if it doesn't exist...
Bringing machine 'default' up with 'virtualbox' provider...
The clone environment hasn't been created yet. To clone from
another Vagrantfile, it must already be created with `vagrant up`.
It doesn't need to be running.
Additionally, the created environment must be started with a provider
@miketheman
miketheman / init_nginx.conf
Created January 21, 2016 22:10
default nginx configs
description "nginx - small, powerful, scalable web/proxy server"
start on filesystem and static-network-up
stop on runlevel [016]
expect fork
respawn
pre-start script
[ -x /usr/sbin/nginx ] || { stop; exit 0; }
@miketheman
miketheman / console.log
Created January 14, 2016 04:13
Crystal TravisCI build Stacktrace
Using worker: worker-linux-docker-623b439b.prod.travis-ci.org:travis-linux-4
Build system information
Build language: crystal
Build group: stable
Build dist: precise
Build image provisioning date and time
Thu Feb 5 15:09:33 UTC 2015
Operating System Details
Distributor ID: Ubuntu
@miketheman
miketheman / linux_entropy.py
Created December 31, 2015 21:11
Datadog Agent Linux Entropy Available
from checks import AgentCheck
class LinuxEntropyCheck(AgentCheck):
def check(self, instance):
with open('/proc/sys/kernel/random/entropy_avail', 'r') as procfile:
data = procfile.read().strip()
self.gauge('system.kernel.entropy_available', int(data))
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"aws-portal:ViewBilling",
"aws-portal:ViewUsage",
"autoscaling:Describe*",
"cloudformation:ListStacks",
@miketheman
miketheman / installer.log
Last active February 22, 2020 18:53
chefdk-0.7.0-rc.2-1.dmg failure log
Jul 11 10:16:27 wing Installer[99257]: LSExceptions [0x7f857ac0cbb0] loaded
Jul 11 10:16:27 wing Installer[99257]: @(#)PROGRAM:Install PROJECT:Install-1000
Jul 11 10:16:27 wing Installer[99257]: @(#)PROGRAM:Installer PROJECT:Installer-852
Jul 11 10:16:27 wing Installer[99257]: Hardware: MacBookAir6,1 @ 1.70 GHz (x 4), 8192 MB RAM
Jul 11 10:16:27 wing Installer[99257]: Running OS Build: Mac OS X 10.11 (15A215h)
Jul 11 10:16:27 wing Installer[99257]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
Jul 11 10:16:27 wing Installer[99257]: Env: TMPDIR=/var/folders/78/3jyqdny925n348fpr6wh23bc0000gn/T/
Jul 11 10:16:27 wing Installer[99257]: Env: HOME=/Users/miketheman
Jul 11 10:16:27 wing Installer[99257]: Env: SHELL=/bin/bash
Jul 11 10:16:27 wing Installer[99257]: Env: SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.C1W3TcCVzf/Listeners
@miketheman
miketheman / GH-2.log
Created July 1, 2015 11:05
lita compare
± |miketheman/specs {1} ?:3 ✗| ∴ → bundle exec lita
[2015-07-01 10:59:24 UTC] DEBUG: Loading aliases
Type "exit" or "quit" to end the session.
Lita > lita help
[2015-07-01 10:59:30 UTC] DEBUG: Dispatching message to Lita::Handlers::Help#help.
Lita: help - Lists help information for terms and command the robot will respond to.
Lita: help COMMAND - Lists help information for terms or commands that begin with COMMAND.
Lita: info - Replies with the current version of Lita.
Lita: users find SEARCH_TERM - Find a Lita user by ID, name, or mention name.
Lita: alias add NAME COMMAND - Alias for sending COMMAND when NAME typed
@miketheman
miketheman / reset_encoding.rb
Created June 20, 2015 15:45
Use the AWS SDK Ruby gem to create new copies of objects without an invalid Content-Encoding metadata field
#!/usr/bin/env ruby
require 'aws-sdk'
INVALID_ENCODINGS = %w(ANSI_X3.4-1968 UTF-8)
bucket = Aws::S3::Bucket.new(
region: 'us-east-1',
name: 'www.mysite.com'
)
@miketheman
miketheman / clouddns_to_route53.rb
Created May 24, 2015 15:05
Tool to migrate DNS records from Rackspace Cloud DNS to AWS Route53
require 'aws-sdk'
require 'fog'
require 'pry'
# The top-level domain name/hosted zone
TOP_DOMAIN = 'example.org'
# A simple Change class, repsenting a single change to end up in Route53
class Change
attr_accessor :name
@miketheman
miketheman / init.patch
Created March 26, 2015 18:23
opscode-cookbooks commit numero uno, for historical purposes. Link: https://github.com/chef/cookbooks/commit/1f10b2519b3f215ef0ec550913612436bf417eb3
From 1f10b2519b3f215ef0ec550913612436bf417eb3 Mon Sep 17 00:00:00 2001
From: Adam Jacob <adam@hjksolutions.com>
Date: Sat, 17 Jan 2009 16:45:51 -0800
Subject: [PATCH] Adding opscode cookbooks
---
LICENSE | 201 +++++++
NOTICE | 12 +
apache2/attributes/apache.rb | 72 +++
apache2/definitions/apache_module.rb | 36 ++