Skip to content

Instantly share code, notes, and snippets.

@mgoellnitz
mgoellnitz / wipe-unused-cm-references.sh
Created June 8, 2025 23:29
In CoreMedia Blueprint Workspaces locally remove most ancient tags
#!/bin/sh
#
# Wipe most likely unused references from CoreMedia repositories
# before pushing them to our custom repositories.
#
for r in $(git remote) ; do
if [ "$(git remote get-url $r|grep coremedia-contributions|wc -l)" != "0" ] ; then
COREMEDIA=$r
fi
done
@mgoellnitz
mgoellnitz / pdf-remove-page.sh
Created June 8, 2025 23:20
Remove one page from a PDF file - defaults to last one
#!/bin/bash
#
# Copyright 2021-2025 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 / check-actions.sh
Last active June 8, 2025 23:27
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 March 31, 2025 13:34
Find any non-CoreMedia-originating changes in your workspace
#!/bin/sh
#
# 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-2025 Martin Goellnitz
#
@mgoellnitz
mgoellnitz / pdf-compress.sh
Last active March 31, 2025 13:35
Reduce PDF File Size to still readable and printable State
#!/bin/bash
#
# Copyright 2021-2025 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 / beangenerator.sh
Last active March 31, 2025 13:42
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-2025 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 [email protected]
// ==/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 [email protected]
// ==/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,
@mgoellnitz
mgoellnitz / bucketsnip.sh
Last active June 8, 2025 23:15
Bitbucket Snippet Command Line Tool
#!/bin/sh
#
# Copyright 2017-2025 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,