🤘
Rocking this project.
Full-stack WordPress and Drupal developer. Founding partner at Copper Note.
-
Copper Note
- Richmond, VA
- https://mikengarrett.com/
- @[email protected]
Pinned Loading
-
All those damned wp-config constants...
All those damned wp-config constants you can never remember. 1<?php
2// PHP memory limit for this site
3define( 'WP_MEMORY_LIMIT', '128M' );
4define( 'WP_MAX_MEMORY_LIMIT', '256M' ); // Increase admin-side memory limit.
5 -
Chained WordPress CLI commands to in...
Chained WordPress CLI commands to install and activate recommended plugins. 1# wordpress-seo provides ability to edit meta information and provides sitemap.
2# w3-total-cache provides advanced caching no matter the server technology available.
3# better-wp-security provides brute force protection and a number of WordPress enhancements.
4# google-analytics-for-wordpress provides robust Google Analytics integration through the Google API.
5# redirection detects 404s and 301s and allows admins to set up redirects in the WP admin.
-
Imagemagick recursively reduce files...
Imagemagick recursively reduce files to < 800x600 and 72ppi 1# This is a bash script meant to be run on the command line. Requires imagemagick (apt-get install imagemagick)
2## THIS WILL OVERWRITE YOUR FILES, uses sudo and may not require it.
3for file in /path/to/files/*/*.jpg; do sudo convert $file -resize '800x600>' -density 72 $file; done
45### another method using resolution (800*600)
-
Change file permissions to 664, dire...
Change file permissions to 664, directory permissions to 775 1// Run this from the command line.
2// h/t: http://superuser.com/questions/91935/how-to-chmod-755-all-directories-but-no-file-recursively#answer-91966
34// add read/execute to world, remove write
5chmod -R u+rwX,g+rwX,o+rX-w path/
-
Insert new user administrator accoun...
Insert new user administrator account into WordPress via the database 1# Grabbed for reference from http://www.wpbeginner.com/wp-tutorials/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql/
2# Check the table prefix
3# Check the user_id to make sure it is the next in sequence
4# Replace my name and email to your own
5# Username will be demo and the password will be 1234
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.