Skip to content

Instantly share code, notes, and snippets.

View jeremysimmons's full-sized avatar

Jeremy Simmons jeremysimmons

View GitHub Profile
@jacargentina
jacargentina / PHPSerializer.cs
Created March 7, 2018 17:16
C# deserialize php
/// <summary>
/// Serializer Class.
/// </summary>
public class PHPSerializer
{
//types:
// O = Object
// N = null
// s = string
// i = int
@lukecav
lukecav / Commands
Last active July 30, 2025 10:07
Speed up wp db export using WP-CLI
# Export site database using wp db export
wp db export /wp-content/wordpress-dump.sql --all-tablespaces --single-transaction --quick --lock-tables=false
# Gzip compress the recent database export
gzip wordpress-dump.sql
# Export sites database using wp db export and gzip compress
wp db export --all-tablespaces --single-transaction --quick --lock-tables=false - | gzip -9 - > wordpress-dump.sql.gz
@jherax
jherax / configure.md
Last active July 3, 2025 12:33
VS Code: Debugging with Jest

VS Code: Debugging Jest

Sometimes, debugging with console.log is not enough to find out what is happening in the code, as console.log prints only plain objects but neither functions nor objects with circular references. Besides, it's possible you may need to know the context and flow of the code.

Read more about debugging with VS Code in VS Code: Debugging.

@philcampbell-qhr
philcampbell-qhr / cities.txt
Created January 8, 2020 22:51
list of cities/towns in Canada
100 Mile House, British Columbia
108 Mile House, British Columbia
108 Mile Ranch, British Columbia
150 Mile House, British Columbia
Abbey, Saskatchewan
Abbotsford, British Columbia
Aberarder, Ontario
Abercorn, Quebec
Aberdeen, Saskatchewan
Abernethy, Saskatchewan