Skip to content

Instantly share code, notes, and snippets.

View krichter722's full-sized avatar

Karl-Philipp Richter krichter722

  • orgavision GmbH
  • Berlin
View GitHub Profile
@krichter722
krichter722 / HelloJwt.java
Last active May 10, 2019 12:29 — forked from zjor/HelloJwt.java
Loads RSA key pair and signs JWT token
package org.example;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import org.apache.commons.codec.binary.Base64;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
@krichter722
krichter722 / remove_trailing_whitespace.sh
Last active September 20, 2015 16:01 — forked from dtuite/remove_trailing_whitespace.sh
Recursively remove trailing whitepace from files.
#!/bin/sh
# Remove trailing whitespace from files in the src directory.
# This is useful because (for example) trailing whitespace hinders Vim's
# paragraph movement.
# INFO: http://stackoverflow.com/a/4438318/574190
# INFO: http://stackoverflow.com/q/1583219/574190
# The directory under which we want to search for files.
# ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I config
main::scan_file() called too early to check prototype at /usr/bin/aclocal line 643.
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: copying file `config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `config'.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##