Skip to content

Instantly share code, notes, and snippets.

@shornuk
shornuk / localhost-ssl-certificate.md
Created August 21, 2019 21:27 — forked from ethicka/localhost-ssl-certificate.md
Localhost SSL Certificate on Mac OS Sierra and High Sierra

This gives you that beautiful green lock in Chrome. I'm assuming you're putting your SSL documents in /etc/ssl, but you can put them anywhere and replace the references in the following commands. Tested successfully on Mac OS Sierra and High Sierra.

Set up localhost.conf

sudo nano /etc/ssl/localhost/localhost.conf

Content:

[req]
@shornuk
shornuk / Craft3ValetDriver.php
Created February 6, 2018 16:52 — forked from Chrisedmo/Craft3ValetDriver.php
Craft 3 Composer Install Valet Driver
<?php
class Craft3ValetDriver extends ValetDriver
/* https://github.com/laravel/valet/blob/master/cli/drivers/CraftValetDriver.php */
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
{
"animation_enabled": false,
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_complete_with_fields": true,
"caret_extra_bottom": 1,
"caret_extra_top": 2,
"caret_extra_width": 1,
"caret_style": "blink",
"close_windows_when_empty": true,
{
"folders":
[
{
"file_exclude_patterns":
[
"sftp-config.json"
],
"follow_symlinks": true,
"path": "/Users/Sean/Dropbox/Sites/Dev"