Skip to content

Instantly share code, notes, and snippets.

@Dalmirog-zz
Dalmirog-zz / DeleteDeployments.ps1
Last active August 16, 2016 20:06
Delete all deploments for a Project-Environment
$apiKey = "Your API Key"
$OctopusURL = "Your Octopus URL"
$Header = @{ "X-Octopus-ApiKey" = $apiKey }
$ProjectName = "Your project name"
$EnvironmentName = "Your environment name"
#Getting Environment and Project By Name
$Project = Invoke-WebRequest -Uri "$OctopusURL/api/projects/$ProjectName" -Headers $Header| ConvertFrom-Json
@fredriks
fredriks / setup-certbot.sh
Last active December 17, 2017 19:17
Certbot on Amazon Linux
#!/usr/bin/env sh
wget https://dl.eff.org/certbot-auto
chmod +x certbot-auto
unset PYTHON_INSTALL_LAYOUT
pip install virtualenv --upgrade --user
pip install zope.interface --upgrade --user
# Remove old installation