Skip to content

Instantly share code, notes, and snippets.

@mgoellnitz
mgoellnitz / find-non-coremedia-changes.sh
Last active October 8, 2025 18:39
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 / check-actions.sh
Last active March 8, 2026 17:24
Find GitHub/Forgejo/Gitea actions files and check for latest versions
#!/bin/sh
#
# Copyright 2023-2026 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 / pdf-remove-page.sh
Last active March 8, 2026 17:18
Remove one page from a PDF file - defaults to last one
#!/bin/sh
#
# Copyright 2021-2026 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 / wipe-unused-cm-references.sh
Last active March 8, 2026 17:16
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