Skip to content

Instantly share code, notes, and snippets.

View flyck's full-sized avatar

Felix Brilej flyck

  • Taxdoo GmbH
  • Hamburg
View GitHub Profile
@flyck
flyck / analyzing-gitlab-metrics-sqlite-grafana-guide.md
Last active March 12, 2024 19:15
How to analyse gitlab job metrics via grafana and sqlite

How to analyse gitlab CI/CD job data with Grafana and SQLite

We're using bun for the local runtime, so we'll need a bun init:

bun init

Then we can copy the followign code into index.ts:

import SQLite from 'bun:sqlite';
@flyck
flyck / switch.py
Last active May 27, 2021 15:30
Shortcut for switch environments in IaC repositories
import sys
import os
import pathlib
PREFIX = os.getenv("CE_PREFIX", "environments/")
def main():
""" Find the next environment path to switch to in the current IaC project.
Example:
@flyck
flyck / main.py
Created February 12, 2020 12:32
Coding Task
def determine_taskname(T):
"""
Find the string that is contained in every testcase
"""
i = 1
exists_everywhere = True
while True:
min_taskname = T[0][0:i]
for task in T:
if min_taskname not in task: