Protect .svn directories using htaccess
// should be done server-wide if you can (another snippet)
<IfModule mod_rewrite.c> RewriteRule ^(.*/)?\.svn/ - [F,L] ErrorDocument 403 "Access Forbidden" IfModule>
2745 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
<IfModule mod_rewrite.c> RewriteRule ^(.*/)?\.svn/ - [F,L] ErrorDocument 403 "Access Forbidden" IfModule>
<DirectoryMatch "^/.*/(\.svn|CVS)/"> Order deny,allow Deny from all DirectoryMatch>
# 1) make yrself a user and stop being root # 2) main web stack + ruby sudo aptitude install -y make screen sudo aptitude install -y apache2 php5 mysql-server sudo aptitude install -y subversion postfix sudo aptitude install -y ruby1.8 ruby1.8-dev rubygems irb sudo aptitude install -y imagemagick librmagick-ruby1.8 librmagick-ruby-doc libfreetype6-dev xml-core # 3) gemz # rubygems appears to be broken as hell. # gem update --system does squat # had to manually d/l rubygems 1.0.1, ruby setup.rb wget http://rubyforge.org/frs/download.php/29548/rubygems-1.0.1.tgz tar xzvf rubygems-1.0.1.tgz cd rubygems-1.0.1 sudo ruby setup.rb sudo gem install rails mongrel merb map_by_method
[myshare] path = /var/test veto files = /var/test/private
iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN \ -j TCPMSS --clamp-mss-to-pmtu
name: lighttpd checkcommand: /bin/ps axww checkregex: /lighttpd/ onfailcommand: /home/USERNAME/lighttpd/restart.rb checkinterval: 600 aftercommandwait: 120 name: lighttpd-external checkcommand: /usr/local/bin/curl -I http://YOURDOMAIN.com:YOURPORT checkregex: /^HTTP/s onfailcommand: /usr/bin/killall -9 lighttpd; /home/USERNAME/lighttpd/restart.rb checkinterval: 600 aftercommandwait: 120
Errno::ECONNREFUSED in Contact#index Connection refused - connect(2) /app/controllers/contact_controller.rb:6:in `index'
[] % telnet barclay.textdrive.com 25 Trying 207.7.108.37... Connected to barclay.textdrive.com. Escape character is '^]'. 220 barclay.textdrive.com ESMTP Postfix ^]
ActionMailer::Base.server_settings = { :address => "barclay.textdrive.com", :port => 25, :domain => 'http://station11.net/', :user_name => "#{username}", # without @domain :password => "#{password}", :authentication => :plain }