Skip to content

Instantly share code, notes, and snippets.

View Macorreag's full-sized avatar
😎
Writing better code every day

Miller Correa Macorreag

😎
Writing better code every day
View GitHub Profile
@Macorreag
Macorreag / damerau-levenshtein.ipynb
Created April 14, 2020 20:00
Damerau-Levenshtein
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Macorreag
Macorreag / 2474911441600002660 1.svg
Last active October 28, 2021 02:11
Librería de imágenes SVG que pueden acceder mediante la URL Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Macorreag
Macorreag / VSCodeAWSConnection.md
Last active June 10, 2020 23:01
Como conectar tu IDE con Máquinas alojadas en la nube mediante SSH
@Macorreag
Macorreag / sendFiles.md
Last active March 28, 2020 22:36
Se explica como enviar archivos por FTP con las maquinas remotas de AWS usando la clave SSH

1. Importar archivo con la clave en FileZilla

Editar-> Configuración -> Conexión -> SFTP
Click en boton _Agregar Archivo de clave
Busque la ubicación de el archivo con extención ".pem" que obtuvo al crear su instancia en Amazon_

2. Conexión a la instancia de Amazon

  1. Gestor de sitio -> Nuevo Sitio
  2. Llene información
    • Host: nombre DNS de la instancia EC2.
@Macorreag
Macorreag / ComandosDockerTutorial.md
Created March 27, 2020 21:26
ComandosDockerTutorial

Manejo de Containers

Mostrar estado de todos los containers corriendo

$ docker ps -a

CONTAINER_ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b6ed75b83cf6 bulletinboard:1.0 "docker-entrypoint.s…" 3 days ago Exited (0) 21 minutes ago bb
@Macorreag
Macorreag / comandos RAIls
Created March 23, 2020 16:29
comandos RAIls
rails generate model Citation date:date time:time duration:time site:string id_patient:integer description:string id_doctor:integer attendance:boolean
rake db:migrate
git commit -m "se añade un link para acceder a la pagina de inicio"
@Macorreag
Macorreag / control_mysql.sql
Created July 9, 2019 22:17
Controlar servicio de mysql Ubuntu
service mysql stop
@Macorreag
Macorreag / control_Apache2.sh
Last active July 9, 2019 22:19
Comandos para controlar el servidor de apache
sudo /etc/init.d/apache2 stop //Apagar server
sudo update-rc.d apache2 disable // Deshabilitar server ene el arranque
@Macorreag
Macorreag / inyection.sql
Last active June 28, 2019 00:59
Inyección de SQL en pagina de prueba BadStore.net montada en VirtualBox
config red of Vbox
(Red->adaptador1->Adaptador solo anfitrion->unico que hay )
Modify ip access to
etc/hosts
write->[ifconfig on ubuntu IP public] www.badstore.net
Inyection of SQL
First login with
@Macorreag
Macorreag / Commands.sh
Created June 15, 2019 22:39
Comandos para instalar typo3 en Ubuntu 16.04
unzip typo3_src-8.7.26.zip -d /var/www/html/
cd /var/www/html/
sudo mv typo3_src-8.7.26/ test
ls -l test
chown www-data:www-data -R test
chmod -R 775 test
locate php.ini