Nginx
set $stupid_spider "";
# If the request comes from one of these stupid spiders
if ($http_user_agent ~* (stupid|spider)) {
set $stupid_spider "1";
}Nginx
set $stupid_spider "";
# If the request comes from one of these stupid spiders
if ($http_user_agent ~* (stupid|spider)) {
set $stupid_spider "1";
}| chef_dir = File.expand_path(File.dirname(__FILE__)) | |
| cookbook_path [ | |
| "#{chef_dir}/chef-cookbooks", | |
| "#{chef_dir}/site-cookbooks", | |
| ] | |
| role_path "#{chef_dir}/chef-repo/roles" |
| #!/bin/sh | |
| # Organize files by file extension | |
| # Written in answer to http://unix.stackexchange.com/q/19110/250 | |
| # Configuration (feel free to add your types and change the path) | |
| DOCUMENTS=' | |
| doc | |
| ' |
| #! /bin/sh | |
| # Update: There is no point using this, we have `etc-update' | |
| for new_config in $(find /etc/ -name '._cfg????_*') | |
| do | |
| old_config=$(echo $new_config | sed 's:\([a-zA-Z0-9]*\)\._cfg[0-9]\{4\}_\([a-zA-Z0-9]*\):\1\2:') | |
| if [[ -f "$new_config" || -f "$old_config" ]] | |
| then | |
| mv $new_config $old_config | |
| else |