Skip to content

Instantly share code, notes, and snippets.

View alexlondon07's full-sized avatar
:octocat:
Full-Stack Developer

Alexander Londoño Espejo alexlondon07

:octocat:
Full-Stack Developer
View GitHub Profile
@alexlondon07
alexlondon07 / tablapaises.sql
Created November 21, 2022 22:35 — forked from angeldelrio/tablapaises.sql
Tabla MySQL paises el mundo en español
CREATE TABLE `paises` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) DEFAULT NULL,
`nombre` varchar(80) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
INSERT INTO `paises` VALUES(1, 'AF', 'Afganistán');
INSERT INTO `paises` VALUES(2, 'AX', 'Islas Gland');
INSERT INTO `paises` VALUES(3, 'AL', 'Albania');
############################################################################################################
################## #############################
################## #############################
This Gist collection contains all localstack related examples
################## #############################
################## #############################
############################################################################################################
@alexlondon07
alexlondon07 / MySql-PhpMyAdmin-SpringBoot-Angular-Docker-Compose.yaml a docker compose file for MySql, PhpMyAdmin, SpringBoot and Angular CRUD web application
version: "3.3"
#Define services
services:
#MySql Database for application
mysql-db:
image: mysql
restart: always
container_name: mysql-db
@alexlondon07
alexlondon07 / atajosEclipse.textile
Created February 18, 2021 23:59 — forked from bertocq/atajosEclipse.textile
Atajos de teclado para Eclipse

Atajos de teclado para Eclipse (y derivados como ZendStudio)

Para editar un comando: Window → Preferences → General → Keys

Edición

Ctrl+D elimina la línea actual (en la que se encuentra el cursor)
Ctrl+Shift+F formatear código (tabulaciones, saltos de línea,…)
@alexlondon07
alexlondon07 / gist:3403b09d2180f661349330b7356edc09
Created November 28, 2020 21:59
How to find the invalid controls in angular 4 reactive form
public findInvalidControls() {
const invalid = [];
const controls = this.AddCustomerForm.controls;
for (const name in controls) {
if (controls[name].invalid) {
invalid.push(name);
}
}
return invalid;
}
@alexlondon07
alexlondon07 / Dockerfile
Last active October 12, 2020 22:32 — forked from jcavat/Dockerfile
docker-compose with php/mysql/phpmyadmin/apache
FROM php:7.1.2-apache
RUN docker-php-ext-install mysqli
@alexlondon07
alexlondon07 / gist:3def2bb221e6528d4541960b063de81d
Last active October 12, 2020 01:16
Crear ambiente de desarrollo con apache y php y mysql sobre docker
Crear ambiente de desarrollo con apache y php y mysql sobre docker
Como les indicaba al principio, el gran problema es empezar, pero si tenemos docker instalado como les mostramos (en mi caso utilizo ubuntu 20.04) el resto es muy sencillo.
En primer lugar crearemos la carpeta donde vamos a trabajar y dentro de ella pondremos:
nano docker-compose.yml
dentro de este documento:
version: '3.7'
##Gracias por ser parte de https://luiszambrana.com.ar
@alexlondon07
alexlondon07 / Dockerfile
Created October 9, 2020 20:57 — forked from michaelneu/Dockerfile
docker-compose configuration for PHP with NGINX and MySQL, including sendmail, MailDev and phpmyadmin
# see https://github.com/cmaessen/docker-php-sendmail for more information
FROM php:5-fpm
RUN apt-get update && apt-get install -q -y ssmtp mailutils && rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install mysql mysqli sysvsem
RUN pecl install xdebug-2.5.5 \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security
@alexlondon07
alexlondon07 / change.sql
Created June 29, 2020 17:25 — forked from wilxsv/change.sql
Reemplazar acentos y caracteres especiales en mysql
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'Á','A');
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'É','E');
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'Í','I');
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'Ó','O');
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'Ú','U');
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'Ñ','N');
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'ã','a');
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'ä','a');
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'å','a');