Skip to content

Instantly share code, notes, and snippets.

View chrishoerl's full-sized avatar

chrishoerl

  • Germany
  • 02:44 (UTC +02:00)
View GitHub Profile
@chrishoerl
chrishoerl / jitsi-create-users.sh
Created April 8, 2020 22:12
Create simple user accounts for Jitsi video server
#!/bin/bash
# initially create users
#
# they can log in with Username: user[1,5] and Password: user[1,5]
# example: user1 / user1
#
###########
#
# Requirements: the .env file must contain these settings:
# ENABLE_AUTH=1
@chrishoerl
chrishoerl / cleanup-gitlab-pipelines.sh
Last active April 15, 2024 16:36
Bulk delete gitlab pipelines older than a given date
#!/bin/bash
# Purpose: Bulk-delete GitLab pipelines older than a given date
# Author: github.com/chrishoerl
# GitLab API: v4
# Requirements: jq must be instaled ($ sudo apt install jq)
# API example: https://gitlab.example.com/api/v4/projects
# API example: https://gitlab.example.com/api/v4/projects/<projectid>/pipelines
#
# NOTE: Script is just a dryrun. To really delete pipelines, simply uncomment line 49 to activate
#