This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ** Define environments for different machines. | |
$user = $_ENV['LOGNAME']; | |
$host = $_SERVER['HTTP_HOST']; | |
$environment = $user . ' / ' . $host; | |
switch ($environment) { | |
case 'chrisburbridge / mysite.dev': | |
define('DB_NAME', 'xxxxxxxxx'); | |
define('DB_USER', 'aaaaaaa'); | |
define('DB_PASSWORD', 'mmmmmmmm'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# LoadModule authn_file_module modules/mod_authn_file.so | |
# LoadModule authn_dbm_module modules/mod_authn_dbm.so | |
# LoadModule authn_anon_module modules/mod_authn_anon.so | |
# LoadModule authn_dbd_module modules/mod_authn_dbd.so | |
# LoadModule authn_default_module modules/mod_authn_default.so | |
LoadModule authz_host_module modules/mod_authz_host.so | |
# LoadModule authz_groupfile_module modules/mod_authz_groupfile.so | |
# LoadModule authz_user_module modules/mod_authz_user.so | |
# LoadModule authz_dbm_module modules/mod_authz_dbm.so | |
# LoadModule authz_owner_module modules/mod_authz_owner.so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ** Recommended plugins: Debug Bar, and related plugins (do search on "debug bar") | |
// ** Define environments for different machines. | |
$user = $_ENV['LOGNAME']; | |
$host = $_SERVER['HTTP_HOST']; | |
$environment = $user . ' / ' . $host; | |
// echo "\$environment='{$environment}'"; | |
switch ($environment) { | |
case 'chrisburbridge / mysite.dev': |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type d -exec chmod 755 {} \; | |
chmod -R a+X * | |
find . -type f -exec chmod 644 {} \; | |
find . -type f -name '*.php' -exec chmod 644 {} \; | |
chown christopherburbridge . | |
chown -R christopherburbridge * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
my $search = 'http://old-url.com/'; | |
my $replace = 'https://new-url.org/'; | |
my $length_difference = length($search) - length($replace); | |
my $filename = "exported_bb_template.xml"; | |
# my $filename = "/Users/christopherburbridge/Downloads/test.xml"; | |
open(my $fh, $filename) or die "Could not open file '$filename' $!"; |