Skip to content

Instantly share code, notes, and snippets.

View wwerner's full-sized avatar

Wolfgang Werner wwerner

View GitHub Profile
@wwerner
wwerner / heroku-db-url-to-spring-boot.sh
Last active April 29, 2021 07:26
Parse Heroku DB URL into Spring Boot Datasource Environment Variables
# Two possibilities to parse a Postgres DB URL from heroku into environment variables
# that Spring Boot understands.
# You would need that, if you do not build on heroku but push docker images
# from another source
# Does not need bash. Works on alpine linux / busybox. Tested with openjdk:8-jdk-alpine base image.
export DATABASE_URL=postgres://user:password@host:port/database
# Naive way, would break with [@:/] in username or password.
DB_TYPE=$(echo $DATABASE_URL | awk -F'[:@/]' '{print $1}')"ql"

Keybase proof

I hereby claim:

  • I am wwerner on github.
  • I am wgw (https://keybase.io/wgw) on keybase.
  • I have a public key ASCGLdmzXqy2Ax5008dkCKvo5Tp3QJYbMjYH2znhErRhyAo

To claim this, I am signing this object:

@wwerner
wwerner / reading-list.adoc
Last active August 21, 2025 19:16
Reading list for young developers
Table of Contents

The Pragmatic Programmer

Straight from the programming trenches, The Pragmatic Programmer: From Journeyman to Master cuts through the increasing specialization and technicalities of modern software development to examine the core process—what do you do, as an individual and as a team, if you want to

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="iso-8859-15" />
<xsl:template match="/">
<xsl:apply-templates select="´scxml" />
</xsl:template>