Skip to content

Instantly share code, notes, and snippets.

Ken Robertson krobertson

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am krobertson on github.
  • I am krobertson (https://keybase.io/krobertson) on keybase.
  • I have a public key ASBmU9W98g1s2DkTHFZoxcXR8CCAW7SG24ABOU1QSujF5Ao

To claim this, I am signing this object:

View blarg.patch
From e26d0d62248a6245ee5b204595dadd9b047d9192 Mon Sep 17 00:00:00 2001
From: Ken Robertson <ken@invalidlogic.com>
Date: Mon, 2 Nov 2015 12:06:56 -0800
Subject: [PATCH] blarg
---
.../aws/aws-sdk-go/service/s3/s3manager/download.go | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/Godeps/_workspace/src/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go b/Godeps/_workspace/src/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go
@krobertson
krobertson / fix.patch
Last active Sep 30, 2015
AUR package vmware-patch patch for Workstation 11.1.2 with 4.2 kernel
View fix.patch
From 1fb71794b4d53d203fc64dc5d57baa5850991303 Mon Sep 17 00:00:00 2001
From: Ken Robertson <ken@invalidlogic.com>
Date: Tue, 29 Sep 2015 12:58:00 -0700
Subject: [PATCH] Applied patches for Workstation 11.1.2 on 4.2 kernel.
Patches were taken from the VMware forums here:
https://communities.vmware.com/thread/517279
---
PKGBUILD | 14 +-
View collector.go
package main
import (
"flag"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"strings"
@krobertson
krobertson / gist:1401859
Created Nov 28, 2011
rvm + jruby instafail
View gist:1401859
:~> rvm jruby
[15] 3103
1.6.5:~> irb
[15] + suspended (tty output) ( JRUBY_OPTS='' jruby --ng-server 2>&1 > /dev/null; )
(5 mins later)
^\zsh: quit irb
1.6.5:~> rvm --version
rvm 1.9.2 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]
View gist:1184363
# The definition...
define :check_mysql_seconds_behind_master do
attribute :username, :kind_of => String
attribute :password, :kind_of => String
attribute :warning, :kind_of => Fixnum, :default => 20
attribute :critical, :kind_of => Fixnum, :default => 60
require_gem 'mysql'
execute do
@krobertson
krobertson / README.md
Created Aug 31, 2011
First past at the Nagios NRPE packet in ruby
View README.md

Fire up the ruby server with:

ruby server.rb 49644

Then call check_nrpe with:

check_nrpe -H localhost -p 49644 -c check_awesome

Or with parameters, like:

@krobertson
krobertson / railscasts.vim
Created Jul 21, 2011
My version of railscasts.vim
View railscasts.vim
" Vim color scheme
"
" Name: railscast.vim
" Maintainer: Josh O'Rourke <jorourke23@gmail.com>
" License: public domain
"
" A GUI Only port of the RailsCasts TextMate theme [1] to Vim.
" Some parts of this theme were borrowed from the well-documented Lucius theme [2].
"
" [1] http://railscasts.com/about
@krobertson
krobertson / set_environment.rb
Created Jul 14, 2011 — forked from nstielau/set_environment.rb
A Knife plugin to set node environment
View set_environment.rb
## Knife plugin to set node environment
# See http://wiki.opscode.com/display/chef/Environments
#
## Install
# Place in .chef/plugins/knife/set_environment.rb
#
## Usage
# Nick-Stielaus-MacBook-Pro:chef-repo nstielau$ knife node set_environment mynode.net my_env
# Looking for mynode.net
# Setting environment to my_env
You can’t perform that action at this time.