Skip to content

Instantly share code, notes, and snippets.

@mtritschler
mtritschler / stats.json
Last active January 29, 2018 11:01
GET /_all/_stats
{
"_all": {
"primaries": {
"completion": {
"size_in_bytes": 0
},
"docs": {
"count": 16888,
"deleted": 19
},
@mtritschler
mtritschler / keybase.md
Created December 23, 2014 09:20
Keybase proof

Keybase proof

I hereby claim:

  • I am mtritschler on github.
  • I am maxtritschler (https://keybase.io/maxtritschler) on keybase.
  • I have a public key whose fingerprint is F2B8 7905 ADBF 644F 1187 ECBC 9B0B 6AEC D842 9DE3

To claim this, I am signing this object:

@mtritschler
mtritschler / WTF.java
Last active December 31, 2015 14:49
java.util.Calendar WTF
import java.util.Calendar;
import java.util.TimeZone;
public class WTF {
public static void main(String... args) {
Calendar constructorTimezone = Calendar.getInstance(TimeZone.getTimeZone("GMT+12:00"));
constructorTimezone.set(2000, Calendar.JANUARY, 1);
Calendar setterTimezone = Calendar.getInstance();
setterTimezone.setTimeZone(TimeZone.getTimeZone("GMT+12:00"));
test <strike>ups</strike>