Skip to content

Instantly share code, notes, and snippets.

@bluearth
bluearth / create_renew_letsencrypt_cert.md
Last active February 26, 2024 08:26
Create & Renew Lets Encrypt Certificate

Install Let's Encrypt ACME Client (certbot)

To request or renew Let's Encrypt certificate. We need an Automated Certificate Management Environment (ACME) client called certbot.

Install certbot on Ubuntu 18.04 LTS

  1. Add certbot PPA and install prerequisites:
@RadoslavGatev
RadoslavGatev / database.json
Last active May 28, 2019 05:17
Resource Template
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"sqlDatabaseName": {
"type": "string",
"metadata": {
"description": "The name of the database"
}
},
@pietergheysens
pietergheysens / CreateVSALMVMs.ps1
Created January 3, 2018 16:28
Create Visual Studio ALM Virtual Machines based on specialized vhd file in Microsoft Azure
Login-AzureRmAccount
Select-AzureRmSubscription -SubscriptionId "<yoursubscriptionid>"
$destinationResourceGroup = Read-Host -Prompt "What's the desired resource group name?"
$numberOfVMs = Read-Host -Prompt "How many VMs do you want to generate?"
$location = "West Europe"
$vmSize = "Standard_F4s_v2"
$accountType = "PremiumLRS"
@keithweaver
keithweaver / put-object-on-aws-s3.php
Last active May 18, 2023 19:20
Upload an image/object to an AWS S3 Bucket using PHP
<?php
// Installed the need packages with Composer by running:
// $ composer require aws/aws-sdk-php
$filePath = "https://example.com/test.png";
require 'vendor/autoload.php';
$bucketName = 'YOUR_BUCKET_NAME';
$filePath = './YOUR_FILE_NAME.png';