Your cart is currently empty!
Category: Uncategorized
PHP: Include vs. Require
Both are used to include external file to the script. Include When the file we are trying to include does not exist or the permission is incorrect, this will give you a warning and continue the script. Require When the file we are trying to include does not exist or the permission is incorrect, this…
Tmux: Session, Window, Pane
Session Start a session CTRL-b + d – Detach from current session List sessions CTRL-b + s – Show sessions from inside the session Attach to a session Rename a “nameless” session to something meaningful CTRL-b + $ – Rename current session from inside the session Window CTRL-b + c – Create a new window…
Kubernetes: GatewayAPI Nginx
Install Kubernetes GatewayAPI Install Nginx CRD Install Nginx Create NodePort Service Create Gateway resource References:
Kubernetes: GatewayAPI URLRewrite Filter
In this example, request to /echo or /echo/ (because of the type: PathPrefix) will be rewritten as / and becomes the request of “web” Service. In this example, request only to /echo (because of the type: Exact) will be rewritten as / and becomes the request of “web” Service.
Kubernetes: Service vs. Endpoints vs. EndpointSlice
Service When you create a resource of type Service using kubectl create command, Kubernetes will auto create Endpoints and EndpointSlice. If you are creating the Service using YAML file, then you need to make sure to add spec.selector part. Or else, it will not auto create Endpoint and EndpointSlice. Even though you forget to add…
Podman: Volume Mounting
When you try to mount local folder into the container, but it gives you an error such as: Then what you need to do is to append :Z at the end of the -v flag. References:
Docker: Magento2 Installation
Get Magento2: Install composer Open app/etc/di.xml and go to line 1860. Disable external search modules:
OSX: Disable Keyboard Press and Hold
When you press and hold A in your keyboard, OSX will give you several accented A character to choose from. To disable this behaviour: Then you need to logout and login again before you can see the change. To revert to default behaviour: Logout and login again.