Skip to content

Instantly share code, notes, and snippets.

Avatar

Jesper Skytte Marcussen greew

View GitHub Profile
@greew
greew / REAME.md
Created Sep 27, 2021
Retrieve Windows Product Key from BIOS on Linux
View REAME.md

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
@greew
greew / REAME.md
Last active Jan 22, 2021
Installing my Raspberry Pi
View REAME.md

Installing Raspberry Pi with backup, DLNA and web server

This is mostly for my own reference - I tend to forget such setup settings after a few weeks, but if you can use any of it, feel free to copy along.

Currently, I'm using my Raspberry Pi for backup, DLNA streaming movies to my smart TV and for home web server, running a few internal services.

Required Hardware

@greew
greew / README.md
Created Mar 6, 2020
Don't start evolution-calendar-factory
View README.md
@greew
greew / README.md
Created Mar 3, 2020
Setup SSTP VPN connection in Ubuntu 18.04
View README.md

Setup SSTP VPN connection in Ubuntu 18.04

Run the following

sudo apt-get update &&
sudo apt-get upgrade &&
sudo add-apt-repository -y ppa:eivnaes/network-manager-sstp &&
sudo apt-get update && sudo apt-get install -y network-manager &&
sudo apt-get install -y sstp-client&&
@greew
greew / Fix Spotify stuck in full screen (Ubuntu 18.04.01) installed from snap
Last active Jul 21, 2021
Fix Spotify stuck in full screen (Ubuntu) installed from snap
View Fix Spotify stuck in full screen (Ubuntu 18.04.01) installed from snap
Problem:
I experienced Spotify being stuck in full screen mode.
The title bar with minimize, maximize and close wasn't present and no keyboard shortcut I know about would exit full screen.
Solution
rm ~/snap/spotify/current/.config/spotify/prefs
Works both in 18.04.01 and 20.04.x
Source:
View gist:8551d1d7444ed56a5dc50e3f7c92069d
# Get a list of where HEAD has been recently
git reflog
# Check the sha1 where you think the correct code might be
git show <sha1>
# When you've found it, merge it back in
git merge <sha1>
View keybase.md

Keybase proof

I hereby claim:

  • I am greew on github.
  • I am greew (https://keybase.io/greew) on keybase.
  • I have a public key whose fingerprint is 7C24 39F2 41CD 0601 E8C7 3B8C 7B55 3291 4A25 F6F8

To claim this, I am signing this object: