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
function focusFirstInput() { | |
var inputElements = document.getElementsByTagName('input'); | |
try { | |
for (var i = 0; i < inputElements.length; i++) { | |
var e = inputElements[i]; | |
// uses jQuery for hasClass() | |
if (e.tagName == 'INPUT' && | |
!$(e).hasClass('nofocus') && | |
(e.type == "text" || e.type == "password") && | |
e.value === '') { |
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
$(function() { | |
$("input:visible:enabled[value='']").not(".nofocus").slice(0, 1).focus(); | |
}); |
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
function! RunShebang() | |
if (match(getline(1), '^\#!') == 0) | |
:!./% | |
else | |
echo "No shebang in this file." | |
endif | |
endfunction | |
map <F5> :call RunShebang()<CR> |
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
chefserver:~/chef-repo(master) chef-client | |
INFO: Starting Chef Run | |
/usr/lib/ruby/1.8/net/http.rb:2097:in `error!': 400 "Bad Request" (Net::HTTPServerException) | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/rest.rb:232:in `run_request' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/rest.rb:230:in `run_request' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/rest.rb:95:in `post_rest' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:227:in `authenticate' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:74:in `run' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:164:in `run_application' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:162:in `loop' |
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
ase node[:platform] | |
when "debian", "ubuntu" | |
%w{automake autoconf libtool subversion-tools help2man build-essential erlang libicu38 libicu-dev libreadline5-dev checkinstall libmozjs-dev wget libcurl4-gnutls-dev}.each {|pkg| package(pkg) } | |
end | |
execute "download_couchdb" do | |
user "root" | |
cwd "/tmp" | |
command "wget http://mirror.public-internet.co.uk/ftp/apache/couchdb/0.9.1/apache-couchdb-0.9.1.tar.gz" | |
creates "/tmp/apache-couchdb-0.9.1.tar.gz" |
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
ase node[:platform] | |
when "debian", "ubuntu" | |
%w{automake autoconf libtool subversion-tools help2man build-essential erlang libicu38 libicu-dev libreadline5-dev checkinstall libmozjs-dev wget libcurl4-gnutls-dev}.each {|pkg| package(pkg) } | |
end | |
execute "download_couchdb" do | |
user "root" | |
cwd "/tmp" | |
command "wget http://mirror.public-internet.co.uk/ftp/apache/couchdb/0.9.1/apache-couchdb-0.9.1.tar.gz" | |
creates "/tmp/apache-couchdb-0.9.1.tar.gz" |
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
[Wed, 29 Jul 2009 21:20:03 -0700] DEBUG: Processing service[couchdb] | |
[Wed, 29 Jul 2009 21:20:03 -0700] DEBUG: service[couchdb] using Chef::Provider::Service::Debian | |
[Wed, 29 Jul 2009 21:20:03 -0700] DEBUG: service[couchdb] supports status, running | |
[Wed, 29 Jul 2009 21:20:03 -0700] DEBUG: Executing /etc/init.d/couchdb status | |
[Wed, 29 Jul 2009 21:20:03 -0700] DEBUG: ---- Begin output of /etc/init.d/couchdb status ---- | |
[Wed, 29 Jul 2009 21:20:03 -0700] DEBUG: STDOUT: | |
[Wed, 29 Jul 2009 21:20:03 -0700] DEBUG: STDERR: Apache CouchDB is not running. | |
[Wed, 29 Jul 2009 21:20:03 -0700] DEBUG: ---- End output of /etc/init.d/couchdb status ---- | |
[Wed, 29 Jul 2009 21:20:03 -0700] DEBUG: service[couchdb]: not enabling, already enabled | |
[Wed, 29 Jul 2009 21:20:03 -0700] DEBUG: Processing directory[/var/lib/couchdb] |
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
mayo:~ sudo virsh dumpxml chefserver | |
Connecting to uri: qemu:///system | |
<domain type='kvm' id='20'> | |
<name>chefserver</name> | |
<uuid>e13f3fac-1a96-253c-2e46-4597ce2c9e44</uuid> | |
<memory>524288</memory> | |
<currentMemory>524288</currentMemory> | |
<vcpu>1</vcpu> | |
<os> | |
<type arch='x86_64' machine='pc'>hvm</type> |
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
2009-07-30_15:25:30.42602 INFO: Starting Chef Run | |
2009-07-30_15:25:30.42602 ERROR: Net::HTTPServerException | |
2009-07-30_15:25:30.42602 FATAL: 400 "Bad Request" | |
2009-07-30_15:25:30.42603 /usr/lib/ruby/1.8/net/http.rb:2097:in `error!' | |
2009-07-30_15:25:30.42603 /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/rest.rb:232:in `run_request' | |
2009-07-30_15:25:30.42603 /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/rest.rb:230:in `run_request' | |
2009-07-30_15:25:30.42604 /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/rest.rb:95:in `post_rest' | |
2009-07-30_15:25:30.42604 /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:227:in `authenticate' | |
2009-07-30_15:25:30.42605 /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:74:in `run' | |
2009-07-30_15:25:30.42605 /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:164:in `run_application' |
OlderNewer