André Amorim

Crafting Web Experiences

// All My Notes

  • Check CPU and Processor Information on Linux

    When managing a server, you often need to verify the hardware specifications or the number of available cores. View Detailed CPU Architecture The most readable way to see your CPU model, cache sizes, and virtualization capabilities: View Raw Processor Data If you need to see the raw flags and detailed per-core data directly from the…

  • WordPress Dynamic Site URL

    wp-config.php:

  • Easy PHP Server

  • Generating an SSH Key

    Recommended algorithm, shorter output and more secure: or with a keyphrase: Common RSA algorithm: or with a keyphrase:

  • Clean a Git project as it’s newly cloned

    You might need this mostly if you are unable to pull since the project is not clean. In short, you can use “git reset –hard” to get back to the last commit. But, you can loose the changes you recently made. Before doing this, I recommend stashing your changes first. 1. Optionally, to get latest…

  • Docker permission warning fixes on Linux

    When you first install Docker in Ubuntu, you might get some permission error messages. To fix that, I use the commands below. Error Message:Got permission denied while trying to connect to the Docker daemon socket at …. Initial Fix: .docker folder permission warning fix

  • Search/Replace in page output with NGINX

    If you’re using NGINX web server, add this into your NGINX configuration file to modify output of your webpages:

  • Docker resource usage

  • Easy Headless WordPress with Astro and GraphQL

    AstroPress: https://github.com/rebelchris/astropress Article: https://blog.openreplay.com/building-an-astro-website-with-wordpress-as-a-headless-cms/

  • Docker PHP Increase Upload Limit

    uploads.ini: docker-compose.yml: or Dockerfile:

  • Applications I use on Mac

    Browsers Editors Server Design Communication Video Tools Image Tools FTP Compressing Utilities Packages Task Management Personal: Office

  • Checking Docker Disk Usage

    Need to find what’s eating your storage? Use these two commands: 1. Check Container Sizes Shows the writable layer size vs. the total image size for each container. 2. Overall Storage Summary Shows a summary of images, containers, and volumes. Need more detail? Add the verbose flag to see exactly which items are taking up…

  • NGINX + Bedrock & Sage with Docker Compose

    docker-compose.yml: Dockerfile: NGINX default.conf: