Skip to content

Instantly share code, notes, and snippets.

@chrishoerl
chrishoerl / cleanup-gitlab-pipelines.sh
Last active September 13, 2024 13:00
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
#
@abayer
abayer / jenkins-git-backup.sh
Last active July 16, 2024 17:17
Example of a script for backing up Jenkins config in git.
#!/bin/bash
#
# Copies certain kinds of known files and directories from a given Jenkins master directory
# into a git repo, removing any old ones, adds 'em, commits 'em, pushes 'em.
#
set -ex
if [ $# -ne 2 ]; then
echo usage: $0 root_dir jenkins_master
@SubhashPavuskar
SubhashPavuskar / JSP Implicit Objects
Last active December 30, 2021 10:39
Available implicit objects Liferay JSP page
request (javax.servlet.ServletRequest)
response (javax.servlet.ServletResponse)
out (javax.servlet.jsp.JspWriter)
pageContext (javax.servlet.jsp.PageContext)
session (javax.servlet.http.HttpS)
application (javax.servlet.ServletContext)
config (javax.servlet.ServletConfig)
page (java.lang.Object)
exception (java.lang.Throwable)