Skip to content

Instantly share code, notes, and snippets.

View michaellihs's full-sized avatar

Michael Lihs michaellihs

View GitHub Profile
@michaellihs
michaellihs / SemVer.groovy
Created April 12, 2017 21:42
Semantic Versioning class for Groovy
enum PatchLevel {
MAJOR, MINOR, PATCH
}
class SemVer implements Serializable {
private int major, minor, patch
SemVer(String version) {
def versionParts = version.tokenize('.')
@michaellihs
michaellihs / mv-version-bump.sh
Created April 12, 2017 21:46
Setting Maven artifact in pom.xml with command line tool
mvn versions:set versions:commit -DnewVersion=1.0.0-SNAPSHOT
@michaellihs
michaellihs / gist:3689b0a246d8bfb43176fa32633eb59d
Created October 24, 2017 21:41 — forked from clintel/gist:1155906
Fenced code in bullet lists with GitHub-flavoured MarkDown??

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code
    
@michaellihs
michaellihs / strava_cli.md
Last active April 28, 2024 20:54
Upload tracks to Strava from the Command Line

Upload GPS Tracks to Strava from your Command Line

This short tutorial describes how to upload GPS tracks to Strava using your command line interface / shell. It requires no special tools or any 3rd party code.

1. Generate an API Key

Run the following steps with your user logged in to Strava in your browser!

Strava uses OAuth to authenticate against 3rd party applications. In order to authenticate to your Strava account from your command line, you first have to generate an API key. Therefore go to this page https://strava.github.io/api/v3/oauth/ and create a new API. The settings are as follows:

@michaellihs
michaellihs / docker-cheat-sheet.md
Last active November 14, 2017 20:17
Docker Cheat Sheet

Wait until container became healthy

until [[ "`docker inspect -f {{.State.Health.Status}} gitlab`" = "healthy" ]]; do
    echo 'waiting for container to be healthy...'
    sleep 5
done
@michaellihs
michaellihs / gitlab_access_token.md
Last active May 31, 2024 11:30
Create Gitlab Personal Access Token using curl

Create Gitlab Personal Access Token using curl

Prerequisites

  • You need a Gitlab server up and running
  • You need user credentials for a (admin) user on the Gitlab server
  • You need curl and Perl on your server
@michaellihs
michaellihs / go-cheat-sheet.md
Last active February 20, 2024 17:39
Go Cheat Sheet
@michaellihs
michaellihs / meetups.md
Last active January 8, 2018 14:43
Meetups

How to keep your Meetups attractive

Summary of the Twitter discussion started by https://twitter.com/kaktusmimi/status/947250255275483137

How do you organize speakers, topics, venues

  • Boyan Yordanov @specter_bg: I mostly talk to people at our events and a couple others and try to convince them to give speaking a shot. Trough this year pretty much all our speakers were speaking for the first time. For the venue we partner with the local hackerspace.