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
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
fastcgi_param PATH_INFO $fastcgi_path_info; | |
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_param QUERY_STRING $query_string; | |
fastcgi_param REQUEST_METHOD $request_method; | |
fastcgi_param CONTENT_TYPE $content_type; | |
fastcgi_param CONTENT_LENGTH $content_length; |
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
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 |
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
# /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; |
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
node /^db(w|e)(m|s)\d+\.example\.com/ { | |
include base | |
} |
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
$ 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 |
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
# 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 |
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
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], |
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
$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
Usage | |
rvm-installer [options] [action] | |
Options | |
--branch <name> - Install RVM head, from named branch |
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
# 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 |
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
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 |