Skip to content

Instantly share code, notes, and snippets.

View daniDLL's full-sized avatar
😎

Daniel Delgado daniDLL

😎
View GitHub Profile
@daniDLL
daniDLL / mysql-docker.sh
Created November 9, 2022 13:15 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@daniDLL
daniDLL / _Magento2_DeleteTestData.md
Created September 17, 2021 07:48 — forked from leek/_Magento2_DeleteTestData.md
Magento 2 - Delete All Test Data

These set of scripts are for Magento 2. For Magento 1, see this Gist.

kill -9 `ps -ef | grep 'pattern' | awk '{print $2}'`
@daniDLL
daniDLL / 0_reuse_code.js
Created November 23, 2016 07:39
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console