Skip to content

Instantly share code, notes, and snippets.

@aniston
aniston / LetsEncrypt.md
Created September 10, 2019 19:05
Title :: LetsEncrypt.md

Let's Encrypt

Examples of getting certificates from Let's Encrypt working on Apache, NGINX and Node.js servers.

Obtain certificates

I chose to use the manual method, you have to make a file available to verify you own the domain. Follow the commands from running

git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
@aniston
aniston / Timelines Chart
Last active September 10, 2019 19:08
Timelines Chart
height: 700
scrolling: yes
@aniston
aniston / .block
Last active May 8, 2018 03:05
DaySchedule
license:
@aniston
aniston / .block
Last active May 8, 2018 02:10
d3 mouseover multi-line chart
license: mit
@aniston
aniston / .block
Created May 8, 2018 02:02
Interactive Line Graph (D3)
license: mit
@aniston
aniston / .block
Last active May 8, 2018 01:51
d3 Swimlane Chart with Mouseover
license: mit
@aniston
aniston / .block
Created May 8, 2018 01:51
d3 mouseover multi-line chart
license: mit
@aniston
aniston / .block
Created May 8, 2018 01:43
Isometric treemap with tree colors (flare)
license: mit
@aniston
aniston / gist:67b324e2454280a2868b5430bd37d09e
Created March 23, 2018 20:00
NodeRed_TimeInHHmmFormat
var now = (new Date()).toTimeString().slice(0,5);
if (msg.payload === now) {
return msg;
}
return null;
@aniston
aniston / Get-ScriptPath.ps1
Last active March 5, 2023 07:36 — forked from glombard/Get-ScriptPath.ps1
Use different techniques to determine a PowerShell script's directory: try `$PSScriptRoot`, `$MyInvocation.MyCommand.Path`, `$ExecutionContext.SessionState.Module.Path` and `$PWD`.
function Get-ScriptPath {
$scriptDir = Get-Variable PSScriptRoot -ErrorAction SilentlyContinue | ForEach-Object { $_.Value }
if (!$scriptDir) {
if ($MyInvocation.MyCommand.Path) {
$scriptDir = Split-Path $MyInvocation.MyCommand.Path -Parent
}
}
if (!$scriptDir) {
if ($ExecutionContext.SessionState.Module.Path) {
$scriptDir = Split-Path (Split-Path $ExecutionContext.SessionState.Module.Path)