This file will contain information about some PHP based tools that I have to use in order to write software products through PHP frameworks.
- composer: https://getcomposer.org administrador de dependencias para PHP
- packgist: https://packagist.org repositorio de paquetes que posee
composer(lo que seríanpmparanode.js). - 3val: Terminal para PHP (shell) https://3v4l.org/#v
- phUML: Herramienta para UML: https://montealegreluis.com/phuml/docs/installation.html
- Example using the
phUMLtool throughdocker compose
- Example using the
Linter for bash.
https://github.com/koalaman/shellcheck
docker pull koalaman/shellcheck:v0.9.0
docker run --rm -it koalaman/shellcheck:v0.9.0 --version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Location: .docker/api-rest/Dockerfile | |
| from alpine:3.17.2 | |
| run apk update | |
| run apk add \ | |
| python3=3.10.10-r0 \ | |
| py3-pip && \ | |
| pip3 install --no-cache-dir --upgrade fastapi uvicorn[standard] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| db: | |
| image: postgres:latest | |
| container_name: pgsql | |
| hostname: myhost | |
| restart: always | |
| environment: | |
| POSTGRES_DB: test_db | |
| POSTGRES_USER: root | |
| POSTGRES_PASSWORD: root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Jan 27th, 2023. | |
| # | |
| # As Debian user for a long long time I switch to macOS. | |
| # This file will try set that help me during workflow scenarios. | |
| - "command" + "arrow left or arrow right": Move at the start of the end of the line | |
| - "fn" + "a": open the dock, the dock all time live hidden in my desktop to use a fully screen | |
| - use three (3) fingers on the trackpad and move the hand from left to right in order to change quickly from apps. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| This code doesn't belongs to @realFranco. | |
| See: https://stackoverflow.com/questions/72253062/write-unit-tests-for-python-lambda-using-botocore-stub-stubber | |
| """ | |
| import json | |
| import boto3 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Naive Graph Traversing. | |
| console.log("edit a property from a relation"); | |
| $("#id-733e2449d19b455db12241633b28cdab").prop("top_bottom", 0); | |
| $("#id-733e2449d19b455db12241633b28cdab").prop("bottom_top", 0); | |
| console.log("every input relation from the current element"); | |
| $(ID).inRels().each(function(relation) { | |
| if (relation.name){ | |
| console.log(relation); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir -p ~/.docker/cli-plugins | |
| curl -sSL https://github.com/docker/compose/releases/download/v2.11.0/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose | |
| chmod +x ~/.docker/cli-plugins/docker-compose | |
| docker compose version | |
| # Docker Compose version v2.11.0 | |
| # This will let you run docker compose in the new form `docker compose .f compose.yaml up` |
NewerOlder