Skip to content

Instantly share code, notes, and snippets.

vendor/bundle/jruby/1.9/gems/aws-sdk-core-2.6.1/lib/aws-sdk-core/xml/error_handler.rb:25 in const_get
vendor/bundle/jruby/1.9/gems/aws-sdk-core-2.6.1/lib/aws-sdk-core/xml/error_handler.rb:25 in error
vendor/bundle/jruby/1.9/gems/aws-sdk-core-2.6.1/lib/aws-sdk-core/json/error_handler.rb:9 in call
vendor/bundle/jruby/1.9/gems/aws-sdk-core-2.6.1/lib/seahorse/client/response.rb:43 in call
vendor/bundle/jruby/1.9/gems/aws-sdk-core-2.6.1/lib/seahorse/client/response.rb:43 in on
vendor/bundle/jruby/1.9/gems/aws-sdk-core-2.6.1/lib/seahorse/client/http/response.rb:139 in on_success
vendor/bundle/jruby/1.9/gems/aws-sdk-core-2.6.1/lib/seahorse/client/http/response.rb:166 in call
vendor/bundle/jruby/1.9/gems/aws-sdk-core-2.6.1/lib/seahorse/client/http/response.rb:166 in listener
vendor/bundle/jruby/1.9/gems/aws-sdk-core-2.6.1/lib/seahorse/client/http/response.rb:130 in call
vendor/bundle/jruby/1.9/gems/aws-sdk-core-2.6.1/lib/seahorse/client/http/response.rb:130 in on_done
Failures:
1) Compliance functions Given {"people":[{"age":10,"order":"1"},{"age":10,"order":"2"},{"age":10,"order":"3"},{"age":10,"order":"4"},{"age":10,"order":"5"},{"age":10,"order":"6"},{"age":10,"order":"7"},{"age":10,"order":"8"},{"age":10,"order":"9"},{"age":10,"order":"10"},{"age":10,"order":"11"}]} searching "sort_by(people, &age)" returns [{"age":10,"order":"1"},{"age":10,"order":"2"},{"age":10,"order":"3"},{"age":10,"order":"4"},{"age":10,"order":"5"},{"age":10,"order":"6"},{"age":10,"order":"7"},{"age":10,"order":"8"},{"age":10,"order":"9"},{"age":10,"order":"10"},{"age":10,"order":"11"}]
Failure/Error: expect(result).to eq(test_case['result'])
expected: [{"age"=>10, "order"=>"1"}, {"age"=>10, "order"=>"2"}, {"age"=>10, "order"=>"3"}, {"age"=>10, "order"...0, "order"=>"8"}, {"age"=>10, "order"=>"9"}, {"age"=>10, "order"=>"10"}, {"age"=>10, "order"=>"11"}]
got: [{"age"=>10, "order"=>"11"}, {"age"=>10, "order"=>"2"}, {"age"=>10, "order"=>"3"}, {"age"=>10, "order...10, "ord
Releasing GSSAPI::LibGSSAPI::GssCtxIdT at 7fd04c435b30
/Users/pmorton/.rvm/gems/ruby-2.0.0-p195/bundler/gems/gssapi-95ca12b4b2e2/lib/gssapi/lib_gssapi.rb:182: [BUG] Segmentation fault
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.4.0]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
require 'formula'
class Packer < Formula
version '0.1.3'
homepage 'http://www.packer.io/'
url 'https://dl.bintray.com/mitchellh/packer/0.1.3_darwin_amd64.zip?direct'
sha1 '2177c221cc439e8df3ddeada1feb1287727aa1a7'
def install
bin.install Dir['*']
@pmorton
pmorton / gist:5171447
Last active December 15, 2015 00:18
BOM Removing Middleware for JSON request (Thanks Powershell)
# encoding: utf-8
class BOMRemovalMiddleware
def initialize(app, options={})
@app = app
end
def call(env)
if env['CONTENT_TYPE'].downcase.eql?("application/json") and
@pmorton
pmorton / gist:5165878
Created March 14, 2013 22:39
Configure the fusion provider to add more cpu and ram
config.vm.provider :vmware_fusion do |v|
v.vmx['numvcpus'] = 8
v.vmx['memsize'] = 4096
end
using System;
using System.Collections.Generic;
namespace FizzBuzz
{
class Program
{
// Looks a lot like http://stackoverflow.com/questions/1538644/c-determine-if-a-number-is-prime with a variable name change
// This dosen't make it invalid, but the spacing and everything is dead on the same except for the variable name.
static bool isPrime(int num)
@pmorton
pmorton / install_updates.vbs
Created September 11, 2012 23:31
Install Updates VBS
Set updateSession = CreateObject("Microsoft.Update.Session")
updateSession.ClientApplicationID = "MSDN Sample Script"
Set updateSearcher = updateSession.CreateUpdateSearcher()
WScript.Echo "Searching for updates..." & vbCRLF
Set searchResult = _
updateSearcher.Search("IsInstalled=0 and Type='Software' and IsHidden=0")
@pmorton
pmorton / Gemfile
Created August 16, 2012 22:28
rTika Rest Service
source :rubygems
#gem 'rtika'
gem 'sinatra'
gem 'puma'
@pmorton
pmorton / cmd_shell.bat
Created July 23, 2012 17:17
WinPty Console Shells
@ECHO OFF
C:\cygwin\bin\console.exe cmd