Skip to content

Instantly share code, notes, and snippets.

View jhoelter's full-sized avatar

Jérémie Hoelter jhoelter

View GitHub Profile
@jhoelter
jhoelter / gist:4b074e91fcc683fb922d5ad66b34bb11
Created September 27, 2016 20:03
JacksonConfig for HATEOAS
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
/**
* Created by jeremie.hoelter on 27.09.2016.
*/
java -XX:+PrintGC -Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=9010 \
-Dcom.sun.management.jmxremote.local.only=false \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false \
HelloWorld
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
@jhoelter
jhoelter / osx-for-hackers.sh
Last active May 30, 2016 11:07 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'

Keybase proof

I hereby claim:

  • I am jhoelter on github.
  • I am jhoelter (https://keybase.io/jhoelter) on keybase.
  • I have a public key whose fingerprint is 2DFE B9E8 75A1 F567 72ED C63B 872A 74CF 42AF B9D7

To claim this, I am signing this object: