Skip to content

Instantly share code, notes, and snippets.

@mgoellnitz
mgoellnitz / snip.sh
Last active September 27, 2025 02:40
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 / gist.sh
Last active March 31, 2025 13:35
Gist Command Line Tool for Single File Gists
#!/bin/sh
#
# Copyright 2016-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 / coremedia-bin-cm-for-bash.patch
Created November 30, 2016 11:27
Patch CoreMedia Korn Shell based generic tools starter for use with bash
--- ../../../../cmd-tools/cms-tools-application/target/cms-tools/bin/cm 2016-11-28 00:24:07.000000000 +0100
+++ bin/cm 2016-11-29 11:09:06.018023000 +0100
@@ -1,4 +1,4 @@
-#!/bin/ksh
+#!/bin/sh
#
# Copyright (c) 1998-2012 CoreMedia AG, Hamburg. All rights reserved.
#
@@ -13,7 +13,7 @@
# If JAVA_MAIN_ARGS is set in the progname.jpif file, these arguments are passed to the
@mgoellnitz
mgoellnitz / git-recover.sh
Last active June 8, 2025 23:18
GIT recovery support script to easily set some defaults when (re-)cloning a set of repositories
#!/bin/bash
#
# Copyright 2016-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 / git-fossil-mirror.sh
Created October 5, 2016 20:22
Shell script to (re-) mirror git repositories into existing fossil repositories
#!/bin/sh
#
# Copyright 2016 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 / fossil-git-mirror.sh
Last active June 8, 2025 10:53
Shell script to mirror a Fossil SCM repository to github.com
#!/bin/sh
#
# Copyright 2016 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,