Skip to content

Instantly share code, notes, and snippets.

View blt's full-sized avatar

Brian L. Troutwine blt

View GitHub Profile
puppet agent --server puppet.carepilot.com --waitforcert 30 --test --noop --debug
debug: Failed to load library 'rubygems' for feature 'rubygems'
debug: Failed to load library 'selinux' for feature 'selinux'
debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist
debug: Puppet::Type::User::ProviderPw: file pw does not exist
debug: Puppet::Type::User::ProviderUser_role_add: file roledel does not exist
debug: Puppet::Type::User::ProviderLdap: true value when expecting false
debug: Puppet::Type::File::ProviderMicrosoft_windows: feature microsoft_windows is missing
debug: Failed to load library 'ldap' for feature 'ldap'
debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet]
open("/dev/urandom", O_RDONLY|O_NOCTTY|O_NONBLOCK) = 6
fstat(6, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 9), ...}) = 0
poll([{fd=6, events=POLLIN}], 1, 10) = 1 ([{fd=6, revents=POLLIN}])
read(6, "\311\362C:\257\315:\265\32\245H\310)O\207B\311P9\253:\375\271>?\36\356\231\0032\316\343", 32) = 32
close(6) = 0
getuid() = 0
gettimeofday({1312404696, 528209}, NULL) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat("/var/lib/puppet/ssl/certs/teacup.carepilot.com.pem", 0x7ffff2dbf5e0) = -1 ENOENT (No such file or directory)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
# lspci | grep Wireless
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
# lsmod | grep iwl3945
iwl3945 45764 0
iwlcore 67014 1 iwl3945
mac80211 122866 2 iwl3945,iwlcore
cfg80211 86977 3 iwl3945,iwlcore,mac80211
led_class 1757 4 iwl3945,iwlcore,thinkpad_acpi,sdhci
$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
Usage
rvm-installer [options] [action]
Options
--branch <name> - Install RVM head, from named branch
user { $username:
comment => "$email",
home => "/home/$username",
shell => "/bin/bash",
uid => $uid,
groups => $admin ? {
true => $groups += ['wheel'],
false => $groups,
} += $http ? {
true => [$nginx::params::nx_daemon_user],
# puppet agent --waitforcert 60 --test --noop
err: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
$ puppet master --no-daemonize --compile projects/com/example/server-configuration/
Could not prepare for execution: Got 12 failure(s) while initializing: change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/run/puppet; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /etc/puppet/manifests; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/log/puppet; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/ssl; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/facts; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/bucket; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/rrd; change from absent to directory failed: Could not s
node /^db(w|e)(m|s)\d+\.example\.com/ {
include base
}
# /etc/nginx/sites-enabled/app_vhost
server {
listen 80;
root /var/www/com/example/app/docdir;
server_name *.example.com example.com;
index index.php;
location / {
try_files $uri $uri/ @kohana;
@blt
blt / sql query
Created August 27, 2011 20:55 — forked from mikeyhill/sql query
slow query
SELECT p.name as procedure_name, addr.zip as zip,
s.procedure_id as proc, s.id
FROM slots AS s, procedures AS p, organizations AS o, addresses_organizations as au, addresses as addr
WHERE s.provider_id = o.id
AND s.procedure_id = p.id
AND au.organization_id = o.id
AND addr.id = au.address_id
AND addr.zip LIKE '".$zipcode."%'
ORDER BY random()
LIMIT 5