Skip to content

Instantly share code, notes, and snippets.

View dirkjonker's full-sized avatar

Dirk Jonker dirkjonker

View GitHub Profile
@dirkjonker
dirkjonker / nginx.conf
Last active December 5, 2022 11:10
NGINX JSON log configuration for Google Cloud / StackDriver log format
# this outputs JSON formatted logs which are easy to parse for any logging agent (such as fluentd)
# the format conforms to Google Cloud Logging so logs are nicely structured in the logs viewer
# see also: https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#httprequest
# put the following lines in your nginx config
# /etc/nginx/nginx.conf
log_format json_combined escape=json
'{'
'"time":"$msec",'
@dirkjonker
dirkjonker / deduplicate.py
Created January 11, 2018 07:53
deduplicate and organise photos
import datetime
import hashlib
import pathlib
import sys
import piexif
PIC_ROOT = pathlib.Path.home() / 'Pictures'
@dirkjonker
dirkjonker / keybase.md
Last active July 7, 2018 11:46
keybase.md

Keybase proof

I hereby claim:

  • I am dirkjonker on github.
  • I am dirkjonker (https://keybase.io/dirkjonker) on keybase.
  • I have a public key ASDTyJdIooRiHKVn5g7ZdvwEfTHs-aUOnh30faGyC0Q4UQo

To claim this, I am signing this object: