This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This script lists all blobs in all containers in all storage accounts of a specified resource group | |
for storageAccount in `az storage account list -g ${1} | jq -r '.[] | .name'`; do | |
for containerName in `az storage container list --account-name ${storageAccount} | jq -r '.[] | .name'`; do | |
blobName=`az storage blob list -c ${containerName} --account-name ${storageAccount} | jq -r '.[] | .name'` | |
[[ ! -z "${blobName}" ]] && echo "${storageAccount}/${containerName}/${blobName}" | |
done | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Reference: https://github.com/nagygergo/jetbrains-toolbox-install/blob/master/jetbrains-toolbox.sh | |
# Note that we grep for linux here, if you are using this on mac/windows please see json output | |
TOOLBOX_URL=$(curl --silent 'https://data.services.jetbrains.com//products/releases?code=TBA&latest=true&type=release' \ | |
-H 'Origin: https://www.jetbrains.com' \ | |
-H 'Accept-Encoding: gzip, deflate, br' \ | |
-H 'Accept-Language: en-US,en;q=0.8' \ | |
-H 'Accept: application/json, text/javascript, */*; q=0.01' \ | |
-H 'Referer: https://www.jetbrains.com/toolbox/download/' \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# usage: unzipy <source.zip> <dest dir> | |
alias unzipy="python -c \"import os, sys, zipfile; zipfile.ZipFile(sys.argv[1], 'r').extractall(sys.argv[2])\"" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | |
ROOT_DIR := $(patsubst %/,%,$(dir $(MAKEFILE_PATH))) | |
.PHONY: %/help | |
%/help: HELP_TARGET = $(subst /help,,$@) | |
%/help: | |
@make -C $(ROOT_DIR) help | grep -Pzo "$(HELP_TARGET)(/\w+)*:.*(\n\s+(.*)?)*\n" | |
### help: Displays this help message. | |
.PHONY: help |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# https://letsencrypt.org/certificates/ | |
- hosts: all | |
tasks: | |
- name: install letsencrypt cross-signed x3 | |
get_url: | |
url: https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem.txt | |
dest: /etc/pki/ca-trust/source/anchors/lets-encrypt-x3-cross-signed.pem | |
register: x3 | |
- name: install letsencrypt cross-signed x4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: all | |
tasks: | |
- name: create custom fact directory | |
file: | |
path: /etc/ansible/facts.d | |
state: directory | |
- name: insert azure fact file | |
copy: | |
src: azure_resolv.fact |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: Template | |
labels: | |
template: dotnet-service-multisource-template | |
metadata: | |
annotations: | |
openshift.io/display-name: .Net Multi-Source Service | |
description: .Net Multi-Source Service | |
iconClass: icon-dotnet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: Template | |
labels: | |
template: jenkins-slave-config-template | |
metadata: | |
annotations: | |
description: | | |
A template to create a Jenkins slave ConfigMap. | |
openshift.io/display-name: Jenkins Slave ConfigMap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# References: | |
# - https://docs.openshift.com/container-platform/3.6/using_images/other_images/jenkins.html#using-the-jenkins-kubernetes-plug-in-to-run-jobs | |
# - https://github.com/jenkinsci/kubernetes-plugin/blob/master/README.md | |
apiVersion: v1 | |
items: | |
- apiVersion: v1 | |
data: | |
dotnet-build-pod: |- | |
<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> | |
<inheritFrom></inheritFrom> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this currently is restricted on OpenShift Online, however is possible on OSD/OCP clusters | |
// we create a dotnet builder pod using the provided jenkins slave image for executing dotnet commands in | |
podTemplate( | |
label: 'dotnet-build-pod', cloud: 'openshift', | |
containers: [ | |
containerTemplate( | |
name: 'dotnet-build-pod', image: 'registry.access.redhat.com/dotnet/dotnet-20-jenkins-slave-rhel7:latest' | |
) | |
]) { | |
node('dotnet-build-pod-x') { |