Get subversion files and folders

function ddt_svn_dir_contents($path_to_svn,$sub_dir_path = '.'){
if(file_exists($path_to_svn . '/format')){
$svn = svn_repos_open($path_to_svn);
$svn_fs = svn_repos_fs($svn);
$head = svn_fs_youngest_rev(svn_repos_fs($svn));
$svn_fs_root = svn_fs_revision_root($svn_fs,$head);
return array_keys(svn_fs_dir_entries($svn_fs_root,$sub_dir_path));
}
else return false;
}

print_r (ddt_svn_dir_contents('/srv/svn/reponame','tags/1.0'));

Theme activation hooks

<?php

ActivationHooks::init();

class ActivationHooks {
function init(){
register_activation_hook(__FILE__,array(__CLASS__,'activate'));
register_deactivation_hook(__FILE__,array(__CLASS__,'deactivate'));
}
function activate(){
register_uninstall_hook(__FILE__,array(__CLASS__,'uninstall'));
}
function deactivate(){
// Remove cron jobs here
}
function uninstall(){
// Delete options here
}
}
?>

Self submitting comment template

function self_submit_comment(){ return $_SERVER['HTTP_REFERER']; }//return whatever url you want, just incase you need to redirect to a thank you page

add_action('comment_post_redirect', 'self_submit_comment');