How to recursively delete directory from command line in windows?

 https://superuser.com/questions/179660/how-to-recursively-delete-directory-from-command-line-in-windows

This removes the directory C:\test, with prompts :

rmdir c:\test /s

This does the same, without prompts :

rmdir c:\test /s /q

Regarding the sudo part of your question, if you need more priviliges, you can first open a new shell as another user account using the runas command, like this:


runas /user:Administrator cmd
rmdir c:\test /s /q

Constant WP_MEMORY_LIMIT already defined in wp-config.php on line

 https://forum.ait-pro.com/forums/topic/constant-wp_memory_limit-already-defined-in-wp-config-php-on-line-130/

This problem is caused by a Theme that added this WP code/constant:  define('WP_MEMORY_LIMIT', '512M'); at the bottom of the wp-config.php file after the require_once(ABSPATH . 'wp-settings.php'); code in the wp-config.php file. No code is supposed to go after this line of code in the wp-config.php file. All custom code in the wp-config.php file needs to be above this line of code.

Upgrade Gatsby Version on Gatsby Cloud

 https://support.gatsbyjs.com/hc/en-us/articles/4402066361619-Upgrade-Gatsby-Version-on-Gatsby-Cloud

Occasionally you'll want to upgrade your gatsby version to take advantage of new features or recent bug fixes. This guide explains what you need to do to upgrade your gatsby version on Gatsby Cloud.

1. Update Dependencies

First specify the gatsby dependency version in your package.json file.

{
  "dependencies": {
    "gatsby": "^3.0.0"
  }
}

2. Update Lock File

This step is only necessary if you commit a lock file to your remote repository. You'll need to run npm install or yarn install to update your package-lock.json or yarn.lock file to ensure your gatsby version is not locked to an earlier version than you intended.

 

3. Commit to Remote Repository

Finally, commit the updated package.json and lock file (if necessary) to your remote repository. After this, the next Gatsby Cloud will install the new gatsby version on the next build.

 

Checking Your Gatsby Version

You can see which version of gatsby is in use by viewing the Raw Logs for your build after performing the update.

 

mceclip0.png

Cold Turkey Blocker

 https://superuser.com/questions/1366153/how-to-get-rid-of-cold-turkey-website-blocker-get-around-the-block Very old question, but still wan...