Skip to content

Instantly share code, notes, and snippets.

View PatrickTC's full-sized avatar

PatrickTC

  • Sydney Australia
View GitHub Profile
@PatrickTC
PatrickTC / gist:1d7506fd30730818b001eddd5b8567f0
Created February 27, 2018 09:28 — forked from jessedearing/gist:2351836
Create self-signed SSL certificate for Nginx
#!/bin/bash
echo "Generating an SSL private key to sign your certificate..."
openssl genrsa -des3 -out myssl.key 1024
echo "Generating a Certificate Signing Request..."
openssl req -new -key myssl.key -out myssl.csr
echo "Removing passphrase from key (for nginx)..."
cp myssl.key myssl.key.org
openssl rsa -in myssl.key.org -out myssl.key
@PatrickTC
PatrickTC / NewUserRegisterForm.php
Created February 21, 2018 23:27 — forked from davebeach/NewUserRegisterForm.php
Extend drupal 8 user register form
<?php
namespace Drupal\my_module\Form;
use Drupal\Component\Datetime\TimeInterface;
use Drupal\Core\Entity\EntityFormBuilderInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
@PatrickTC
PatrickTC / Drupal 8 Links
Last active March 22, 2018 13:47
Drupal 8 stuff that's seemingly impossible to remember and FUN!

Keybase proof

I hereby claim:

To claim this, I am signing this object: