Skip to content

Instantly share code, notes, and snippets.

@mgoellnitz
mgoellnitz / snip.sh
Last active April 9, 2026 22:16
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 / 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 / git-recover.sh
Last active April 12, 2026 22:58
GIT recovery support script to easily set some defaults when (re-)cloning a set of repositories
#!/bin/bash
#
# (Re-)Clone git repositories with some essential parameters set alongside
# following a small configuration descriptory file mentioning author name
# and email, remotes, push mode, local standard branch, branch tracking-relation
# setup.
#
# Copyright 2016-2026 Martin Goellnitz
#
# This program is free software: you can redistribute it and/or modify
@codegirl-007
codegirl-007 / gist:9c7f7458387f9310b7bd
Last active August 29, 2015 14:17
Create a ManyToMany relationship in EBean
public class EntityList extends Model {
@Id
private Integer id;
@Constraints.Required
public String title;
@Constraints.Required
public String type;