Skip to content

Instantly share code, notes, and snippets.

View tuxpeople's full-sized avatar

Thomas Deutsch tuxpeople

View GitHub Profile
@tuxpeople
tuxpeople / get_latest_release.sh
Created February 19, 2021 09:28
Shell - Get latest release from GitHub API
# This gets the newest release version from a project.
# Even if they to not set the "latest" tag.
# And even if they release multiple version paths.
# Needs jq.
#
# Usage:
# $ get_latest_release "rancher/rke"
#
get_latest_release() {
curl --silent "https://api.github.com/repos/$1/releases" | # Get releases from GitHub api
@tuxpeople
tuxpeople / raspbian-image-enable-ssh
Last active October 3, 2020 09:41
Script to enable SSH on Raspbian .img image files
#!/bin/bash
# Andrew Oakley aoakley.com Public Domain 2016
# Check out cotswoldjam.org for RPi events in Gloucestershire
# I recommend you place this script in /usr/local/sbin
#
# Changes and additions by Thomas Deutsch
#
# Thanks to https://raspberrypi.stackexchange.com/a/99531
#

Keybase proof

I hereby claim:

  • I am tuxpeople on github.
  • I am tdeutsch (https://keybase.io/tdeutsch) on keybase.
  • I have a public key ASCF_NNwMLir2KuEHuAkRyOUYMogjekOC74NC3HVvrnJDQo

To claim this, I am signing this object:

#!/bin/bash
# jdk_packager.sh
# Downloads JDK 7 and packages as DEB for both i386 and amd64
# The resulting packages installing to /opt, creating a symlink /opt/java7 and do some magic stuff which hopefully works.
#
# Requirements
# - Effing Package Management
# https://github.com/jordansissel/fpm
#
@tuxpeople
tuxpeople / svnbackup.sh
Created March 6, 2012 08:13
Dumps all SVN-Repos from a given location gzip compressed to a folder
#!/bin/bash
#
# svnbackup.sh
# Dumps all SVN-Repos from a given location gzip compressed to a folder
#
# Copyright (C) 2008 by Thomas Deutsch <[email protected]>
#
# License: WTFPL - Do What The Fuck You Want To Public License
#
# This program is free software. It comes without any warranty, to