Categories
GIT

Useful GIT Shortcuts

Branch and checkout out a new branch:

git checkout -b my-lovely-new-branch

Adding all files to stage:

git add -A

Check user info:

git config --list

Force a push (maybe after resetting a branch until a previous point in time):

git push origin your-lovely-branch --force
Categories
Tools

Great Sites for Free Images & Pictures

https://unsplash.com

https://www.pexels.com

Categories
Tools

Sites & Tools for Creating and Finding Icons

IcoMoon App – Icon Font & SVG Generator:

https://icomoon.io/app

Finding all types of icons:

https://www.iconfinder.com/

Categories
Tools

Convert PNG to ICO Tools

Convert PNG to ICO and ICNS Icons Online:

https://iconverticons.com/online/

Converting PNG to .ICO:

https://convertico.com

Categories
Server WordPress

If Your Permalinks Are Not Working

Be sure to have an .htaccess file in the root directory with the following in it:

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Categories
WordPress

Shortest Way to Change Your WordPress Password in MySQL

Run this query:

UPDATE `wp_users` SET `user_pass`= MD5('yourpassword') WHERE `user_login`='yourusername';
Categories
Server Terminal

Don’t Forget To CHMOD 400 Your .PEM File

When trying to SSH to an AWS instance:

CHMOD 400 yourpemfile.pem
Categories
WordPress

Shortest Way to Change Your WordPress Password in MySQL

Run this query:

UPDATE `wp_users` SET `user_pass`= MD5('yourpassword') WHERE `user_login`='yourusername';
Categories
Server

Redirect Domain and WWW Subdomain (both HTTP and HTTPS) to HTTPS Root Domain

Configure so that:

https://www.example.com
http://www.example.com
http://example.com

Redirects to:

https://example.com

Check out this answer and guide:

 

Categories
WordPress

Sometimes If WordPress is Failing, then Re-Install

Manually update, download a fresh copy and replace all files and folders. Backup everything before just in case.

Design a site like this with WordPress.com
Get started