Skip to content

Instantly share code, notes, and snippets.

@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,
@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 March 29, 2026 12:01
GIT recovery support script to easily set some defaults when (re-)cloning a set of repositories
#!/bin/bash
#
# Copyright 2016-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 / gist.sh
Last active March 28, 2026 12:28
Gist Command Line Tool for Single File Gists
#!/bin/sh
#
# Copyright 2016-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 / snip.sh
Last active March 28, 2026 12:28
GitLab Snippet Command Line Tool
#!/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 / clean-old-gitlab-pipelines.sh
Last active March 28, 2026 10:46
Clean old GitLab CI build job's results
#!/bin/bash
#
# Copyright 2017-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 / 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 m.goellnitz@provocon.de
// ==/UserScript==
function deobfuscate() {
var oc = document.getElementsByClassName('sentence');
@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 m.goellnitz@provocon.de
// ==/UserScript==
function deobfuscate() {
var oc = document.getElementById('wi1');
@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 / pdf-compress.sh
Last active March 8, 2026 17:18
Reduce PDF File Size to still readable and printable State
#!/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,