Skip to content

Instantly share code, notes, and snippets.

View marcopgordillo's full-sized avatar
💼
working

Marco Gordillo marcopgordillo

💼
working
View GitHub Profile
@marcopgordillo
marcopgordillo / wp-bootstrap4.4-pagination.php
Created December 16, 2020 12:46 — forked from mtx-z/wp-bootstrap4.4-pagination.php
Wordpress 5.4 Bootstrap 4.4 pagination (with custom WP_Query() and global $wp_query support)
<?php
/**
* @param WP_Query|null $wp_query
* @param bool $echo
* @param array $params
*
* @return string|null
*
* Accepts a WP_Query instance to build pagination (for custom wp_query()),
* or nothing to use the current global $wp_query (eg: taxonomy term page)
@marcopgordillo
marcopgordillo / mysql-docker.sh
Created May 29, 2020 02:32 — 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