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>
2786 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>
cvs export
cvs checkout
find . -name CVS -prune -exec rm -rf {} \;
#!/bin/bash # sup -- a quick bash script to sync w/ various SCM tools # @author Jamie WilkinsonHERE=$(pwd) ## subversion if [ -e ".svn" ]; then svn up ## cvs elif [ -e "CVS" ]; then cvs up -dP ## darcs elif [ -e "_darcs" ]; then darcs pull --all ## svk elif [ -n "`grep $HERE ~/.svk/config`" ]; then svk up ## git elif [ -e ".git" ]; then git pull ## perforce # todo ## arch # todo ## bzr # todo fi
export CVS_RSH="ssh" export CVSROOT=":ext:me@someserver:/path/to/repository"