Skip to content

Instantly share code, notes, and snippets.

@dcorrigan
dcorrigan / gist:ec8926bfcc1ae5dd9352
Last active August 29, 2015 14:04
Hub Project Creation and Processing Times (50)

Hub Processing Times

50 of 50 projects ran successfully (100.0%).

Conversions:

Averages:

  • User: 1.8966000000000014
  • System: 0.6532000000000001
@dcorrigan
dcorrigan / gist:7e25b308f766ae6d3127
Created July 29, 2014 18:02
Hub Project Creation and Processing Times (25)

Hub Processing Times

25 of 25 projects ran successfully (100.0%).

Conversions:

Averages:

  • User: 0.6223999999999998
  • System: 0.1732
@dcorrigan
dcorrigan / gist:c5dd4f8b57bd4e42e764
Created July 29, 2014 18:06
Hub Project Creation and Processing Times (10)

Hub Processing Times

10 of 10 projects ran successfully (100.0%).

Conversions:

Averages:

  • User: 0.1339999999999999
  • System: 0.06399999999999999
@dcorrigan
dcorrigan / gist:82f888911d2b0d517deb
Created July 29, 2014 18:30
Hub Project Creation and Processing Times (10, no threads)

Hub Processing Times

10 of 10 projects ran successfully (100.0%).

Conversions:

Averages:

  • User: 0.007999999999999919
  • System: 0.0040000000000000036
@dcorrigan
dcorrigan / install_nokogiri_rmagick_mac_osx_10-9.md
Last active August 29, 2015 14:06
Install Nokogir + RMagick on MAC OSX 10.9

Transmog install on OSX 10.9

NOKOGIRI

  1. git checkout 2.8.0 v of libxml2 for home-brew: https://coderwall.com/p/7urjcg

  2. brew install libxslt libiconv

  3. do not brew link libxslt

@dcorrigan
dcorrigan / hub_workers.rb
Created March 2, 2015 14:52
Thoth::HubWorkers
module Thoth
##
# Thoth::HubWorkers is the class responsible for creating
# and caching a Sidekiq job for a given WFDW
# project conversion. It's arguments are passed to it via
# a REST API.
class HubWorkers
CONVERSIONS = Prepper::CONVERSION_PATHS.keys
CHECKS = Prepper::CHECK_COMMANDS
@dcorrigan
dcorrigan / cmd.sh
Created January 31, 2017 15:07
run command with env vars from file
export $(cat file.env | xargs) && [command]
@dcorrigan
dcorrigan / webpacker-ujs.md
Created April 19, 2017 16:45
Rails 5.1 Webpacker with react_ujs from react-rails

Some quick notes about using Rails 5.1 webpacker gem for React integration and react_ujs to premount components.

For reference, react_ujs is the JS library from react-rails that renders React components with props. It expects a parent with data-react-class and data-react-props set. I don't remember my initial setup, but probably:

bundle exec rails new . --webpack=react --force
yarn add react_ujs
@dcorrigan
dcorrigan / goaccess-multi.sh
Created May 4, 2017 14:38
goaccess parse multiple logs
zcat -f logs/access.log* | goaccess --log-format=COMBINED --ignore-crawlers -a -o report.html
@dcorrigan
dcorrigan / addr2idtt.rb
Last active July 31, 2017 14:29
quick script for wedding list CSV to IDTT for layout
require 'csv'
require 'erb'
class Address
def initialize(row)
@row = row
end
def name
text(@row[0])