Tag Archives: python

Goopg – GPG for Gmail in Chrome and Chromium

icon128During the last few weeks I have been working on Goopg, a new extension for the Chrome and Chromium browser which allows one to sign and verify emails directly from the Gmail web page.

It consists mainly in two parts: an extension, which gets information from the Gmail web page, and a plugin (written in python) which silently verifies the emails, signs the outgoing messages and sends them via the Gmail APIs and a SMTP connection. For more information about the architecture, see the project documentation.

To install it you have to:

  1. Install the Goopg extension from the Chrome web store
  2. Install the plugin package using the following PPA:
sudo add-apt-repository ppa:team-goopg/goopg
sudo apt-get update
sudo apt-get install goopg-chromium

Install the package goopg-chrome if you use Chrome.

preview

The project is Open Source, released under the GPL-3 license and it is not affiliated with Google.

Thanks to Alessio Treglia, Andrea Colangelo, Riccardo Padovani, Mattia Rizzolo for testing and to Paolo Rotolo for the icon.

Future works:

  • Support to Firefox and to other browsers
  • Support to other Operating System, like Mac/OSx
  • Support to encryption/decryption

If you like this project, please consider a donation

apt-venv — apt virtual environment

Quickly collect information about packages in different Debian and Ubuntu releases.

apt-venv creates a sort of virtual environments in $HOME/.local/share/apt-venv (one for each release), able to exec bash sessions where apt thinks to be in another distro/release. In these sessions a $APT_VENV variable is set and points out the release name in use.

If you want to customize environment you can modify files in:

$HOME/.config/apt-venv/$release

apt-venv is already available in Debian and Ubuntu utopic unicorn.

Use case

Show which version of some package is in Debian and Ubuntu, simply:

# init apt database for releases
for release in unstable stable trusty lucid ; do
    apt-venv $release -u
done

# do what you want
for release in unstable stable trusty lucid ; do
    apt-venv $release -c "apt-cache madison base-files | grep Source | tail -1"
done

If you do not specify -c option you will entry an interactive shell.

Usage

$ apt-venv -h
usage: apt-venv [-h] [-D DEBUG] [-v] [-d] [-c COMMAND] [-l] [release]

positional arguments:
  release               the debian/ubuntu release

optional arguments:
  -h, --help            show this help message and exit
  -D DEBUG, --debug DEBUG
                        set debug level
  -v, --version         show program's version number and exit
  -c COMMAND, --command COMMAND
                        exec the given command instead of entry the interactive shell
  -d, --delete          delete venv for release
  -l, --list            list all venv installed in your system
  -u, --update          update the apt indexes

A simple plugin for Sonata…

This simple plugin uses pynotify to notify on song changes in sonata.

This is when you don’t have the album cover:

no-album-cover

This one shows a preview of plugin when option “Album art” is checked (and mp3 file has some decent id3-tags):

notify-with-album-prew

Download:
You can download it using bzr:

bzr branch lp:~l3on/sonata/sonata-plugins

Then copy notify.py into the plugins directory of sonata.

Required:
* Sonata git
* python-notify package

Suggestion:
For a better result, uncheck: Sonata → Preferences → Extra → Popup notification on song changes

Regards.