Skip to content

Instantly share code, notes, and snippets.

View sauterl's full-sized avatar

Loris Sauter sauterl

  • University of Basel
  • Switzerland
View GitHub Profile
@sauterl
sauterl / ApiClient.kt
Created October 3, 2023 11:12
Fixed Generated ApiClient.kt File for OpenApi Generator Kotlin with okhttp4. This file can replace the one generated with openapi generator 7.0.1
package org.openapitools.client.infrastructure
import okhttp3.OkHttpClient
import okhttp3.RequestBody
import okhttp3.RequestBody.Companion.asRequestBody
import okhttp3.RequestBody.Companion.toRequestBody
import okhttp3.FormBody
import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
import okhttp3.ResponseBody
import okhttp3.MediaType.Companion.toMediaTypeOrNull
@sauterl
sauterl / local-followup-rename-to-main.md
Last active August 30, 2021 06:45
A quick guide to change from master as default branch to main

Git Master to Main Rename Followup

Prerequisite

Head over to your repo <ORGorUSER>/<REPO> and rename the default branch to main (this guide assumes, that previously, it was master).

https://github.com///settings/branches

Steps

@sauterl
sauterl / cineast-api-changes.md
Last active February 3, 2021 14:42
Changelog of Cineast's RESTful API

Cineast API Changes

To address vitrivr/cineast#163 and vitrivr/vitrivr-ng#58 the following renaming and re-organising of Cineast's REST API is proposed.

Ultimately, the renaming and re-organising should clearify what endpoints do and provide a consistent naming scheme for them.

Metadata

  • RENAME ​/api​/v1​/find​/metadata​/of​/{id}​/in​/{domain}​/with​/{key} Find metadata for specific object id in given domain with given key
@sauterl
sauterl / vitrivr-setup.md
Last active November 27, 2019 08:28
Vitrivr Setup

vitrivr / cineast setup guide

This guide is for developers interested in contributing to vitrivr's retrieval engine Cineast.

Quick setup

  1. Have a JDK (Java 1.8 or above) ready. We recommend OpenJDK 11.
  2. Quick Setup of Cineast:

Keybase proof

I hereby claim:

  • I am sauterl on github.
  • I am lorissauter (https://keybase.io/lorissauter) on keybase.
  • I have a public key whose fingerprint is 2236 1FE8 6A47 602D F13F 23E7 C1BB BCB8 631F D4CC

To claim this, I am signing this object: