Add the following gems to your Gemfile
:
gem 'activeresource'
gem 'newrelic_api'
Update your bundle:
require 'rack' | |
require 'rack-legacy' | |
require 'rack-rewrite' | |
webroot = File.join(Dir.getwd,'app','webroot') | |
use Rack::Rewrite do | |
rewrite %r{/(.*)}, lambda { |match, rack_env| | |
File.exists?(File.join(webroot,match[1])) ? File.join('app','webroot',match[1]) : '/app/webroot/index.php/%s' % match[1] | |
} |
dtrace: 12538 dynamic variable drops with non-empty dirty list | |
SYSCALL(args) = return | |
madvise(0x10180A000, 0x3000, 0x5) = 0 0 | |
open("/dev/dtracehelper\0", 0x2, 0x7FFF5EF28100) = 3 0 | |
ioctl(0x3, 0x80086804, 0x7FFF5EF28088) = 0 0 | |
close(0x3) = 0 0 | |
open("/dev/urandom\0", 0x20104, 0x2068) = 3 0 | |
fstat64(0x3, 0x7FFF5EF27F30, 0x0) = 0 0 | |
read(0x3, "\317\221\206\f\340\220T\263\364yz\276\026\001\241\212\0", 0x10) = 16 0 |
source 'https://rubygems.org' | |
gem 'benchmark-ips' | |
gem 'json' | |
gem 'multi_json' | |
gem 'oj', platform: [:mri, :rbx] | |
gem 'yajl-ruby', platform: [:mri, :rbx], require: 'yajl' | |
gem 'jrjackson', platform: :jruby | |
gem 'gson', platform: :jruby |
WidgetsController = Ember.ArrayController.extend | |
sortProperties: ["user.firstName"] | |
sortAscending: true | |
actions: | |
sortBy: (sortProperties) -> | |
old = @get("sortProperties") | |
@set "sortProperties", [sortProperties] | |
@toggleProperty "sortAscending" if sortProperties in old | |
return false |
class A | |
def bar(*blah) | |
blah | |
end | |
end | |
class Foo < A | |
def bar(*) | |
no_commands { super } | |
end |
--- | |
AED: | |
code: AED | |
name: Dirhams | |
AFN: | |
code: AFN | |
name: Afghanis | |
symbol: ؋ | |
unicode_hex: 1547 | |
ALL: |
Blank rails app with puma, serving a high_voltage static homepage (https://github.com/mjc/blankrails), warmed with 5 minutes of traffic.
MRI 2.1.2: 4 puma workers
Running 15s test @ http://localhost:3000
1 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
#!/usr/bin/env ruby | |
require 'pathname' | |
path = Pathname.new(ENV['HOME']).join("Library","Application Support","VanDyke","SecureCRT","Config”,”Sessions”,”**.ini") | |
paths = Dir.glob(path) | |
paths.each do |path| | |
lines = File.readlines(path) | |
hostname = nil | |
username = nil | |
lines.each do |line| | |
result = line.match(/S:"(.+)"=(.+)/) |