Skip to content

Instantly share code, notes, and snippets.

ruario /
Last active Aug 29, 2015
Unpacks a Google Chrome rpm package into a version named directory and creates a startup script that will cause it to save its profile within this directory (Useful for testing).

This script converts a Google Chrome rpm package into standalone (portable) format. Usage example:

sh google-chrome-stable_current_x86_64.rpm

When the script is done you will have a suitably version named directory. You can run the copy of Google Chrome stored within it as follows:

google-chrome-stable-41.0.2272.118-1/run &

Copy or move the directory wherever you like.


Locating files that have been installed or updated following software installation:

find find / -maxdepth 1 -type d -regextype posix-egrep -regex '/(etc|s?bin|lib.*|opt|usr)' ! -type d -cmin -5 2> /dev/null


The following will check the Linux Vivaldi (and Chromium) version installed, withouit having to start it up:

grep -Pao 'Chrome/.Vivaldi(.([0-9]+\.){3}[0-9]+){2}' /opt/vivaldi-snapshot/vivaldi-bin | sed -r 's,.*(([0-9]+\.){3}[0-9]+).(([0-9]+\.){3}[0-9]+).*,Vivaldi: \1\nChromium: \3,'

Note: This requires GNU grep compiled with support for Perl regular expressions.

Here is a less fancy version (without the helpful formatting):

strings /opt/vivaldi-snapshot/vivaldi-bin | grep -xA3 Chrome/

ruario / rpm4opera
Last active Jan 11, 2016
Converts Opera deb packages into rpm format
View rpm4opera
#!/usr/bin/env bash
available () {
command -v "$1" >/dev/null 2>&1
rpmcheck () {
if [ -e "$1" ]; then
echo "$1 is already present, delete it if you want to recreate it"
exit 0
View gist:7bd33e9931018d5b1c65
open -a /Applications/ --args --profile-directory=profile2
ruario / uv.bat
Last active May 26, 2016
Unpacks and installs (in standalone mode) the most recent, manually downloaded Vivaldi Windows installer from your Downloads folder, into a version numbered sub-folder of your desktop
View uv.bat
FOR /F %%i IN ('dir /b /t:w /o-d "%DOWNLOADPATH%"\Vivaldi*.exe') DO (
ECHO No Vivaldi installers in Downloads
ruario /
Last active Dec 6, 2016
Shell script that wraps the 7-Zip commands and makes them work like a normal UNIX compressor in streaming mode for multithreaded XZ compression
case $1 in
-d) 7za e -si -so -txz ;;
*) 7za a /dev/null -si -so -txz ;;
esac 2> /dev/null
ruario /
Last active Mar 7, 2017
Extracts an Opera Debian package and installs it into /usr/local. An uninstall script is also created and installed as well. Upgrades work if you used this script to install a previous version. Completely unofficial and unsupported by Opera Software.

Disclaimer: I wrote this script for my own personal usage. It is not officially supported by Opera Software.

Whilst Opera currently only provide .deb packages, it is possible to install Opera on different distros. This install script automates the process.

If you don't already have the script, fetch it like so:

git clone

To install the latest stable release, issue:

ruario /
Last active Apr 28, 2017
Creates an installable package containing H.264 and MP3 support libraries for Opera on Linux
# Creates an installable package containing H.264 and MP3 support
# libraries for Opera on Linux
# Note: You will need a suitable development environment to run this
# script successfully. Make sure the following is installed before
# proceeding:
# * autoconf
ruario / getupdates
Last active Oct 10, 2017
A script to fetch updates for Slackware stable
View getupdates
# getupdates (0.9.6) - A script to fetch updates for Slackware stable
# Version 2, December 2004
# Copyright (C) 2017 Ruari Oedegaard, Oslo, Norway
# Everyone is permitted to copy and distribute verbatim or modified