Skip to content

Instantly share code, notes, and snippets.

View greew's full-sized avatar

Jesper Skytte Marcussen greew

View GitHub Profile
greew /
Created April 6, 2022 17:59
Ubuntu 20 - Gnome text randomly disappears

Sometimes the text in Ubuntu randomly disappears.

It's the topbar text, menues, dialog texts, etc.

I havent figured out, why this is happening, but it can be fixed by restarting Gnome-Shell:

Alt+F2 and then press r and Enter

greew /
Created March 3, 2022 09:18
Setup SSH-agent in Ubuntu

Use the Ubuntu keyring as ssh-agent

Add relevant keys to the agent

# Use global SSH keyring
eval $(gnome-keyring-daemon -s)
greew /
Created November 18, 2021 07:32
OpenConnect (AnyConnect) doesn't remember username
greew /
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
greew /
Last active January 22, 2021 12:50
Installing my Raspberry Pi

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 /
Created March 6, 2020 10:34
Don't start evolution-calendar-factory
greew /
Created March 3, 2020 09:35
Setup SSTP VPN connection in Ubuntu 18.04

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 /
Last active July 29, 2023 16:50
Fix Spotify stuck in full screen (Ubuntu) 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.


@mastier has improved the solution - see here

Solution (old):

greew / gist:8551d1d7444ed56a5dc50e3f7c92069d
Created March 21, 2017 11:37
Git - Recover lost commit
# 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>