Skip to content

Instantly share code, notes, and snippets.

View andreslucena's full-sized avatar

Andrés Pereira de Lucena andreslucena

View GitHub Profile
andreslucena / demonio
Created November 11, 2012 23:21
cabinas voip
sudo service asterisk start
sudo service asterisk stop
sudo service asterisk status
This fabric file makes setting up and deploying a django application much
easier, but it does make a few assumptions. Namely that you're using Git,
Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have
Django installed on your local machine and SSH installed on both the local
machine and any servers you want to deploy to.
_note that I've used the name project_name throughout this example. Replace
this with whatever your project is called._
andreslucena / gist:cff5e7df9f0e4201f31d19eb06469b35
Created September 29, 2017 11:02
Decidim 0.6.5 install error
$ gem install decidim
Fetching: decidim-api-0.6.5.gem (100%)
Successfully installed decidim-api-0.6.5
Fetching: decidim-core-0.6.5.gem (100%)
Successfully installed decidim-core-0.6.5
Fetching: decidim-participatory_processes-0.6.5.gem (100%)
Successfully installed decidim-participatory_processes-0.6.5
Fetching: decidim-system-0.6.5.gem (100%)
Successfully installed decidim-system-0.6.5
Fetching: decidim-admin-0.6.5.gem (100%)
andreslucena / install_decidim.bash
Last active January 18, 2018 09:14
Magic installation script for Decidim on Ubuntu 16.04 LTS and macos sierra 10.2
#!/usr/bin/env bash
# Decidim installation script on Ubuntu 16.04 LTS and macos sierra 10.2
# This is a BETA and as such you should be aware that this could break your environment (if you have any)
# This will install rbenv, postgresql, nodejs and install decidim on this directory
# It'll take 15 minutes depending on your network connection
set -e
andreslucena /
Created January 19, 2018 12:52
Monorepo or mutiple repositories?

With our current architecture we're facing a crossroad, where we need to talk about how could be the best approach to handling all the git repositories and all the problems that we're having right now and the problems to come.

Starting point

On one hand, this is the picture right now:

Official modules on decidim/decidim

  • decidim-accountability
  • decidim-admin


These are multiple feature proposals to have a better compliance with GDPR (General Data Protection Regulation).

  1. Right of Data Portability
  2. Right to be Forgotten
  3. Unmark "receive information" by default on user creation
  4. Pages version control
  5. TOS accepted at field for users

EPIC Support System

As an user, there are moments where I need support for an administrator of the platform. Most of the deployments resolve this by two ways:

  • A contact email
  • A contact form on an external system

The problem is that all this requests for information will be outside the platform, and there are some questions that could be answer by the community itself or that they were already asked (and answered).

The solution proposed would have a dynamic similar to questions-and-answers (Q&A) websites, like StackOverflow, but for the moment we don't want to have votes. The module name could be "decidim-support".

andreslucena / install-decidim.bash
Last active February 21, 2019 14:31
Decidim One Command Magick Installer v0.2
#!/usr/bin/env bash
# Decidim installation script on Ubuntu 18.04 LTS
# It should also work on other Operating Systems that supports docker / docker-compose
# This is a BETA and as such you should be aware that this could break your environment (if you have any)
# This will use the docker image from Docker Hub and set-up a docker-compose environment for you to try Decidim
# It'll take 15 minutes depending on your network connection
# This is also proposal to merge to upstream, to fix the docker-compose/Dockerfile/README
andreslucena /
Last active March 10, 2021 14:42
A Decidim hack for having videoconferences on Meetings

This is a quick hack for having videoconferences support on Decidim. Supported services:

  1. YouTube
  2. Jitsi We've been using this on Barcelona ( and multitenant organization) and also on Meta (

How it works:

  1. You need to add this as a HTML snippet option (config.enable_html_header_snippets on config/initializers/decidim.rb) or as a javascript file on your application (app/assets/javascripts/videoconference.js for instance).
  2. You can configure a Meeting with two services, through the address detail field (see screenshots). You'll need to configure a real address if having geocoding enabled. On this case then you can put the whole city (ie "Barcelona").
andreslucena / Decidim Release Notes v0.25.0 (rc1-rc4).md
Last active September 27, 2021 06:25
Release Notes for the last candidate of the v0.25, with the rc1, rc2, rc3 and rc4 notes consolidated in a single document

Upgrade notes

As prerequisites, you'll need:

  • Node.js version 16.9.x (this version is mandatory)
  • Npm version 7.21.x (it works with other versions, but this is the recommended)

We strongly recommend that you have a database and static files backup as this is a huge release. It's the biggest release from the beginning, as we're updating to Rails 6, migrating to Webpacker and ActiveStorage.

To update, follow these steps: