Skip to content
View MikeNGarrett's full-sized avatar
🤘
Rocking this project.
🤘
Rocking this project.

Block or report MikeNGarrett

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. 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
    3
    define( 'WP_MEMORY_LIMIT', '128M' );
    4
    define( 'WP_MAX_MEMORY_LIMIT', '256M' ); // Increase admin-side memory limit.
    5
    
                  
  2. 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.
  3. 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.
    3
    for file in /path/to/files/*/*.jpg; do sudo convert $file -resize '800x600>' -density 72 $file; done
    4
    
                  
    5
    ### another method using resolution (800*600)
  4. 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
    3
    
                  
    4
    // add read/execute to world, remove write
    5
    chmod -R u+rwX,g+rwX,o+rX-w path/
  5. 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