Skip to content

Instantly share code, notes, and snippets.

View mgoellnitz's full-sized avatar

Martin Göllnitz mgoellnitz

View GitHub Profile
@mgoellnitz
mgoellnitz / check-actions.sh
Last active January 9, 2024 14:28
Find GitHub/Forgejo/Gitea actions files and check for latest versions
#!/bin/bash
#
# Copyright 2023-2024 Martin Goellnitz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@mgoellnitz
mgoellnitz / find-non-coremedia-changes.sh
Last active January 22, 2024 21:37
Find any non-CoreMedia-originating changes in your workspace
#!/bin/bash
#
# Find any changes in your workspace, which do not stem from the original
# CoreMedia internal sources. Optionally compare with CoreMedia or other
# git reference if there are any false positives from merges.
#
# Must be called from within workspace.
#
# Copyright 2018-2024 Martin Goellnitz
#
@mgoellnitz
mgoellnitz / pdf-compress.sh
Last active December 18, 2023 23:05
Reduce PDF File Size to still readable and printable State
#!/bin/bash
#
# Copyright 2021-2023 Martin Goellnitz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@mgoellnitz
mgoellnitz / deploy.sh
Last active February 20, 2018 21:52
Deploy DXP archive as single node environment from e.g. cron
#!/bin/bash
#
# Deploy provided chef-solo archive if available and delete it
#
# $1 - workspace directory - default ~/coremedia9
# $2 - node descriptor - default cms-9-single
#
# Copyright (c) 2017-2018, Martin Goellnitz
# All rights reserved.
#
@mgoellnitz
mgoellnitz / build.sh
Last active January 13, 2018 10:57
Trigger DXP builds from e.g. cron if the last commit is not equal to the one stored previously
#!/bin/bash
#
# Build workspace if last commit is not equal to the one stored previously.
#
# Optionally uses scp to copy resulting maven artifacts to a remote repository.
#
# $1 - workspace directory - default ~/coremedia9
# $2 - WebDAV/HTTP publishing target - default none
# $3 - WebDAV/HTTP publishing username - default none
# $4 - WebDAV/HTTP publishing password - default none
@mgoellnitz
mgoellnitz / import-theme.sh
Last active March 20, 2018 09:59
Build and import theme for DXP workspaces e.g. from cron
#!/bin/bash
#
# Import theme from given workspace into CoreMedia CMS-9
#
# $1 - importer user - default theme-importer
# $2 - importer user's password - default importingthemes
# $3 - workspace directory - default ~/coremedia9
# $4 - themes subdirectory - default modules/frontend
# $5 - theme - default corporate
#
@mgoellnitz
mgoellnitz / beangenerator.sh
Last active December 19, 2023 00:14
CoreMedia Bean Generator in one Line - multi-version and workspace aware
#!/bin/bash
#
# Call the CoreMedia CAE Bean Generator for any CMS Release, with
# or without workspace context and without separate preparation steps.
#
# Copyright 2017-2023 Martin Goellnitz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@mgoellnitz
mgoellnitz / commerzbank.user.js
Last active July 12, 2017 15:32
Commerzbanking Homescreen Space Retriever
// ==UserScript==
// @name Commerzbank Banking Add Blocker
// @namespace http://quiet.commerzbank.de
// @description Remove annoying add from banking home screen to retrieve space for other widgets
// @include htt*://kunden.commerzbank.de*
// @version 1.0
// @copyright m.goellnitz@provocon.de
// ==/UserScript==
function deobfuscate() {
var oc = document.getElementById('wi1');
@mgoellnitz
mgoellnitz / homee.user.js
Last active July 4, 2017 14:59
Clean Homee Dashboard from annoying and insulting "greeting" by greasemonkey script
// ==UserScript==
// @name Homee Noise Reducer
// @namespace http://home.noisereduc.er
// @description Remove annoying add and rubbish box from web Homee frontend
// @include htt*://*hom.ee*
// @version 1.0
// @copyright m.goellnitz@provocon.de
// ==/UserScript==
function deobfuscate() {
var oc = document.getElementsByClassName('sentence');
@mgoellnitz
mgoellnitz / clean-old-gitlab-pipelines.sh
Last active November 11, 2022 16:30
Clean old GitLab CI build job's results
#!/bin/bash
#
# Copyright 2017-2021 Martin Goellnitz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,