This file contains 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
version: "2" | |
services: | |
mysql: | |
image: mysql:5.6 | |
container_name: kodetop.mysql | |
environment: | |
- MYSQL_DATABASE=kodedb | |
- MYSQL_USER=kodeuser | |
- MYSQL_PASSWORD=******** | |
- MYSQL_ROOT_PASSWORD=******** |
This file contains 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
## Inicializar repositorios | |
git init # Crear un repositorio en la carpeta actual | |
git clone [url-repository] # Crear un repositorio basado en un repositorio remoto | |
## Manejo de ramas | |
git branch [branch-name] # Crear una rama desde la rama actual | |
git branch -m [branch-name] # Cambiarde nombre a la rama actual | |
git branch -d [branch-name] # Eliminar una rama local | |
git checkout [branch-name] # Moverse a una rama seleccionada | |
git checkout [commit-hash] # Moverse a un commit seleccionado |
This file contains 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
# Ignore macOS hidden files | |
.DS_STORE | |
# Ignore Windows hidden files | |
Thumbs.db | |
# Ignore Node files | |
node_modules/ | |
# Ignore all log files |
This file contains 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
<?php | |
use PHPMailer\PHPMailer\PHPMailer; | |
use PHPMailer\PHPMailer\Exception; | |
require_once __DIR__ . '/vendor/autoload.php'; | |
$mail = new PHPMailer(true); | |
try { |
This file contains 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
# Manejo de imagenes | |
docker images # Lista todas las imagenes | |
docker pull [image-name] # Descarga una imagen desde docker hub | |
docker build -t [image-name] . # Crea una imagen y le asigna un nombre | |
docker rmi [image-name] # Elimina una imagen usando el nombre | |
docker rmi [image-id] # Elimina una imagen basado el ID | |
# Crear contenedor | |
docker create --name [container-name] [image-name] |
This file contains 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
FROM php:7.3-apache | |
COPY www/ /var/www/html/ | |
RUN docker-php-ext-install mysqli pdo pdo_mysql | |
RUN a2enmod rewrite |
This file contains 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
version: '3' | |
services: | |
web: | |
image: php:7.3-apache | |
container-name: docker-php | |
ports: | |
- "80:80" | |
volumes: | |
- ./www:/var/www/html |
This file contains 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
FROM php:7.2-apache | |
RUN docker-php-ext-install mysqli pdo pdo_mysql | |
RUN a2enmod rewrite |
This file contains 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
version: '3' | |
services: | |
web: | |
build: . | |
container_name: docker-php | |
ports: | |
- "80:80" | |
volumes: | |
- ./www:/var/www/html |
This file contains 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
{ | |
"name": "kodetop/composer", | |
"description": "Composer demo project", | |
"type": "project", | |
"authors": [ | |
{ | |
"name": "Kodetop", | |
"email": "info@kodetop.com" | |
} | |
], |
OlderNewer