Skip to content

Instantly share code, notes, and snippets.

@rchaganti
rchaganti / DSCResourcesISESnippets.ps1
Last active March 13, 2016 11:06
ISE Snippets for DSC Resources (PowerShell 4.0 and 5.0)
$GetTargetResource = @'
#TODO - Add the logic for Get-TagetResource
#TODO - Always return a hashtable from this function
#TODO - Remove $Ensure if it is not required
function Get-TargetResource
{
[OutputType([Hashtable])]
param (
[Parameter()]
[ValidateSet('Present','Absent')]
@learncodeacademy
learncodeacademy / flightplan-deploy.md
Last active January 7, 2024 11:58
Deploy Node.js Apps with Flightplan

##Setup your server (this would ideally be done with automated provisioning)

  • add a deploy user with password-less ssh see this gist
  • install forever npm install -g forever

##Install flightplan

  • npm install -g flightplan
  • in your project folder npm install flightplan --save-dev
  • create a flightplan.js file