André Amorim

Crafting Web Experiences

// All My Notes

  • Installing NGINX in a PHP/WordPress container

    Dockerfile: NGINX default.conf:

  • Remove the last Git commit from remote

    Be careful using this, it’s might cause data lose: If you want to still have it in your local repository and only remove it from the remote, then you can use:

  • List files larger than 100MB

    To find files larger than 100MB: If you want the current dir only:

  • Applications I use on Mac

    Browsers Google Chrome (Primary Browser) Safari Mozilla Firefox Opera, when needed Chrome Canary, when needed Editors VS Code with extensions below: Diff (To see differences between two selected files) Docker (For better Docker management and container browsing) DotENV (For .env files support) Edit csv (For editing CSV files with a table UI) EditorConfig for VS…

  • Upgrade a Linux Server

    Ref: https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-ubuntu-18-04

  • Get into a Docker Container’s Shell

    If you’re using Docker Composer in your project: Or, if you want to get into any kind of container: According to your system needs, you might need to add “-it” flag after “exec” parameter. Reference URLs:1. https://docs.docker.com/engine/reference/commandline/compose_exec/2. https://docs.docker.com/engine/reference/commandline/exec/

  • 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…

  • Send a file or directory to remote server on terminal

    To send a file: To send a directory: