Skip to content

Instantly share code, notes, and snippets.

View miguel456's full-sized avatar
🌐
Hustling

Miguel Nogueira miguel456

🌐
Hustling
View GitHub Profile
@miguel456
miguel456 / db-error.php
Last active August 1, 2016 13:55 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<?php // Modified version for custom wordpress database error page - php from digwp.com
header('HTTP/1.1 503 Service Temporarily Unavailable');
header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 3600'); // 1 hour = 3600 seconds
/* Delete this comment if you want to be warned by email - This uses PHP's mail(); function so make sure to have it configured on php's config file.
mail("spamless@domain.tld", "subject", "msg", "From: self explanatory");
*/
// Upload this whole file (including html) to /wp-content/ and do not change its name! This file includes the very small change to the fork I made.
?>
<?php
$names = array(array("Cristiano", "Gonçalo", "Tiago", "Cláudia", "Mafalda", "Carolina"), array("Richard", "Steve", "Sam", "Mary", "Caroline", "Carl"));
$actions = array("eating", "fighting", "having sex", "arguing", "cuddling", "watching tv", "cooking dinner", "sleeping");
$ch = $names[rand(0,1)][rand(0,5)] . " and " . $names[rand(0,1)][rand(0,5)] . " are " . $actions[rand(0,7)] . ".";
echo $ch . PHP_EOL;
// Made by Miguel N. (github.com/miguel456). The MIT License.

Keybase proof

I hereby claim:

  • I am miguel456 on github.
  • I am miguelndev (https://keybase.io/miguelndev) on keybase.
  • I have a public key ASAWKRCP3WFDbCo6xpXcfGIb0_fXplb-XQrocUJQPmz2QAo

To claim this, I am signing this object: