Skip to content

Instantly share code, notes, and snippets.

@mikaello
mikaello / wsl2-troubleshooting.md
Last active March 4, 2021 07:32
Install WSL2 troubleshooting

Getting started with WSL2

Start by following this guide: https://docs.microsoft.com/en-us/windows/wsl/install-win10. Another nice resource is the blog post Setting up WSL2 and Oh My Zsh.

When running the dism.exe commands during setup you may get an error saying that you need elevated permissions, even if you run PowerShell as admin, you then need to run this command first to get elevated permissions:

Start-Process powershell -Verb runAs
@mikaello
mikaello / emit-devices-info.md
Last active August 1, 2020 11:39
Information about EMIT devices

Device info for EMIT devices

Commands are executed on a Macbook Pro, OSX 10.14.6

250 and MTR4 are recognized as serial devices on OSX, while eScan is recognized as a USB only (while behaviour seems to be serial like).

https://i.ibb.co/X4mhJ63/20200801-133326.jpg

ioreg

@mikaello
mikaello / couchdb-docker-openstack.md
Last active April 18, 2020 13:51
How to get started with CouchDB through Docker on OpenStack

Setting up a CouchDB with Docker on OpenStack

I will be using the OpenStack provider NREC, which is available for free for all students at the University of Oslo and University of Bergen (among others).

Setting up an instance in OpenStack

Create a Linux Virtual machine with SSH access (see NREC-tutorial), and test that you can log in:

$ ssh centos@<your instance public ip>
Last login: Tue Mar 24 06:33:00 2020 from <your machine>
@mikaello
mikaello / get-week-number.re
Last active August 1, 2019 13:46
Bucklescript: get week number of year
/* For a given date, get the ISO week number
*
* This is copied from
* https://stackoverflow.com/a/6117889/5550386
*
* ... which is based on information at:
*
* http://www.merlyn.demon.co.uk/weekcalc.htm#WNR
*
* Algorithm is to find nearest Thursday, it's year

Trenger orienteringsløpere flåttvaksine?

Flått som kryper på arm

Bilde: John Tann

For alle som er mye i skogen er skogflåtten (skaumannen) noe man bør være obs på. Flåtten er en kjip skapning av typen edderkoppdyr, som kan være reservoar for viruset skogflåttencefalitt (tick borne encephalitis, TBE) og smittebærer av bakterien borrelia burgdorferi som kan gi sykdommen lyme borreliose (også kalt lyme eller borrelia) ved infeksjon.

Borreliainfeksjon kan man ikke vaksinere seg mot, men som en tommelfingerregel må en bakteriesmittet flått sitte fast på kroppen i 24 timer før man blir infisert. Så om du sjekker deg på kvelden etter endt o-løp og fjerner eventuelle flått er du mest sannsynlig try

@mikaello
mikaello / jsx-in-html.html
Last active May 22, 2019 07:51
Write JSX in HTML file
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<!--
Credit: https://twitter.com/sophiebits/status/1129824393155080192
Also worth checking out: https://www.pikapkg.com/
-->
</head>