Skip to content

Instantly share code, notes, and snippets.

View diegoulloao's full-sized avatar
👾
creative mode

Diego Ulloa diegoulloao

👾
creative mode
View GitHub Profile
@diegoulloao
diegoulloao / git-io-custom-url.md
Created October 10, 2019 22:43 — forked from dikiaap/git-io-custom-url.md
git.io custom URL

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
  • https://*.github.com/*
  • https://*.github.io
@diegoulloao
diegoulloao / mysql-docker.sh
Created April 16, 2019 23:49 — 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