Skip to content

Instantly share code, notes, and snippets.

@eripa
eripa / gist:62fd48c9c68523f9bd325b3e48d225e9
Created February 15, 2017 10:09
drop mysql table from dump
START_LINE=$(($(grep -n "Table structure for table \`wp_options\`" dump_tmp.sql | cut -d':' -f 1) -1))
END_LINE=$(($(grep -n "ALTER TABLE \`wp_options\` ENABLE KEYS" dump_tmp.sql | cut -d':' -f 1) +1))
sed "${START_LINE},${END_LINE}d" dump_tmp.sql > dump_tmp-no_options.sql
mv dump_tmp-no_options.sql dump_tmp.sql

Chrome debug

General

Request URL:https://example.com/user/two_factor
Request Method:POST
Status Code:500
Remote Address:10.129.250.100:8080
Referrer Policy:no-referrer