Skip to content

Instantly share code, notes, and snippets.

Helge Sverre HelgeSverre

Block or report user

Report or block HelgeSverre

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
samhernandez / haxor.twig
Last active Jan 11, 2020
Craft 3 gain access to admin account for support cases or when owner loses access
View haxor.twig
Resets the username, password, and email address
of the first found Admin account in case of
lost admin access or for support cases.
{% set values = {
username: 'me',
email: ''
} %}
Tam / craft-ngrok.php
Created Jun 27, 2017
How to get ngrok working with Craft CMS during development
View craft-ngrok.php
// When using:
// `ngrok http 80`
$isNgrok = array_key_exists("HTTP_X_ORIGINAL_HOST", $_SERVER) && strpos($_SERVER["HTTP_X_ORIGINAL_HOST"], "ngrok");
$host = 'http://' . $_SERVER[$isNgrok ? 'HTTP_X_ORIGINAL_HOST' : 'SERVER_NAME'] . '/';
return array(
pitch-gist / gist:2999707
Created Jun 26, 2012
HTML: Simple Maintenance Page
View gist:2999707
<!doctype html>
<title>Site Maintenance</title>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
You can’t perform that action at this time.