Skip to content

Instantly share code, notes, and snippets.

View mgoellnitz's full-sized avatar

Martin Göllnitz mgoellnitz

View GitHub Profile
@mgoellnitz
mgoellnitz / bintrayPublication.sh
Last active May 14, 2017 10:26
Generic Bintray Publication Helper from local Apache Maven Repositories
#
# Copyright 2015-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,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@mgoellnitz
mgoellnitz / build.gradle
Last active May 14, 2017 23:13
Dummy Gradle build file for git-cloned wikis from GitHub.com have decent editing from within IDE (NetBeans that is)
/*
*
* Dummy gradle file to be able to edit the wiki contents easily from within my IDE NetBeans.
*
*/
apply plugin: 'java-base'
sourceSets {
main {
resources {
@mgoellnitz
mgoellnitz / fossil-git-mirror.sh
Last active November 16, 2016 23:57
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,
@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 / 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 / cherry-pick-last-commit.sh
Last active May 11, 2017 09:44
Cherry-pick the last commit from the current (master) branch to a given branch
#!/bin/bash
#
# 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 / 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 / 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 / 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 / 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,