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
# 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 | |
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
title = "AJAX File Upload" | |
url = "/test" | |
layout = "default" | |
is_hidden = 0 | |
== | |
<?php | |
use System\Models\File; | |
function onSubmit() | |
{ |
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
/* | |
Instructions for MacOS: | |
- Install the fonts 'Operator Mono' & 'Fira Code' | |
- Install theme 'Dark Candy' | |
- Add the following config to the VS Code settings.json: | |
{ | |
"editor.renderWhitespace": "all", | |
"editor.fontSize": 14, |
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
# MySQLTuner: https://github.com/major/MySQLTuner-perl | |
# Open Bash with the container. | |
docker exec [mariadb_or_mysql] bash | |
# Change the working directory to `/tmp`. | |
cd /tmp | |
# Install wget. | |
apt-get update |
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
{ | |
"aw": { | |
"name": "Aruba", | |
"alpha-2": "AW", | |
"alpha-3": "ABW", | |
"country-code": "533", | |
"iso_3166-2": "ISO 3166-2:AW", | |
"region": "Americas", | |
"sub-region": "Latin America and the Caribbean", | |
"intermediate-region": "Caribbean", |