Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am horvaro on github.
  • I am horvaro (https://keybase.io/horvaro) on keybase.
  • I have a public key ASAG6GMB5d0hxplaeGU18c025NuMKTCxiAOfZ2pbRZQzJAo

To claim this, I am signing this object:

@horvaro
horvaro / log.sh
Created May 13, 2020 12:31
Simple Bash Logger
#!/usr/bin/env bash
#Usage: log "Hello World!"
LOG_FORMAT="%Y-%m-%d %H:%M:%S %Z"
log() {
echo -e "[$(date +"${LOG_FORMAT}")] $1";
}
@horvaro
horvaro / dotnetcore31_sdk_debian9.sh
Last active September 2, 2020 08:20
.Net Core SDK 3.1 installer for Debian 9 containers
#!/usr/bin/env bash
# .Net Core SDK 3.1 installer for Debian 9 containers
# Invoke --> sh -c "$(curl -fsSL https://gist.githubusercontent.com/horvaro/56a95d7c0f5b97ae69745ffaf5de3607/raw/061da0bce88e9ac86468a3203a31085a686d5900/dotnetcore31_sdk_debian9.sh)"
set -o errexit
set -o nounset
apt-get update; \
apt-get install sudo gpg wget -y
@horvaro
horvaro / Readme.md
Created January 4, 2024 06:41
Azure DevOps Pipelines: Trigger another pipeline from a pipeline in the same organization (with parameters)

You ca use the az command line tool and the built-in Access Token, when you need to trigger a pipeline inside Azure DevOps on the same Organization.

- job:
  displayName: "Run Pipeline"
  steps:
  - bash: |
      az pipelines run --project 'PROJECT' --id 123456 --branch 'main' 
    displayName: 'Trigger Pipeline 123456'
 env: