Skip to main content

QuteBrowser and LastPass

2 min read

I've been using QuteBrowser for the past 2 days (more on that later), and the only thing I missed so far was a LastPass integration.

Now, QuteBrowser does not come with a plugin store like Firefox or Chrome, but it is still possible to use LastPass with it.

First we need to install lastpass-cli and login to the service. I'm running Manjaro Linux on my laptop so I use yaourt :

yaourt lasstpass-cli

Now we login to Lastpass :

lpass login <email@domain.tld>

A prompt pops-up, asking for your master password. If everything went right, the CLI should responds with

Success: Logged in as <email@domain.tld>.

Since we're good to go, we can now download the QuteBrowser userscripts :

mkdir -p $/.local/share/qutebrowser/userscripts && cd $_


chmod +x qute-lastpass

The script is installed. We can restart QuteBrowser by typing :restart.

Now everytime you need to find your login/password for a given page type :spawn --userscript qute-lastpass


Process stderr:
Traceback (most recent call last):
File "/home/cedric/.local/share/qutebrowser/userscripts/qute-lastpass", line 50, in <module>
import tldextract
ModuleNotFoundError: No module named 'tldextract'

Solution : pip install tldextract --user

FileNotFoundError: [Errno 2] No such file or directory: 'lpass': 'lpass'

Solution : install lastpass-cli

FileNotFoundError: [Errno 2] No such file or directory: 'rofi': 'rofi'

Solution : install rofi

Today I switched from Ubuntu to Manjaro - so far so good. Anyone having tips for a Arch/Manjaro newcomer? <p>#linux </p>

Le givre dans le fond du jardin ce matin, ça compte comme “Noël blanc”?<p>#nonclass </p>

Testing the GitHub Bridgy integration <p>#bridgy </p>

Testing the GitHub Bridgy integration <p>#bridgy </p>

23 décembre, avant-veille de Noël. Il fait dix degrés, il pleut des cordes, et dans mon jardin une dizaine d’oiseaux piaillent et s’affairent comme si on était au mois d’avril et qu’il était temps de construire un nid<p>#nonclass </p>

We’re planning to launch a Ruby Meetup Luxembourg in 2019. Anyone interested to jump in? PM for details and don’t hesitate to ping a friend! <p>#nonclass </p>

Cleanup old git branches

1 min read

Yesterday I had to clean some very old branches on a project's codebase. Here's a few git tricks I had to use.

List merged branch (excluding master and staging) :

git branch --merged | egrep -v "(^\*|master|staging)"

Delete them locally :

git branch --merged | egrep -v "(^\*|master|staging)" | xargs -n 1 git branch -d

Delete them remotely :

git branch -r --merged | grep -v "origin/master$" | grep -v "origin/staging$" | sed 's/\s*origin\///' | xargs -n 1 git push --delete origin
git remote prune origin

Source :

Display branches with oldest commit datetime :

for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r

Friday breakfast at HoST<p>#httpwarrigallu </p>