Skip to content

Instantly share code, notes, and snippets.

View mikedance's full-sized avatar

Michael Dance mikedance

  • The Motley Fool
  • Washington D.C.
View GitHub Profile
@Brachamul
Brachamul / command
Created December 26, 2016 11:40
Set an existing user to superuser using Django shell
python manage.py shell
@MikeNGarrett
MikeNGarrett / wp-config.php
Last active July 25, 2025 09:12
All those damned wp-config constants you can never remember.
<?php
// PHP memory limit for this site
define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' ); // Increase admin-side memory limit.
// Database
define( 'WP_ALLOW_REPAIR', true ); // Allow WordPress to automatically repair your database.
define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true ); // Don't make database upgrades on global tables (like users)
// Explicitely setting url