Skip to content

Instantly share code, notes, and snippets.

<DefaultPrinter HP-LaserJet-2430>
AuthInfoRequired username,password
Info HP LaserJet 2430
Location 6 этаж
MakeModel HP LaserJet 2430 hpijs pcl3, 3.11.7
DeviceURI smb://89.175.77.29/HP LJ 2430
State Idle
StateTime 1317202888
Type 8425500
Filter application/vnd.cups-raw 0 -
java -Djruby.backtrace.style=raw -jar start.jar
2011-10-14 14:12:59.473:INFO:oejj.ConnectorServer:JMX Remote URL: service:jmx:rmi://ebatogov/jndi/rmi://localhost:1099/jettyjmx
2011-10-14 14:12:59.722:INFO:oejs.Server:jetty-8.0.3.v20111011
2011-10-14 14:12:59.742:INFO:oejdp.ScanningAppProvider:Deployment monitor /home/coding/jee/jetty-8/webapps at interval 1
2011-10-14 14:12:59.746:INFO:oejd.DeploymentManager:Deployable added: /home/coding/jee/jetty-8/webapps/sample_app2.war
2011-10-14 14:12:59.811:INFO:oejw.WebInfConfiguration:Extract jar:file:/home/coding/jee/jetty-8/webapps/sample_app2.war!/ to /tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp
2011-10-14 14:13:05.087:WARN:oejj.ObjectMBean:No mbean getter or setters found for maxCookieAge in class org.eclipse.jetty.server.session.HashSessionManager
2011-10-14 14:13:05.535:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/sample_app2,file:/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/},/home/coding/jee/jetty-8/webap
module ProjectsHelper
def path_to(page_name)
case page_name
when /^the home\s?page$/
'/'
# Add more mappings here.
# Here is an example that pulls values out of the Regexp:
#
Ticketee::Application.routes.draw do
resources :projects
root :to => "projects#index"
match '/projects/:id', :to => 'projects#show', :as => :project
end
require 'uri'
require 'cgi'
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths"))
Given /^(?:|I )am on (.+)$/ do |page_name|
visit ProjectsHelper.path_to(page_name)
end
When /^(?:|I )follow "([^"]*)"$/ do |link|
click_link(link)
module NavigationHelpers
def path_to(page_name)
case page_name
when /^the home\s?page$/
'/'
# Add more mappings here.
# Here is an example that pulls values out of the Regexp:
#
app-admin/ccze
app-admin/eselect
app-admin/eselect-ecj
app-admin/eselect-postgresql
app-admin/eselect-xvmc
app-admin/sudo
app-admin/syslog-ng
app-admin/system-config-printer-common
app-admin/testdisk
app-admin/verynice
@JohnBat26
JohnBat26 / gist:1465903
Created December 12, 2011 08:26
NGINX + COMET problems ...
Hi all.
We are using nginx-push-stream-module.
And we get next errors:
-----
2011/12/11 18:52:23 [crit] 24244#0: ngx_slab_alloc() failed: no memory
2011/12/11 18:52:23 [error] 24244#0: *73289555 push stream module: unable to allocate worker subscriber queue marker in shared memory, client: 213.85.187.19, server: 172.17.0.4, request: "GET /xxx/v1/sub/106q2chk9s1ld1fd3m1hx9vuib"
2011/12/11 18:52:23 [crit] 24244#0: ngx_slab_alloc() failed: no memory
2011/12/11 18:52:23 [error] 24244#0: *73289563 push stream module: unable to allocate worker subscriber queue marker in shared memory, client: 213.85.187.19, server: 172.17.0.4, request: "GET /xxx/v1/sub/34lgiys1st5ip0t0qkw81gcr?rnd=0.02243080991320312"
----
@JohnBat26
JohnBat26 / gist:1465931
Created December 12, 2011 08:33
NGINX + COMET problems part 2 ...
We have problem with nginx-push-stream-module. After about 10 days of work start to appear messages in nginx error.log:
2011/10/31 04:07:53 [crit] 28137#0: ngx_slab_alloc() failed: no memory
2011/10/31 04:07:53 [crit] 28137#0: ngx_slab_alloc() failed: no memory
2011/10/31 04:07:53 [crit] 28137#0: ngx_slab_alloc() failed: no memory
2011/10/31 04:07:53 [crit] 28137#0: ngx_slab_alloc() failed: no memory
And the nginx-push-stream-module stop work.
Version of nginx-push-stream-module: 0.2.5.
@JohnBat26
JohnBat26 / gist:1466031
Created December 12, 2011 08:55
NGINX + COMET problems part 3 ...
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
28786 root 20 0 3768m 2.4g 6040 S 4.3 30.6 48:52.81 java
18672 memcache 9 -6 1882m 1.1g 580 S 0.3 13.9 339:16.29 memcached
29493 nginx 10 -5 254m 52m 3740 S 0.0 0.7 2:00.67 nginx
29489 nginx 10 -5 253m 51m 3736 S 0.3 0.6 1:44.22 nginx
29490 nginx 10 -5 253m 51m 3736 S 0.7 0.6 1:51.64 nginx
29491 nginx 10 -5 253m 51m 3724 S 0.0 0.6 1:47.43 nginx