Skip to content

Instantly share code, notes, and snippets.

View mok0's full-sized avatar

Morten Kjeldgaard mok0

  • Samsø, Denmark
View GitHub Profile
@mok0
mok0 / country-codes.csv
Created May 14, 2014 19:38
FIPS, ISO 3166 country codes
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Continent;Region;Country;Capital;FIPS;ISO (2);ISO (3);ISO (No);Internet;Note
Asia;South Asia;Afghanistan;Kabul;AF;AF;AFG;4;AF;
Europe;South East Europe;Albania;Tirana;AL;AL;ALB;8;AL;
Africa;Northern Africa;Algeria;Algiers;AG;DZ;DZA;12;DZ;
Oceania;Pacific;American Samoa;Pago Pago;AQ;AS;ASM;16;AS;
Europe;South West Europe;Andorra;Andorra la Vella;AN;AD;AND;20;AD;
Africa;Southern Africa;Angola;Luanda;AO;AO;AGO;24;AO;
Americas;West Indies;Anguilla;The Valley;AV;AI;AIA;660;AI;
Americas;West Indies;Antigua and Barbuda;Saint John's;AC;AG;ATG;28;AG;
Americas;South America;Argentina;Buenos Aires;AR;AR;ARG;32;AR;
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN9AUthHSP516T36UJTd/EjD5iiTBeARE7LtPwieC4E4 mok@angantyr
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBso6sPHMiesddg8dJKWvGgsRydldzID4+kDBUBamex mok@fafnir
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO13LB8N2YJV3GjG7RiiEt+MkyuvGu5TtkmQ/0ZYLq9M mok@gremlin
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDXN3qCFhnz2+TDletq6Gzz87UxPleFPirmU33Sarqqe mok@homunculus
@mok0
mok0 / arbejdstid.csv
Last active May 12, 2019 09:32
Weekly work hours per day in Denmark vs. year.
1900 60
1915 56
1919 50.5
1920 48
1958 47
1959 46
1960 45
1966 44
1967 42.5
1971 41.75
@mok0
mok0 / unpd_wfd_2008.births.csv
Last active May 12, 2019 09:49
Crude birth rates from UN World Fertility Data 2008
niso year cbr
4 1979 48.1
4 2000 41.2
8 1970 32.5468
8 1985 26.2173
8 1995 23.633
8 2005 12.607
8 2006 10.8633
12 1970 43.8941
12 1985 38.2572
@mok0
mok0 / rendog-lets-play.md
Created September 12, 2019 12:49
Short list of Rendog's Let's Play Videos

Rendogs Minecraft Survival Vanilla 1.12 Lets Play

Welcome, Youtube Minecraft viewer, to my little corner of Planet Minecraft! This is my brand new long term Minecraft Survival Series, and I am very pleased that you have taken time out of your life to watch!

In this Minecraft Youtube Series we focus on the best things about this amazing PC game – Minecraft building and Minecraft adventures!

@mok0
mok0 / sst_scrape.py
Created March 12, 2020 19:58
Scrape the website of Danish Health Services SST to obtain their daily updated statistics about the covid19 epidemic.
#! /usr/bin/env python3
# Scrape the website of Danish Health Services SST to obtain their
# daily updated statistics about the covid19 epidemic. The function
# `scrape` returns a dict with data from Denmark, Faeroe Islands,
# global and EU+EAA+UK. It looks like this (2020-03-12):
#
#{'Danmark': (3038, 674, 0),
# 'Færøerne': (92, 2, 0),
# 'Globalt': (None, 125518, 4617),
## Infrastructure notes ########################################################
# I am running this in docker image rocker/tidyverse:3.6.1
# Load packages
library(tidyverse)
library(EpiEstim)
## Fetch data from the covid19data API #########################################
url <- "https://api.covid19data.dk/ssi_newly_hospitalized"
@mok0
mok0 / sources.list
Created December 26, 2021 10:04
sources.list file for Ubuntu
# Replace DISTRIBUTION with the code name of the desired distribution, e.g. hirsute
deb http://archive.ubuntu.com/ubuntu DISTRIBUTION main restricted
deb http://archive.ubuntu.com/ubuntu DISTRIBUTION-updates main restricted
deb http://archive.ubuntu.com/ubuntu DISTRIBUTION universe
deb http://archive.ubuntu.com/ubuntu DISTRIBUTION-updates universe
deb http://archive.ubuntu.com/ubuntu DISTRIBUTION multiverse
deb http://archive.ubuntu.com/ubuntu DISTRIBUTION-updates multiverse
deb http://archive.ubuntu.com/ubuntu DISTRIBUTION-security main restricted
deb http://archive.ubuntu.com/ubuntu DISTRIBUTION-security universe
deb http://archive.ubuntu.com/ubuntu DISTRIBUTION-security multiverse
@mok0
mok0 / system.sources
Created December 26, 2021 12:40
Ubuntu /etc/apt/sources.list.d/system.sources file. Replace "focal" with whatever release you are using.
X-Repolib-Name: Ubuntu System Sources
Enabled: yes
Types: deb deb-src
URIs: http://archive.ubuntu.com/ubuntu/
Suites: focal focal-security focal-updates focal-backports
Components: main restricted universe multiverse
X-Repolib-Default-Mirror: http://archive.ubuntu.com/ubuntu/
@mok0
mok0 / vikingebøf.md
Created March 3, 2022 09:32
Vikingbøf

4 personer

Opskriften stammer fra Viking Bøfhus fra en gang i 60′erne. Min onkel Peter Hilligsøe var tilsyneladende en så god kunde at han fik opskriften (Deres livsgrundlag).

  • 2-3 svinemørbrad (ca 1 kg)
  • 125 g margarine (evt. lidt mindre)

Sauce:

  • ½ l piskefløde