Skip to content

Instantly share code, notes, and snippets.

ruario

Block or report user

Report or block ruario

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ruario
ruario / chrome-ua-test.md
Last active Dec 23, 2019
Launching Google Chrome with a Vivaldi User Agent
View chrome-ua-test.md

The following will allow you to test Chrome with a Vivaldi user agent. Shutdown Chrome and start a Terminal (or cmd.exe on Windows), then paste in the code that is relevant for your platform and press “Enter”–you can triple-click to select an entire line.

Testing with Chrome

NOTE: There is little point testing in Vivaldi because old versions already had workarounds for these specific issues and from 2.10 onwards we use a Chrome User Agent string.

Windows

"%PROGRAMFILES(X86)%\Google\Chrome\Application\chrome.exe" --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.94 Safari/537.36 Vivaldi/2.10.1745.21"
@ruario
ruario / macos-private.md
Last active May 22, 2019
A small App that starts Vivaldi for macOS as a Private Window
View macos-private.md

Vivaldi Private Window Launcher for macOS

The following commands will produce a small application that allows you to launch Vivaldi in Private mode on a Mac.

Start Terminal paste in the the following code (pressing Enter when done):

mkdir -p Vivaldi\ Private.app/Contents/MacOS
printf '#!/bin/sh\nopen -a Vivaldi.app --args --incognito' > Vivaldi\ Private.app/Contents/MacOS/Vivaldi\ Private
chmod +x Vivaldi\ Private.app/Contents/MacOS/Vivaldi\ Private
@ruario
ruario / f2sb.sh
Last active Oct 18, 2019
A script for those who "Forgot to make a SlackBuild". Following a manual install (e.g. `make install`), use this script to make a Slackware package.
View f2sb.sh
#!/bin/sh -eu
#
# This script allows you to create a Slackware package from software you
# previously installed manually (e.g. via `make install`).
#
# Usage:
#
# ./script name-version /path/to/reference/file [seconds]
#
# Provide the name and version of the package, path to one file that forms
@ruario
ruario / make-install-remove.md
Last active Oct 15, 2019
Uninstalling (removing) a package installed via make install. No make uninstall target required
View make-install-remove.md

make install, uninstall help (howto remove)

Background

A common mistake for users who are new to Linux (and even a few seasoned users) is to install a package from source without any clear idea about how they will remove it in the future, should they want to.

The classic instructions to install a source package are ./configure && make && make install. This (or slight variants) can work nicely for installation but

@ruario
ruario / make-vivaldi-private-desktop-launcher.sh
Last active Dec 20, 2019
Run this to create a Vivaldi launcher for Linux desktops that always starts in private mode.
View make-vivaldi-private-desktop-launcher.sh
#!/bin/sh
mkdir -p ~/.local/share/applications
cat << END > ~/.local/share/applications/vivaldi-private.desktop
[Desktop Entry]
Version=1.0
Name=Vivaldi (Private)
Exec=vivaldi-stable --incognito
StartupNotify=true
Terminal=false
Icon=vivaldi
@ruario
ruario / 1-README.md
Last active Jan 27, 2020
A script that fetches a ChromeOS image for ARM32 and extracts the Widevine and Flash binaries, saving them in a compressed archive for use with Vivaldi
View 1-README.md

The included script 'widevine-flash_armhf.sh' fetches a ChromeOS image for ARM and extracts the Widevine and Flash binaries, saving them in a compressed archive. Since it downloads a fairly large file (2Gb+ on disk after download) it is recommended that you run the script on a machine that has plenty of disk space.

To install the resultant archive, issue the following on your ARM machine–after copying over the archive if needed:

sudo tar Cfx / widevine-flash-20200124_armhf.tgz

(Where 'widevine-flash-20200124_armhf.tgz' is updated to reflect the actual name of the created archive)

@ruario
ruario / lnx-2.0-proprietary-media-short.md
Last active Nov 7, 2018
Vivaldi 2.0 Linux Proprietary media, quick answer
@ruario
ruario / check-user-namespace.sh
Last active Sep 11, 2018
A bourne shell function to check for the presence of user namespace support in the linux kernel by calling the unshare command to set one up
View check-user-namespace.sh
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
fi
if unshare -U true >/dev/null 2>&1; then
echo "User namespace support enabled"
return 0
else
echo "User namespace support not enabled"
@ruario
ruario / README.md
Last active Nov 14, 2018
Run Vivaldi Package (rpm, deb or recompressed contents)
View README.md

Run Vivaldi Package

The attached script (rvp.sh) 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 rvp.sh executable and start a build like so:

./rvp.sh vivaldi-snapshot-1.15.1159.7-1.x86_64.rpm
@ruario
ruario / latest-skype.sh
Last active Nov 30, 2018
This script will find the latest Skype for Linux binary package, download it and repackage it into Slackware format.
View latest-skype.sh
#!/bin/bash
# latest-skype Version 1.1.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.
#
You can’t perform that action at this time.