Skip to content

Instantly share code, notes, and snippets.

@phillcoxon
phillcoxon / gist:8293846
Last active January 2, 2016 10:59 — forked from stephenhowells/gist:4021772
Apache conf.d code to hid all .git* folders and files
# do not allow .git version control files to be issued
<Directorymatch "^/.*/\.git+/">
Order deny,allow
Deny from all
</Directorymatch>
<Files ~ "^\.git">
Order allow,deny
Deny from all
</Files>
@phillcoxon
phillcoxon / install.php
Last active December 30, 2015 02:39 — forked from Steveorevo/install.php
WordPress install.php dropin example
<?php
echo 'This has been customized!!!';
// Perform post-install customizations
if ( function_exists( 'add_action' ) ){
add_action( 'wp_mail_content_type' , customize_install );
function customize_install(){
// Switch themes
switch_theme('twentytwelve');