This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A worker loop executes a set of registered tasks on a single thread. | |
# A task is a proc or block with a specified call period in seconds. | |
module NewRelic::Agent | |
class WorkerLoop | |
include(Synchronize) | |
attr_reader :log | |
attr_reader :pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if fetch(:php_site, false) | |
logger.info "Deploying PHP site" | |
deploy.task :default do | |
on_rollback { run "rm -rf #{release_path}; true" } | |
strategy.deploy! | |
externals.setup | |
fix_permissions | |
generate_javascript | |
symlink | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loaded symbols for /lib/libresolv.so.2 | |
st_delete (table=0x19efca8, key=0x7fffad52e358, value=0x7fffad52e380) at st.c:387 | |
387 { | |
(gdb) bt | |
#0 st_delete (table=0x19efca8, key=0x7fffad52e358, value=0x7fffad52e380) at st.c:387 | |
#1 0x0000000000430c8f in run_final (obj=15772040) at gc.c:2483 | |
#2 0x0000000000430d66 in finalize_list (p=0xf0a988) at gc.c:1512 | |
#3 0x0000000000431112 in rb_gc_finalize_deferred () at gc.c:2502 | |
#4 0x000000000041c88c in rb_call0 (klass=15710480, recv=39599000, id=3841, oid=3841, argc=0, argv=0x0, body=0xefb0c8, flags=0) at eval.c:5821 | |
#5 0x000000000041d66b in rb_call (klass=15710480, recv=39599000, mid=3841, argc=0, argv=0x0, scope=0, self=28242760) at eval.c:6117 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MemcachedPageCaching | |
CACHE_HEADER = "X-Cache".freeze | |
IGNORED_HEADERS = ['Connection', 'Keep-Alive', 'Proxy-Authenticate', 'Proxy-Authorization', 'TE', 'Trailers', 'Transfer-Encoding', 'Upgrade', 'Set-Cookie'].freeze | |
def initialize(app, *addresses) | |
@app = app | |
@cache = Rails.cache | |
@logger = Rails.logger | |
@logger.info "Initialized MemcachePagecache middleware" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REE_VERSION = "20090201" | |
VENDOR_RUBY_VERSION = begin | |
data = File.read("version.h") | |
data =~ /RUBY_VERSION "(.*)"/ | |
$1 | |
end | |
DISTDIR = "ruby-enterprise-#{VENDOR_RUBY_VERSION}-#{REE_VERSION}" | |
RUBYGEMS_URL = "http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz" | |
RUBYGEMS_PACKAGE = RUBYGEMS_URL.sub(/.*\//, '') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define :memcached_instance, :enable => true do | |
runit_service "memcached-#{params[:name]}" do | |
template_name "memcached" | |
options({:max_memory => node[:memcached][:max_memory], | |
:port => node[:memcached][:port], :user => node[:memcached][:user], | |
:max_connections => node[:memcached][:port]}.merge(params)) | |
end | |
service params[:name] do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/gc.c b/gc.c | |
index f4ec581..b6aa733 100644 | |
--- a/gc.c | |
+++ b/gc.c | |
@@ -881,7 +881,6 @@ rb_newobj() | |
obj = (VALUE)freelist; | |
freelist = freelist->as.free.next; | |
MEMZERO((void*)obj, RVALUE, 1); | |
- RANY(obj)->as.free.flags = FL_ALLOCATED; | |
#ifdef GC_DEBUG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/bin/ruby extconf.rb install /tmp/ruby-libvirt-0.1.0.gem -- --with-_libvirt=/usr/lib | |
*** extconf.rb failed *** | |
Could not create Makefile due to some reason, probably lack of | |
necessary libraries and/or headers. Check the mkmf.log file for more | |
details. You may need configuration options. | |
Provided configuration options: | |
--with-opt-dir | |
--without-opt-dir | |
--with-opt-include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to the Phusion Passenger Apache 2 module installer, v2.1.3. | |
This installer will guide you through the entire installation process. It | |
shouldn't take more than 3 minutes in total. | |
Here's what you can expect from the installation process: | |
1. The Apache 2 module will be installed for you. | |
2. You'll learn how to configure Apache. | |
3. You'll learn how to deploy a Ruby on Rails application. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-rw-r--r-- 1 root root 16358 2009-04-02 18:12 Application.h | |
-rw-r--r-- 1 root root 8086 2009-04-02 18:12 ApplicationPool.h | |
-rw-r--r-- 1 root root 19226 2009-04-02 18:12 ApplicationPoolServerExecutable.cpp | |
-rw-r--r-- 1 root root 24101 2009-04-02 18:12 ApplicationPoolServer.h | |
-rw-r--r-- 1 root root 4501 2009-04-02 18:12 Bucket.cpp | |
-rw-r--r-- 1 root root 1768 2009-04-02 18:12 Bucket.h | |
-rw-r--r-- 1 root root 253016 2009-04-02 18:12 Bucket.o | |
-rw-r--r-- 1 root root 3109 2009-04-02 18:12 CachedFileStat.cpp | |
-rw-r--r-- 1 root root 4894 2009-04-02 18:12 CachedFileStat.h | |
-rw-r--r-- 1 root root 567560 2009-04-02 18:12 CachedFileStat.o |