Skip to content

Instantly share code, notes, and snippets.

Output on Ruby 2.6, MacBook Pro (13-inch, 2017, 3.5 GHz Intel Core i7)

Note: I manually removed some BigDecimal deprecation warnings

Rehearsal ------------------------------------------------
as_json        0.122644   0.000508   0.123152 (  0.123823)
fast_jsonapi   0.184139   0.000829   0.184968 (  0.186195)
grape_entity   0.709880   0.003083   0.712963 (  0.714929)
blueprinter    0.220149   0.004481   0.224630 (  0.225596)
$ TF_LOG=debug tf bear state mv module.bear_advance_app.module.advance_cache_sg.aws_security_group.service module.bear_advance_app.module.advance_cache.module.service_sg.aws_security_group.service
2017/03/20 17:55:16 [INFO] Terraform version: 0.9.1
2017/03/20 17:55:16 [INFO] Go runtime version: go1.8
2017/03/20 17:55:16 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.9.1/bin/terraform", "state", "mv", "module.bear_advance_app.module.advance_cache_sg.aws_security_group.service", "module.bear_advance_app.module.advance_cache.module.service_sg.aws_security_group.service"}
2017/03/20 17:55:16 [DEBUG] Detected home directory from env var: /Users/jeff
2017/03/20 17:55:16 [DEBUG] Detected home directory from env var: /Users/jeff
2017/03/20 17:55:16 [DEBUG] Attempting to open CLI config file: /Users/jeff/.terraformrc
2017/03/20 17:55:16 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/03/20 17:55:16 [DEBUG] Detected home directory from env var: /Users/jeff
2017/03/20 17:55:16 [INFO] CLI comman
2017/03/20 17:48:49 [INFO] Terraform version: 0.9.1
2017/03/20 17:48:49 [INFO] Go runtime version: go1.8
2017/03/20 17:48:49 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.9.1/bin/terraform", "state", "mv", "module.bear_advance_app.module.advance_cache_sg.aws_security_group.service", "module.bear_advance_app.module.advance_cache.module.service_sg.aws_security_group.service"}
2017/03/20 17:48:49 [DEBUG] Detected home directory from env var: /Users/jeff
2017/03/20 17:48:49 [DEBUG] Detected home directory from env var: /Users/jeff
2017/03/20 17:48:49 [DEBUG] Attempting to open CLI config file: /Users/jeff/.terraformrc
2017/03/20 17:48:49 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/03/20 17:48:49 [DEBUG] Detected home directory from env var: /Users/jeff
2017/03/20 17:48:49 [INFO] CLI command args: []string{"state", "mv", "module.bear_advance_app.module.advance_cache_sg.aws_security_group.service", "module.bear_advance_app.module.advance_cache.module.service_sg.aws_security_group.se
@tjwallace
tjwallace / astronomy_software.md
Last active August 29, 2015 14:13
Astronomy Software

AstroPlanner

  • Website
  • OS: Windows, OSX
  • Cost: $45 USD

Facilitates astronomical observation planning, visualisation and logging, as well as control of telescopes with computerised go-to mounts.

TheSkyX Professional

Keybase proof

I hereby claim:

  • I am tjwallace on github.
  • I am tjwallace (https://keybase.io/tjwallace) on keybase.
  • I have a public key whose fingerprint is 240B CDEB 6AC4 083B E11C DF4A 9485 A298 8BEF 9040

To claim this, I am signing this object:

From 2c6ea1df2198a25279f9d09832c901d42a41127c Mon Sep 17 00:00:00 2001
From: Jeff Wallace <[email protected]>
Date: Fri, 17 Jan 2014 14:12:18 -0800
Subject: [PATCH] Patch Time#== and Date#== to only check up to microsecond
equality
---
spec/lib/time_patch_spec.rb | 49 +++++++++++++++++++++++++++++++++++++++++++++
spec/support/time_patch.rb | 23 +++++++++++++++++++++
2 files changed, 72 insertions(+)
diff --git a/db/schema.rb b/db/schema.rb
index 7bb0e1f..a5c9b4c 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -309,13 +309,11 @@ ActiveRecord::Schema.define(:version => 20131204133419) do
t.integer "position"
t.string "type", :default => "WidescreenDealPhoto", :null => false
t.integer "prefix"
- t.integer "variant_id"
end
@tjwallace
tjwallace / 0_README.md
Last active December 13, 2015 19:39 — forked from nilcolor/0_README.md

ruby-1.9.3-p385 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p385 with the railsexpress patchsets: https://github.com/skaes/rvm-patchsets

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

@tjwallace
tjwallace / Vagrantfile
Created February 10, 2012 06:17
setup chef server
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "lucid64"
require 'benchmark'
require 'net/http'
require 'uri'
def network_read(uri)
Net::HTTP.get_response uri
end
n = 100
uri = URI('http://google.com/')