Skip to content

Instantly share code, notes, and snippets.

View CobyR's full-sized avatar

Coby Randquist CobyR

View GitHub Profile

Keybase proof

I hereby claim:

  • I am cobyr on github.
  • I am crandquist (https://keybase.io/crandquist) on keybase.
  • I have a public key ASArJkkXkoBqc33LLG1UXy-4EyrJpkA8Fa99WljfyNfDfgo

To claim this, I am signing this object:

import java.util.ArrayList;
import java.util.Scanner;
public class IdentifierCheck
{
public static void main(String[] args)
{
// input from user
Scanner in = new Scanner(System.in);
@CobyR
CobyR / coalfire-audit-script.sh
Created April 11, 2017 15:54
coalfire audit script
#!/bin/sh
#
#set -x
#set -v
#
# This was rewritten in /bin/sh since bash is not readily available
# everywhere. /bin/sh is available on all *NIX systems.
#
#####################################################################
# PCI data gathering script for Coalfire Systems, Inc.
@CobyR
CobyR / service-checklist.md
Created September 21, 2016 22:12 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@CobyR
CobyR / .bash_profile
Created August 9, 2016 16:44
My OS X prompt
# set prompt
export PS1=`ruby ~/bin/master-prompt.rb`
@CobyR
CobyR / master-prompt.rb
Created June 25, 2015 17:42
master-prompt.rb
require 'rubygems'
require 'geek_painter'
master_piece = GeekPainter.paint do
label "# \\t ".in(:white)
#label "[".in(:brown)
#label "\\u".in :light_gray
#label "@".in :yellow
#label "\\h".in :light_gray
#label "]".in(:brown)
@CobyR
CobyR / photo-video-reqs.md
Created September 8, 2014 16:37
photo management / video management requirements

supports partial dating, ie:

  • year
  • year and month
  • year and month and day
  • year and month and time

supports easy tagging

supports location

@CobyR
CobyR / keybase.md
Created March 20, 2014 14:26
keybase.md

Keybase proof

I hereby claim:

  • I am CobyR on github.
  • I am cobyr (https://keybase.io/cobyr) on keybase.
  • I have a public key whose fingerprint is 2FB5 6443 C21F 8342 74DC 2D06 9066 FAD5 1CE1 82CD

To claim this, I am signing this object:

@CobyR
CobyR / prompt.rb
Created April 18, 2012 19:19
my bash prompt
require 'rubygems'
require 'geek_painter'
master_piece = GeekPainter.paint do
label "\\# \\t ".in(:white)
#label "[".in(:brown)
#label "\\u".in :light_gray
#label "@".in :yellow
#label "\\h".in :light_gray
#label "]".in(:brown)
@CobyR
CobyR / month-day.rb
Created June 18, 2011 14:16
file to populate day thoughts under month thought in PersonalBrain
require 'date'
class Time
# Returns a new Time, +years+ later than this time. Feb 29 of a
# leap year will be rounded up to Mar 1 if the target date is not a leap
# year.
def plus_year(years)
Time.local(year + years, month, day, hour, min, sec, usec)
end
# Returns a new Time, +months+ later than this time. The day will be
# rounded down if it is not valid for that month.