Skip to content

Instantly share code, notes, and snippets.

View Nilsty's full-sized avatar
🤖

Nils Balkow-Tychsen Nilsty

🤖
View GitHub Profile
@Nilsty
Nilsty / copy-hum-app-blueprint.py
Last active February 13, 2024 15:25
This script will take a Humanitec application as a blueprint and create a new Humanitec application from it based on the last deployment set. Learn more about Humanitec at www.humanitec.com
"""
This script will take a Humanitec application as a blueprint
and create a new Humanitec application from it based on the
last deployment set in each environment.
Also the pipelines of the application will be copied.
It's required to have your HUMANITEC_TOKEN set as an environment variable
The script takes 3 parameters
1. your Humanitec organization id
@Nilsty
Nilsty / humanitec-metrics-demo.py
Last active September 16, 2021 08:32
Demo Humanitec metrics
import requests
import sys
humanitec_url = "api.humanitec.io"
def printUsage():
print(f"usage: python3 {sys.argv[0]} your-humanitec-api-token")
exit()
if len(sys.argv) != 2:
@Nilsty
Nilsty / kube-library-example.robot
Created September 14, 2020 15:30
KubeLibrary Example
# This is an example test case for the Robot Framework KubeLibrary
# https://github.com/devopsspiral/KubeLibrary
*** Settings ***
Library KubeLibrary None True False
*** Variables ***
${POD_NAME_PATTERN} my-pod-name
${NAMESPACE} my-namespace
${IMAGE_NAME} my-image:1.0.0