Skip to content

Instantly share code, notes, and snippets.


Jens Kristian Villadsen jkiddo

View GitHub Profile
jkiddo /
Created Dec 27, 2020 — forked from gotling/
Setup Snapcast client on Raspbian Jessie lite

Setup Snapcast client on Raspbian Jessie / Stretch lite


  • A Snapcast server
  • A Raspberry Pi running Raspbian Jessie/Stetch lite with SSH enabled

Setup Raspbian

  1. Login to Pi using SSH
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?