Received unexpected end-of-file from SFTP server - Solved
If you receive the following error when trying to use SFTP: Received unexpected end-of-file from SFTP server This can be solved as follows: sudo nano /etc/ssh/sshd_config Comment out the following line: Subsystem sftp /usr/lib/openssh/sftp-server Insert the following below
Search for text in file Mac/Linux terminal
A very useful thing to be able to do is to find in which files certain text is contained. Open the terminal and run the following command: grep -r "some text to find" /path/to/searchable/folder The -r flag searches through
Exclude file/folder from Wordpress/Ghost rewrite
In your .htaccess file you might have a rule which ensures that all files and folders matching a particular path be handled by Wordpress or Ghost. An example of such a rule would be the following snippet: RewriteCond %{REQUEST_URI} !^/(contact.php)$ RewriteCond %{REQUEST_