Instantly share code, notes, and snippets.

check-user-namespace () {
if ! command -v unshare >/dev/null 2>&1; then
echo "The unshare command is not available. Install the util-linux package to fix this." >&2
return 2
if unshare -U true >/dev/null 2>&1; then
echo "User namespace support enabled"
return 0
echo "User namespace support not enabled"

Run Vivaldi Package

The attached script ( will allow you to directly run a Vivaldi .deb or .rpm package without “installing” it. This works by quickly extracting the package contents into /var/tmp and then executing the binary therein (the extracted files are removed when you close Vivaldi).

Vivaldi is run with a temporary user data (settings) that are specific to that exact version. This is to avoid messing up the main install's user data.

To run Vivaldi in this way, make executable and start a build like so:

./ vivaldi-snapshot-1.15.1159.7-1.x86_64.rpm
# latest-skype Version 1.0.2
# This script will find the latest Skype binary package, download it and
# repackage it into Slackware format.
# Copyright 2018 Ruari Oedegaard, Oslo, Norway
# All rights reserved.

HTML5 MP4 (H.264/AAC) video issues with Vivaldi for Linux snapshots

If you encounter such problems with video playback on Vivaldi for Linux snapshot releases, you can use the script included with this gist to fetch a newer version of the shared library and install it into Vivaldi's installation directory (if you are a Vivaldi stable user then read this).

To run the included script, issue the following in a terminal:

sudo add-apt-repository 'deb stable main'
wget -qO- | sudo apt-key add -
sudo apt update && sudo apt install --install-recommends vivaldi-stable

Manually extract Vivaldi from the deb like so:

ar p vivaldi-stable_1.13.1008.34-1_armhf.deb data.tar.xz | tar Jx ./opt/vivaldi --strip 2

To start Vivaldi from a terminal:

# latest-Vivaldi Version 1.4
# This script will find the latest Vivaldi binary package, download it
# and repackage it into Slackware format.
# Copyright 2018 Ruari Oedegaard, Oslo, Norway All rights reserved.
# Redistribution and use of this script, with or without modification,
# is permitted provided that the following conditions are met:
case $1 in
-d) 7za e -si -so -txz ;;
*) 7za a /dev/null -si -so -txz ;;
esac 2> /dev/null

Chromium based browsers such as Vivaldi support the concept of user profiles. These are different user configurations, under a single operating system login. You could use different users profiles for home and work, or to allow a friend to use your browser without messing up your setup or interacting with your open tabs.

Vivaldi does not currently provide any user interface for switching user profiles outside of the command line switch —profile-directory= (where you pass the name of the profile). However on macOS, you can make a quick launcher application in Automator.

To setup

  • Open the (part of macOS) and create a new “Application”
  • Drag “Ask for Text” (found under “Text”) into the actions area
  • Set the “Question” to “Vivaldi Profile Name?”

This Automator folder action will monitor the Downloads folder for new dmg files and automatically unpack them into a similarly named sub directory. It requires no interaction from the user. On completion a notification will display.

As mounting and extraction happens in the background you save time, since you can continue to work. In addition with all disk image contents pre-copied to disk, moving any .app to "/Applications" is pretty much instant (or in the case of Vivaldi, you could run it in standalone mode directly from the created extraction folder).

##To setup##

  • Open the (part of macOS) and create a new "Folder Action"
  • Choose the Downloads folder
  • Drag "Run Shell Script" (found under "Utilities") into the actions area
  • Change the Pass Input drop down to "as arguments"