Skip to content

Instantly share code, notes, and snippets.

View macarthy's full-sized avatar
💭
Looking for work

Justin MacCarthy macarthy

💭
Looking for work
View GitHub Profile
@macarthy
macarthy / gist:5500174
Created May 2, 2013 04:40
Some links relating to Simons talk.
Age:
The Tech Industry’s Darkest Secret: It’s All About Age
http://www.linkedin.com/today/post/article/20130422020049-8451-the-tech-industry-s-darkest-secret-it-s-all-about-age
Older Is Wiser: Study Shows Software Developers’ Skills Improve Over Time
http://news.ncsu.edu/releases/wms-murphyhill-age-2013/
http://www.codingninja.co.uk/like-fine-wine-developers-can-become-better-with-age/
#!/usr/bin/env ruby
require 'pivotal-tracker'
require 'yaml'
TEMP_DIR = "#{ENV['HOME']}/.pivotal/"
TEMP_FILE = TEMP_DIR + "temp.yml"
CONFIG_FILE = TEMP_DIR + "config.yml"
unless File.directory? TEMP_DIR
@macarthy
macarthy / vim.rb
Last active December 21, 2015 06:58 — forked from mgrouchy/vim.rb
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
url 'https://vim.googlecode.com/hg/', :revision => '6c318419e331'
version '7.3.515'
def features; %w(tiny small normal big huge) end
def interp; %w(lua mzscheme perl python python3 tcl ruby lua) end
#!/bin/bash
# herein we backup our indexes! this script should run at like 6pm or something, after logstash
# rotates to a new ES index and theres no new data coming in to the old one. we grab metadatas,
# compress the data files, create a restore script, and push it all up to S3.
TODAY=`date +"%Y.%m.%d"`
INDEXNAME="logstash-$TODAY" # this had better match the index name in ES
INDEXDIR="/usr/local/elasticsearch/data/logstash/nodes/0/indices/"
BACKUPCMD="/usr/local/backupTools/s3cmd --config=/usr/local/backupTools/s3cfg put"
BACKUPDIR="/mnt/es-backups/"
YEARMONTH=`date +"%Y-%m"`
@macarthy
macarthy / find_pdf_field
Last active January 1, 2016 02:39
Small utility to find the relevant field in a PDF form Usage find_pdf_field myfile.pdf searchstring
#!/bin/ruby
# Usage: ruby find_pdf_field myfile.pdf searchstring
require 'pdf_forms'
require 'pp'
pdftk = PdfForms.new("/usr/local/bin/pdftk")
pdf = ARGV[0]

Keybase proof

I hereby claim:

  • I am macarthy on github.
  • I am macarthy (https://keybase.io/macarthy) on keybase.
  • I have a public key ASD9J_ZsFkrkNtOq0AZnA5UHpICwUxh6uWsbGOqKuN2k-Qo

To claim this, I am signing this object: