Crafting Web Experiences
Delete except a file:
SQL: This is for the wp_users table: And this is for admin capabilities: WP-CLI:
Append the following all and deny all NGINX config directives in server context: If your blog located in /blog/ sub-directory, try: Reference: https://www.cyberciti.biz/faq/nginx-block-url-access-all-except-one-ip-address/
Dockerfile: NGINX default.conf:
Wuxt – https://github.com/northosts/wuxt
You can use map block to get an auth_basic directive argument from the $host variable value: You can use regex expressions with the map directive using ~ modifier, for example: Reference: https://stackoverflow.com/a/69538528
(Origin means remote)
For Docker Compose This will show logs in all services defined in docker-compose.yml file: If you want it to watch all the new logs interactively, use the –follow flag: You might want to see only last 100 records in the screen: You can also see the logs only for specific services in docker-compose.yml: Any Docker…
To increase the memory limit on WordPress, add these configurations into the wp-config.php file:
Be careful, this might cause caching issues on your site. If you have a proxy caching system set up, your changes on your assets may not be reflected to the site.
To be able to see the number of git commits in a project, use this command:
Reference: https://developer.wordpress.org/cli/commands/config/create/
On Mac: It’s different because MacOS requests one more parameter for backing up the original file. If you enter an extension to the empty parameter below, it backs up the original with that suffix: This replaces the file and keeps the original in <file_path>.bak file.