This file contains 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
# OS X | |
# List affected files | |
find -E . -regex '.*/[-_a-zA-Z0-9]+-[0-9]+x[0-9]+\..+' -print -exec ls '{}' \; | |
# Remove affected files | |
find -E . -regex '.*/[-_a-zA-Z0-9]+-[0-9]+x[0-9]+\..+' -print -exec rm '{}' \; | |
# Downsize all images to 1200px | |
find . -iname "*.jpg" -type f -exec sh -c 'sips -Z 1200 "$0"' {} \; |
This file contains 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
sendmail_path = /path/to/sendmail.php |
This file contains 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
<?php | |
/** | |
* The base configurations of the WordPress. | |
* | |
* This file has the following configurations: MySQL settings, Table Prefix, | |
* Secret Keys, WordPress Language, and ABSPATH. You can find more information | |
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing | |
* wp-config.php} Codex page. You can get the MySQL settings from your web host. | |
* | |
* This file is used by the wp-config.php creation script during the |
This file contains 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
# BEGIN WordPress | |
# END WordPress | |
# ---------------------------------------------------------------------- | |
# Protect WP-Config | |
# ---------------------------------------------------------------------- | |
<files wp-config.php> | |
order allow,deny | |
deny from all |