This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
#Removes access to the system folder by users. | |
#Additionally this will allow you to create a System.php controller, | |
#previously this would not have been possible. | |
#'system' can be replaced if you have renamed your system folder. | |
RewriteCond %{REQUEST_URI} ^system.* | |
RewriteRule ^(.*)$ /index.php?/$1 [L] |
// ES6 | |
var queryString = Object.keys(params).map(key => key + '=' + params[key]).join('&'); | |
const queryString = Object.keys(params).map(function(key) { | |
return key + '=' + params[key] | |
}).join('&'); | |
// ES5 | |
var queryString = Object.keys(params).map(function(key) { | |
return key + '=' + params[key] | |
}).join('&'); |
// Set the date we're counting down to | |
var countDownDate = new Date("2020-03-28 08:24:25").getTime(); | |
// Update the count down every 1 second | |
var x = setInterval(function() { | |
// Get today's date and time | |
var now = new Date().getTime(); | |
// Find the distance between now and the count down date |
<?php | |
// app/Helpers | |
namespace App\Helpers; | |
use Illuminate\Support\HtmlString; | |
use Illuminate\Support\Str; | |
class VueCli | |
{ |
function dateRange( $first, $last, $step = '+1 day', $format = 'Y/m/d' ) { | |
$dates = array(); | |
$current = strtotime( $first ); | |
$last = strtotime( $last ); | |
while( $current <= $last ) { | |
$dates[] = date( $format, $current ); | |
$current = strtotime( $step, $current ); |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
const crypto = require('crypto'); | |
const { promisify } = require('util'); | |
const express = require('express'); | |
const asyncify = require('express-asyncify'); | |
const session = require('express-session'); | |
const createFileStore = require('session-file-store'); | |
const nodemailer = require('nodemailer'); | |
const nodemailerSendgrid = require('nodemailer-sendgrid'); | |
const bodyParser = require('body-parser'); | |
const pass = require('passport'); |
type CamelCase<S extends string> = S extends `${infer P1}_${infer P2}${infer P3}` | |
? `${Lowercase<P1>}${Uppercase<P2>}${CamelCase<P3>}` | |
: Lowercase<S> | |
type KeysToCamelCase<T> = { | |
[K in keyof T as CamelCase<string & K>]: T[K] | |
} | |
type CamelToSnakeCase<S extends string> = S extends `${infer T}${infer U}` ? |