Skip to content

Instantly share code, notes, and snippets.

@aniston
aniston / LetsEncrypt.md
Created Sep 10, 2019
Title :: LetsEncrypt.md
View 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 Sep 10, 2019
Timelines Chart
View Timelines Chart
height: 700
scrolling: yes
@aniston
aniston / .block
Last active May 8, 2018
DaySchedule
View .block
license:
@aniston
aniston / .block
Last active May 8, 2018
d3 mouseover multi-line chart
View .block
license: mit
@aniston
aniston / .block
Created May 8, 2018
Interactive Line Graph (D3)
View .block
license: mit
@aniston
aniston / .block
Last active May 8, 2018
d3 Swimlane Chart with Mouseover
View .block
license: mit
@aniston
aniston / .block
Created May 8, 2018
d3 mouseover multi-line chart
View .block
license: mit
@aniston
aniston / .block
Created May 8, 2018
Isometric treemap with tree colors (flare)
View .block
license: mit
View gist:67b324e2454280a2868b5430bd37d09e
var now = (new Date()).toTimeString().slice(0,5);
if (msg.payload === now) {
return msg;
}
return null;
@aniston
aniston / Get-ScriptPath.ps1
Last active Feb 8, 2017 — 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`.
View Get-ScriptPath.ps1
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)