Skip to content

Instantly share code, notes, and snippets.

# .NET Core Function App to Windows on Azure
# Build a .NET Core function app and deploy it to Azure as a Windows function App.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/dotnet-core
trigger:
branches:
include:
- main
variables:
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
pool:
vmImage: 'windows-latest'
steps:
package main
import (
"testing"
"github.com/stretchr/testify/assert"
)
var prices = map[rune]int{
'A': 50,
let thingsToCheck = [
"https://www.google.com",
"https://www.fdexample.com",
"https://www.hibri.net",
];
const axios = require("axios");
let checks = thingsToCheck.map((element) => {
return axios.get(element);
@hibri
hibri / cloudSettings
Last active August 11, 2020 10:47
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-11T10:47:24.168Z","extensionVersion":"v3.4.3"}
@hibri
hibri / pipelines-people-culture.md
Created November 20, 2017 16:25
Pipelines, People and Culture

We need to stop thinking about pipelines purely as technical construct. They are much more than that. Fundamentally, pipelines reflect the underlying culture of organisations and how people work.

Behind pipelines there are people. When we change pipelines we change how people work and interact with each other.

This talk is based on what we learned, helping a large government organisation adopt continuous delivery practices. I’ll cover how we navigated the maze of changing how software is delivered.

We’ll look at;

  • A view of delivery pipelines as information conduits
  • The different strategies we used to support people to adopt new ways of working
@hibri
hibri / test.cs
Created July 25, 2016 17:39
HttpMock PR
[Test]
public void Should_match_any_request_that_was_made_with_specific_query_params()
{
var queryParams = new Dictionary<string, string> { { "a", "a" } };
var stubHttp = HttpMockRepository.At(_hostUrl);
stubHttp.Stub(x => x.Get("/endpoint/handler"))
.Return("OK")
.OK();
@hibri
hibri / Dockerfile
Last active August 29, 2015 14:22
Redis Dockerfile
FROM ubuntu:15.04
RUN apt-get update
RUN apt-get install -y build-essential
RUN apt-get install -y zip unzip
RUN apt-get install -y curl
RUN apt-get install -y wget
RUN wget http://download.redis.io/redis-stable.tar.gz
RUN tar xzf redis-stable.tar.gz
{
"widgets" : [
{"name" : "Widget 1"},
{"name" : "Widget 2"}
]
}