Skip to content

Instantly share code, notes, and snippets.

Jens Kristian Villadsen jkiddo

Block or report user

Report or block jkiddo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jkiddo /
Created Sep 3, 2019 — forked from wojteklu/
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.

General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

jkiddo / igpub maven
Created Jan 21, 2019
Rough initial maven file including all dependencies for igPub
View igpub maven
<project xmlns=""

Protokol- og model-lag for læsning/skrivning af information i HL7 modellerne CDA og FHIR:

Eksemplet her viser antallet af lag for at kunne læse/skrive ansvarlig enhed for en måling (observation) i et sæt af målinger. Sikkerhed er ikke taget med, da antallet af ekstra lag er ens for begge tilgange. Det forudsættes, at CDA dokumentet hentes over IHE XDS. Det forudsættes for begge at ID'et er kendt i forvejen.


HTTP -> Json (HL7 FHIR) -> Bundle -> Resource -> Observation -> Performer


HTTP -> SOAP + MTOM/XOP -> ebXML -> XML (HL7 CDA) -> ClinicalDocument -> component -> structuredBody -> component -> section -> entry -> act -> entryRelationship -> organizer -> participant -> participantRole -> scopingEntity


CentOS 7 fix for letting containers reach other containers on the same host:


nmcli connection modify docker0 trusted
systemctl stop NetworkManager.service
firewall-cmd --permanent --zone=trusted --change-interface=docker0
systemctl start NetworkManager.service
nmcli connection modify docker0 trusted
View python web server
docker run -it --rm --name python-web -p 8000:8000 -v "$PWD":/usr/src/myapp -w /usr/src/myapp python:3 python -m http.server
jkiddo /
Last active Mar 15, 2018 — forked from n0ts/
Get latest Oracle JDK package bash shell script
# From: with suggested corrections
# You must accept the Oracle Binary Code License
# usage: <jdk_version> <ext>
# jdk_version: 8(default) or 9
# ext: rpm or tar.gz
View wifi
# Sagemcom Fast 3890 script for enabling/disabling Wifi
while [[ $# -gt 0 ]]
View MM
Are you somewhat tech-related?
Have you ever heard of versioning systems?
Do you happen to find documents attached to mails in your inbox?
jkiddo /
Last active Nov 15, 2017
FHIR Subscription resource 'stuff-worth-talking-about'
  • Returing all resources matching criteria upon creation of a subscription
    • Current situation is that the client is supposed to know the full state up front. If any change occurs between the client trying to figure out what the full state is and creating the subscription, that state change is lost. This is fixed by letting the server evaluate the criteria once the subscription is created - and then acting upon it.
  • Resources leaving the criteria
    • When resources leaves the criteria the client is not notified. This makes it pretty hard to base an implementation around a more event based approach where the server is supposed to notify the client about any changes that may occur. As long as resources leaving the criteria set is not part of the notifications clients will become stale pretty quickly.
  • Order and use of ETag for updates
    • The order of the updates is not described. If ETags are used by the notifying server, the client is able to detect if an update has gone missing one way or another. The u
You can’t perform that action at this time.