Skip to content

Instantly share code, notes, and snippets.

@greew
greew / REAME.md
Created September 27, 2021 08:09
Retrieve Windows Product Key from BIOS on Linux

My computer originally came with Windows 10 preinstalled.

As I prefer to run Linux, but still need to use Windows for some tools, I have installed Windows via VirtualBox.

When I install Windows in VirtualBox, it asks me for the Product Key for activation. As this is injected into the BIOS and the virtual machine doesn't have access to the BIOS, I need to fetch it from the BIOS and enter it manually.

It can be fetched with the following command:

sudo strings /sys/firmware/acpi/tables/MSDM
@enzinier
enzinier / install_font_adobe_source_code_pro.sh
Created March 4, 2017 03:38
Install font Adobe Source Code Pro on Ubuntu 16.04 LTS
#!/bin/sh
# Userland mode (~$USER/), (~/).
# ~/.fonts is now deprecated and that
#FONT_HOME=~/.fonts
# ~/.local/share/fonts should be used instead
FONT_HOME=~/.local/share/fonts
echo "installing fonts at $PWD to $FONT_HOME"
mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro"
@jesperronn
jesperronn / docx2md.md
Last active May 22, 2025 20:00 — forked from aembleton/docx2md.md
Convert a Word Document into MD

Converting a Word Document to Markdown in One Move

The Problem

A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.

Installing Pandoc

On a mac you can use homebrew by running the command brew install pandoc.

The Solution