Skip to content

Instantly share code, notes, and snippets.

usr/lib/ruby/1.8/chef/node.rb:329:in `json_create': undefined method `each' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/vendor_ruby/json/common.rb:148:in `parse'
from /usr/lib/ruby/vendor_ruby/json/common.rb:148:in `parse'
from /usr/lib/ruby/1.8/chef/rest.rb:202:in `api_request'
from /usr/lib/ruby/1.8/chef/rest.rb:267:in `retriable_rest_request'
from /usr/lib/ruby/1.8/chef/rest.rb:197:in `api_request'
from /usr/lib/ruby/1.8/chef/rest.rb:100:in `get_rest'
from /usr/lib/ruby/1.8/chef/client.rb:151:in `build_node'
from /usr/lib/ruby/1.8/chef/client.rb:84:in `run'
from /usr/lib/ruby/1.8/chef/application/client.rb:215:in `run_application'
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
jQuery ->
branches = $('#ticket_branch_id').html()
console.log(branches)
jQuery(function() {
var a;
return $("#ticket_branch_id").parent().hide(), a = $("#ticket_branch_id").html(), $("#ticket_client_id").change(function() {
var b, c, d;
return b = $("#ticket_client_id :selected").text(), c = b.replace(/([ #;&,.+*~\':"!^$[\]()=>|\/@])/g, "\\$1"), d = $(a).filter("optgroup[label='" + c + "']").html(), d ? ($("#ticket_branch_id").html(d), $("#ticket_branch_id").parent().show()) : ($("#ticket_branch_id").empty(), $("#ticket_branch_id").parent().hide())
})
})
75.221.203.179
ps aux | grep solr
root 927 0.0 0.3 81684 15492 ? S 15:26 0:00 /usr/bin/ruby1.8 /usr/bin/chef-expander -d -c /etc/chef/solr.rb -P /var/run/chef/expander.pid -L /var/log/chef/expander.log -n 1 -i 1
afresta 2223 0.0 0.0 9256 896 pts/0 S+ 15:33 0:00 grep solr
FATAL: Chef Solr is not installed or solr_home_path, solr_data_path, and solr_jetty_path are misc
onfigured.
[Mon, 09 Apr 2012 15:26:55 -0500] FATAL: Your current configuration is:
[Mon, 09 Apr 2012 15:26:55 -0500] FATAL: solr_home_path: /var/lib/chef/solr
[Mon, 09 Apr 2012 15:26:55 -0500] FATAL: solr_data_path: /var/cache/chef/solr/data
[Mon, 09 Apr 2012 15:26:55 -0500] FATAL: solr_jetty_path: /var/lib/chef/solr/solr-jetty
[Mon, 09 Apr 2012 15:26:55 -0500] FATAL: You can install Chef Solr using the chef-solr-installer script.
?php
//GET GPS CO-ORDINATES AND COMPARE THEM TO DATABASE
include '/var/www/include/dbc.php';
app_page_protect();
$userid = mysql_real_escape_string($_SESSION['user_id']);
$shopid = mysql_real_escape_string($_POST['specid']);
$glong= mysql_real_escape_string($_POST['glong']);
$glat = mysql_real_escape_string($_POST['glat']);
events {
worker_connections 1024;
}
http {
passenger_root /home/test/.rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11;
passenger_ruby /home/test/.rvm/wrappers/ruby-1.9.3-p125/ruby;
include mime.types;
default_type application/octet-stream;
2012/04/11 11:33:16 [error] 7352#0: *1 directory index of "/var/www/public/" is forbidden, client: 209.145.177.162, server: status.cleanhands.us, request: "GET / HTTP/1.1", host: "status.cleanhands.us:8081"
2012/04/11 11:33:18 [error] 7352#0: *1 open() "/var/www/public/clients" failed (2: No such file or directory), client: 209.145.177.162, server: status.cleanhands.us, request: "GET /clients HTTP/1.1", host: "status.cleanhands.us:8081"