Skip to content

Instantly share code, notes, and snippets.

View aheumaier's full-sized avatar

Andreas Heumaier aheumaier

View GitHub Profile
@aheumaier
aheumaier / azure-pipelines.yaml
Created May 27, 2020 12:52
Enable shellcheck in your Azure Pipelines
# 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
trigger:
- master
pool:
vmImage: 'ubuntu-18.04'
@aheumaier
aheumaier / Elasticsearch on Azure Guidance.md
Last active August 1, 2019 15:33
Tesco Elasticsearch recommendation

Running Elasticsearch on Azure

Overview

Elasticsearch is a highly scalable open-source search engine and database. It is suitable for situations that require fast analysis and discovery of information held in big datasets. Common scenarios include:

  • Large-scale free text search, where documents that match combinations of search terms can be quickly located and retrieved.

  • Event logging, where information can arrive from a variety of sources. The data may need to be

@aheumaier
aheumaier / FullDump_require_azure_sdk.md
Created August 20, 2018 13:35
ruby -w -e 'require "azure_mgmt_compute"'
$# ruby -w -e 'require "azure_mgmt_compute"'
/var/lib/gems/2.5.0/gems/ms_rest-0.7.2/lib/ms_rest/http_operation_error.rb:66: warning: assigned but unused variable - ex
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:70: warning: loading in progress, circular require considered harmful - /var/lib/gems/2.5.0/gems/azure_mgmt_compute-0.18.0/lib/azure_mgmt_compute.rb
        from -e:1:in  `<main>'
        from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:39:in  `require'
        from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:135:in  `rescue in require'
        from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:135:in  `require'
        from /var/lib/gems/2.5.0/gems/azure_mgmt_compute-0.18.0/lib/azure_mgmt_compute.rb:13:in  `<top (required)>'
 from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:70:in `require'
@aheumaier
aheumaier / JenkinsHackfestBerlin.md
Last active August 2, 2018 08:45
Jenkins Hackfest Berlin

Jenkins Hackfest Berlin

Outline

Teams often spend days manually setting up Jenkins, pipelines and implementing CI/CD effectively.

To allivate this CloudBees has been investing resources into the proposed Jenkins subproject Jenkins X: An opinionated continuous delivery solution for development and delivery of modern cloud applications on Kubernetes. Jenkins X has taken a Kubernetes-first approach, using best-of-breed solutions from the Kubernetes ecosystem, melded with DevOps best practices.

The Jenkins X project has focused on getting the plumbing right around the Kubernetes-based continuous delivery platform and includes an easy-to-use CLI to interact with it. CloudBees has been experimenting with a prototype concept that is currently known as CloudBees for Kubernetes. This UI-based application focuses on visualising the activities, resources and deployments that form part of a continuous delivery journey of Kubernetes-based appl

@aheumaier
aheumaier / query.rb
Last active May 31, 2018 11:21
CosmosDB Aggreates Pipeline Abilities
# query sammple on aggregation
require 'mongo'
client = Mongo::Client.new('mongodb://mymongosample:MYSECRET==@mymongosample.documents.azure.com:10255/debugSample?ssl=true&replicaSet=globaldb')
collection = client[:Hazard]
# Yields a BSON::Document.
def output(data)
puts 'Found ' + data.count.to_s + ' documents'
data.to_a[0..3].each do |doc|