Skip to content

Instantly share code, notes, and snippets.

View mgoellnitz's full-sized avatar

Martin Göllnitz mgoellnitz

View GitHub Profile
@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 / 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 / snip.sh
Last active January 4, 2024 17:57
GitLab Snippet Command Line Tool
#!/bin/bash
#
# Copyright 2016-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 / 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 / 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 / bucketsnip.sh
Last active January 23, 2023 15:02
Bitbucket Snippet Command Line Tool
#!/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 / gist.sh
Last active December 7, 2022 14:37
Gist Command Line Tool for Single File Gists
#!/bin/bash
#
# Copyright 2016-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 / 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 / git-recover.sh
Last active December 9, 2021 00:35
GIT recovery support script to easily set some defaults when (re-)cloning a set of repositories
#!/bin/bash
#
# Copyright 2016-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 / 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
#