Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
##
## Verify that conversion of an arc42 template to PDF using docToolchain works
## offline when the build dependencies are cached.
##
## Copyright (C) 2020 Alex Thiessen
##
## SPDX-License-Identifier: AGPL-3.0-or-later
## <https://spdx.org/licenses/AGPL-3.0-or-later.html>
@rico-chet
rico-chet / tarsum
Created September 26, 2019 11:29 — forked from sjmurdoch/tarsum
A small utility to compute checksums on every file inside a tar archive.
#! /usr/bin/env python3
# Copyright (C) 2008-2009 by Guy Rutenberg
# 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 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@rico-chet
rico-chet / delete-merged-branches.bash
Last active October 25, 2018 13:09
Delete local branches merged to a specific branch
#!/usr/bin/env bash
##
## Copyright (C) 2018 Alex Thiessen <alex.thiessen.de+github@gmail.com>
##
## 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; version 3 or later of the License.
##
## This program is distributed in the hope that it will be useful,
@rico-chet
rico-chet / progress.sh
Last active September 16, 2018 11:12
Print colored progress messages in console using Unicode and ANSI escape codes
#!/usr/bin/env bash
##
## Copyright (C) 2018 Alex Thiessen <alex.thiessen.de+github@gmail.com>
##
## 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; version 3 or later of the License.
##
## This program is distributed in the hope that it will be useful,
@rico-chet
rico-chet / join.bash
Last active September 13, 2018 23:54
Bash function `join` that joins a number of elements to a colon-separated variable, gracefully appending to an existing one when present.
#!/usr/bin/env bash
##
## Copyright (C) 2018 Alex Thiessen <alex.thiessen.de+github@gmail.com>
## Copyright (C) 2018 https://unix.stackexchange.com/users/116858/kusalananda
##
## 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 2 of the License, or (at your option) any later
## version.
@rico-chet
rico-chet / git-version-compare.sh
Last active March 14, 2018 12:33
shell script helper for comparing git versions
#!/bin/sh
##
## Copyright (C) 2018 Alex Thiessen <alex.thiessen.de+github@gmail.com>
##
## 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; version 3 or later of the License.
##
## This program is distributed in the hope that it will be useful,