WordPress auto update config

By Zilli,

1. disable FTP commands from config.php
2. add to config.php

// Update core
define( 'WP_AUTO_UPDATE_CORE', true );

optionally for Synology NAS

# reset chown for Synology user nobody
chown -R nobody:nobody /web/wordpress/dir

# reset files and folders chmod in /web/wordpress/dir
find . -type f -exec chmod 0644 {} \;
find . -type d -exec chmod 0755 {} \;

How To Reset Mac OS X User Password In Recovery Mode

By Zilli,

Enter OS X Recovery Mode

To boot into OS X Recovery, the first thing you need to do is to restart your Mac. While restarting, hold down CMD + R until the Apple logo appears. If you time it right, you will enter the recovery mode.

What you need to do next is to go to Utilities > Terminal to open a Terminal. In Terminal, type resetpassword and press Enter.

You will now be presented with the Reset Password window. Next, select your OS X drive. From the drop-down under “Select the user account:”, choose the user account that you want to reset password for.

Type in your new password, re-enter it and try not to forget it this time. You can also choose to write down a hint in the “Enter a new password hint for this user (optional)”, just in case.

Once you’re done, click on Save. You will be prompted with this message saying that your user account password was reset but your keychain is not. Just click OK and close all windows.

Now click the Apple icon at the very top left and choose Restart. You can now enter your account with your new password.

  Category: OS
  Comments: Comments Off on How To Reset Mac OS X User Password In Recovery Mode

Protects your WordPress against brute force login attacks using .htaccess

By Zilli,

write in .htaccess and change example\.com with your domain:

RewriteEngine on
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{HTTP_REFERER} !^http://(.*)?example\.com [NC]
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
RewriteRule ^(.*)$ - [F]

File icons are not showing in Files panel of Dreamweaver CC Mac

By Zilli,

To bring back the lost icons (on Mac) – go to your user configuration folder for DW

~user/library/application support/adobe/Dreamweaver/en_US/Configuration

and edit the Extensions.txt file by adding JPG,GIF,PNG,PDF to the first line (should be the line with ‘:All Documents’)

Now files show up with DW icons and the thousands of console errors are not being generated.

  Category: Apps
  Comments: Comments Off on File icons are not showing in Files panel of Dreamweaver CC Mac