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
[root@muchef ~]# chef-server -N -e production | |
Merb root at: /usr/lib64/ruby/gems/1.8/gems/chef-server-api-0.9.12 | |
~ No Gemfile found! If you're generating new app with merb-gen this is fine, otherwise run: bundle init to create Gemfile | |
Loading init file from ./config/init.rb | |
[Sun, 24 Oct 2010 16:11:36 -0400] INFO: Loading roles | |
/usr/lib64/ruby/gems/1.8/gems/mixlib-authentication-1.1.4/lib/mixlib/authentication/http_authentication_request.rb:25: warning: already initialized constant MANDATORY_HEADERS | |
/usr/lib64/ruby/gems/1.8/gems/mixlib-authentication-1.1.4/lib/mixlib/authentication/signatureverification.rb:28: warning: already initialized constant SignatureResponse | |
/usr/lib64/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:138:in `union': can't convert Array into String (TypeError) | |
from /usr/lib64/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:138 | |
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' |
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
#!/bin/bash | |
#$JAVA_HOME for all users | |
export JAVA_HOME=/usr/lib/jvm/jre | |
export PATH=$JAVA_HOME/bin:$PATH |
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
#!/bin/sh | |
COUCHDB_URI="http://localhost:5984/chef" | |
curl -H "Content-Type: application/json" -X POST $COUCHDB_URI/_compact >/dev/null 2>&1 | |
for i in users sandboxes roles nodes id_map data_bags cookbooks clients checksums; do | |
curl -H "Content-Type: application/json" -X POST $COUCHDB_URI/_compact/$i >/dev/null 2>&1; | |
done |
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
#!/bin/bash | |
if [ ! "$1" ]; then | |
echo -e "\nRuby ERB syntax checker." | |
echo -e "Usage: `basename $0` <filename>\n" | |
else | |
erubis -x -T '-' "$1" | ruby -c | |
fi |
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
[rhel-source] | |
name=Red Hat Enterprise Linux $releasever - Source | |
baseurl=ftp://ftp.redhat.com/redhat/linux/enterprise/$releasever/en/os/SRPMS/ | |
enabled=1 | |
gpgcheck=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release |
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
group "sysadmins" do | |
gid 2000 | |
members [ "alice", "bob", "frank" ] | |
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
wolfe21@wolfe21-hk47:~/chef/site-cookbooks/bind/attributes$ dd if=/dev/urandom bs=128 count=1 | openssl dgst -md5 -hmac | base64 | |
NmE0NDZkOWYyZGJmZWYwNTgxZWYxNzY5ZGQyMDliZGUK |
![dbench-io.png](https://gist.github.com/atomic-penguin/947346/raw/d15fab8650e0b1459bb742894f307db7b1fe90d2/dbench-io.png)
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
# crontab environment howto | |
# field allowed values | |
# ----- -------------- | |
# minute 0-59 | |
# hour 0-23 | |
# day of month 1-31 | |
# month 1-12 (or names, see below) | |
# day of week 0-7 (0 or 7 is Sun, or use names) | |
0 12 * * * [ -x $HOME/.bash_profile ] && . $HOME/.bash_profile && foo |
OlderNewer