Skip to content

Instantly share code, notes, and snippets.

View imajes's full-sized avatar

James Cox imajes

View GitHub Profile
stat("/home/deploy/apps/village/staging/current/vendor/plugins/formtastic_datepicker_inputs/lib/active_messaging", 0x7fffb4e98400) = -1 ENOENT (No such file or directory)
stat("/home/deploy/apps/village/staging/shared/bundle/ruby/1.8/gems/formtastic-2.0.2/app/assets/active_messaging", 0x7fffb4e98400) = -1 ENOENT (No such file or directory)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
setitimer(ITIMER_VIRTUAL, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2ac6fc56c430) = 30064
rt_sigaction(SIGVTALRM, {0x410df0, [], SA_RESTORER, 0x2ac6fbad2af0}, {0x410df0, [], SA_RESTORER, 0x2ac6fbad2af0}, 8) = 0
setitimer(ITIMER_VIRTUAL, {it_interval={0, 10000}, it_value={0, 10000}}, NULL) = 0
stat("/home/deploy/apps/village/staging/current/lib/active_merchant/billing/gateway.rb", 0x7fffb4e9ac50) = -1 ENOENT (No such file or directory)
stat("/home/deploy/apps/village/staging/current/lib/act
rt_sigaction(SIGVTALRM, {0x410df0, [], SA_RESTORER, 0x2ac6fbad2af0}, {0x410df0, [], SA_RESTORER, 0x2ac6fbad2af0}, 8) = 0
setitimer(ITIMER_VIRTUAL, {it_interval={0, 10000}, it_value={0, 10000}}, NULL) = 0
setitimer(ITIMER_VIRTUAL, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
exit_group(1) = ?
@imajes
imajes / new_relic.fluid.user.js
Created October 4, 2011 01:31
Fluid/ New Relic user script
window.fluid.dockBadge = '';
setTimeout(updateDockBadge, 1000);
setTimeout(updateDockBadge, 3000);
setInterval(updateDockBadge, 5000);
function updateDockBadge() {
var status = document.getElementsByClassName("app_status_info")[1]
var thruput = status.children[0].innerText;
window.fluid.dockBadge = thruput;
}
html {
margin: auto;
margin-top: 1300px !important;
}
body {
width: 2000px !important;
height: 200px !important;
margin-left: 275px !important;
padding: 1px 1px 2px 1px;
on :db, :when => changed?("db/migrate") do
run 'db:migrate'
end
require 'whiskey_disk/helpers'
namespace :unicorn do
# FIXME: could be made a class, cleaner
def pid_file
@pid_file ||= "/var/run/unicorn/village_#{Rails.env}.pid"
end
def pid
require 'formula'
def glib?; ARGV.include? "--with-glib"; end
class PopplerData < Formula
url 'http://poppler.freedesktop.org/poppler-data-0.4.4.tar.gz'
md5 'f3a1afa9218386b50ffd262c00b35b31'
end
class Poppler < Formula
% bundle install
Updating https://github.com/justinfrench/formtastic.git
Updating git://github.com/tomtoday/active_merchant_testing.git
Fetching source index for http://rubygems.org/
Bundler could not find compatible versions for gem "nokogiri":
In Gemfile:
omniauth (~> 0.2.6) depends on
nokogiri (~> 1.4.2)
nokogiri (1.5.0)
(cd ext/glib2 && make)
gcc -I. -I. -I/Users/james/.rvm/rubies/rbx-head/include -I/Users/james/.rvm/gems/rbx-head@redstamp/gems/glib2-0.90.8/ext/glib2 -DHAVE_OBJECT_ALLOCATE -DHAVE_UNISTD_H -DHAVE_G_SPAWN_CLOSE_PID -DHAVE_G_THREAD_INIT -DHAVE_G_MAIN_DEPTH -DHAVE_G_LISTENV -DRUBY_GLIB2_COMPILATION -fPIC -ggdb3 -O2 -fPIC -Wall -I/usr/local/Cellar/glib/2.28.7/include/glib-2.0 -I/usr/local/Cellar/glib/2.28.7/lib/glib-2.0/include -I/usr/local/Cellar/gettext/0.18.1.1/include -I/usr/local/Cellar/glib/2.28.7/include -D_REENTRANT -I/usr/local/Cellar/glib/2.28.7/include/glib-2.0 -I/usr/local/Cellar/glib/2.28.7/lib/glib-2.0/include -I/usr/local/Cellar/gettext/0.18.1.1/include -I/usr/local/Cellar/glib/2.28.7/include -D_REENTRANT -c glib-enum-types.c
gcc -I. -I. -I/Users/james/.rvm/rubies/rbx-head/include -I/Users/james/.rvm/gems/rbx-head@redstamp/gems/glib2-0.90.8/ext/glib2 -DHAVE_OBJECT_ALLOCATE -DHAVE_UNISTD_H -DHAVE_G_SPAWN_CLOSE_PID -DHAVE_G_THREAD_INIT -DHAVE_G_MAIN_DEPTH -DHAVE_G_LISTENV -DRUBY_GLIB2_COMPILATION
# default.gems generated gem export file. Note that any env variable settings will be missing. Append these after using a ';' field separator
abstract -v1.0.0
actionmailer -v3.0.4
actionpack -v3.0.7
actionpack -v3.0.4
activemerchant -v1.15.0
activemerchant -v1.8.0
activemodel -v3.0.7
activemodel -v3.0.4
activerecord -v3.0.4