Skip to content

Instantly share code, notes, and snippets.

@i-b1
i-b1 / app.yaml
Last active August 26, 2021 21:30
Google App Engine app.yaml settings file to serve multilingual Angular application
runtime: python27 # simplest hosting option in Google App Engine
api_version: 1
threadsafe: true #
service: myangularapp # could be 'default' if you have only one service
instance_class: F1 # minimal machine
automatic_scaling:
min_instances: 1 # always-on
max_instances: 1 # significant load is not expected for SPA app javascript package
handlers:
trigger:
- none
variables:
vmImageName: 'ubuntu-latest'
stages:
- stage: build
displayName: Build
jobs:
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
@i-b1
i-b1 / gist:dd11f313dcacb0cf0c4fef28dc9fbf6e
Created March 31, 2020 14:44
Azure Logic App deployment script
#Requires -Version 3.0
Param(
[string] [Parameter(Mandatory=$true)] $ResourceGroupLocation,
[string] $ResourceGroupName = '<YOUR RESOURCE GROUP NAME>',
[switch] $UploadArtifacts,
[string] $StorageAccountName,
[string] $StorageContainerName = $ResourceGroupName.ToLowerInvariant() + '-stageartifacts',
[string] $TemplateFile = 'LogicApp.json',
[string] $TemplateParametersFile = 'LogicApp.parameters.json',
@i-b1
i-b1 / BackupFunction.cs
Created March 9, 2020 16:29
Azure DevOps API - Repositories Backup
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
using Microsoft.WindowsAzure.Storage;
using Newtonsoft.Json;
@i-b1
i-b1 / Azure_Devops_Build_Pipeline_Angular.yaml
Last active August 25, 2021 18:06
Azure DevOps build pipeline for Angular
# Azure DevOps build pipeline for Angular
variables:
disable.coverage.autogenerate: 'true'
trigger: none
pool:
vmImage: 'ubuntu-latest'
@i-b1
i-b1 / Azure_Devops_Build_Pipeline_ASPNET_Core.yaml
Created January 6, 2020 21:33
Azure Devops Build Pipeline for ASP.NET Core 3.* applications and C# Azure Functions
# ASP.NET Core (.NET Framework)
# Build and test ASP.NET Core projects;
trigger: none
#- master
pool:
name: Hosted Windows 2019 with VS2019
variables: