Skip to content

Instantly share code, notes, and snippets.

View jjack-vertex's full-sized avatar

Jeff Jack jjack-vertex

View GitHub Profile
@jjack-vertex
jjack-vertex / mysql-dump-tables-by-prefix.txt
Last active December 8, 2020 03:10 — forked from tofirius/mysql-dump-tables-by-prefix.txt
MySQL dump of tables that begin with a given prefix
mysql database_name -u username -pPassword -N -e 'show tables like "tableprefix\_%"' | xargs mysqldump database_name -u username -pPassword > prefixedtable_dump.sql
@jjack-vertex
jjack-vertex / ngrok-and-jetpack.md
Created September 26, 2019 18:46 — forked from mjangda/ngrok-and-jetpack.md
How to connect ngrok to your local WordPress environment (props @DanReyLop)

How to develop with Jetpack locally with ngrok

To connect Jetpack in your local installation, you'll need a way for WP.com servers to reach your server. That can be done in a number of different ways:

  • You can open your router's ports and use your public IP
  • You can use some kind of Dynamic DNS provider.

But these options fall short of ngrok, which is a "localhost tunnel". It basically allows the Internet to hit a local port on your machine without worrying about ports or IPs.

As long as ngrok is running, Jetpack / WP.com will be able to communicate with your local site. This will allow remote modules like Site Search and Manage to work.