Open ssl.conf
in a text editor.
Edit the domain(s) listed under the [alt_names]
section so that they match the local domain name you want to use for your project, e.g.
DNS.1 = my-project.dev
Additional FQDNs can be added if required:
/** | |
* Lazy Man's Saloon Fake | |
* | |
* This will record every request that you make in your application and store it in a folder | |
* based on the name of the test. This is incredibly powerful, but I wouldn't recommend it | |
* for every request if you are doing the same things over as it will waste API calls. | |
* | |
* @return void | |
*/ | |
function lazyFakeSaloon(): void |
<?php | |
namespace YourPlugin\Blocks; | |
abstract class Block{ | |
/** | |
* Block title | |
* | |
* @var string |
<?php | |
/* | |
Plugin Name: Example Custom Post Types | |
Plugin URI: https://deadhandmedia.com/ | |
Description: Adds custom post types and taxonomies. | |
Version: 1.0.0 | |
Author: Tyler Smith | |
Author URI: https://deadhandmedia.com/ | |
License: GPL2 |
<?xml version="1.0"?> | |
<ruleset name="Laravel Standards"> | |
<!-- | |
The name attribute of the ruleset tag is displayed | |
when running PHP_CodeSniffer with the -v command line | |
argument. The description tag below is not displayed anywhere | |
except in this file, so it can contain information for | |
developers who may change this file in the future. | |
--> |
#!/bin/bash -e | |
## | |
# WordPress Installation and VirtualHost Creation | |
# | |
# Description: Installs a WordPress website in the ~/Sites folder, creates a homepage, | |
# cleans up the WP install a bit, deletes the akismet and hello dolly plugins, creates the permalinks, | |
# clones the roots/sage theme framework to the theme folder, deletes all the other WP default themes, | |
# installs/runs npm and bower and runs gulp to create the initial assets, adds a custom gitignore file | |
# to /wp-content, installs the roots/soil plugin, creates a git repo in wp-content, saves the WordPress |
<?php | |
/** | |
* ----------------------------------------------------------------------------------------- | |
* Based on `https://github.com/mecha-cms/mecha-cms/blob/master/system/kernel/converter.php` | |
* ----------------------------------------------------------------------------------------- | |
*/ | |
// HTML Minifier | |
function minify_html($input) { |
The following will guide you through the process of enabling SSL on a Apache webserver
Create a directory within /etc/apache2/
using Terminal.app: sudo mkdir /etc/apache2/ssl
Next, generate two host keys:
# /dir/ means exclude the root folder /dir | |
# /dir/* means get the root folder /dir but not the contents | |
# dir/ means exclude any folder anywhere where the name contains dir/ | |
# Examples excluded: /dir/, /usr/share/mydir/, /var/spool/dir/ | |
# /dir means exclude any folder anywhere where the name contains /dir | |
# Examples excluded: /dir/, /usr/share/directory/, /var/spool/dir/ | |
# /var/spool/lpd//cf means skip files that start with cf within any folder within /var/spool/lpd | |
# | |
# include, + | |
# exclude, - |
// Determine if an element is in the visible viewport | |
function isInViewport(element) { | |
var rect = element.getBoundingClientRect(); | |
var html = document.documentElement; | |
return ( | |
rect.top >= 0 && | |
rect.left >= 0 && | |
rect.bottom <= (window.innerHeight || html.clientHeight) && | |
rect.right <= (window.innerWidth || html.clientWidth) | |
); |