Skip to content

Instantly share code, notes, and snippets.

View Findeton's full-sized avatar

Félix Robles Findeton

View GitHub Profile
@Findeton
Findeton / gen_votes.py
Created February 14, 2017 17:10
gen_votes.py
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# This file is part of agora_elections.
# Copyright (C) 2017 Agora Voting SL <nvotes@nvotes.com>
# agora-results is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License.
@Findeton
Findeton / test agora audit
Created February 6, 2017 10:15
test agora audit
{"ballot_hash":"8d34cbb50c14d3043ade0a189f0f6a72890fb9b2ba7b96a024aa0563f652ebf6","choices":[{"alpha":"19065440910416945402168189615931763997693720869195445417334939886480209505565471884202546378657366886099320103510413795352091135977450250250811249849830931092373758318779532756480288895857528433726104126033181033700305069476758329818544702260302812333294066004136232410867608129514921794670401498945801015453111673791568456999218179681057242425038953160240908834978949177212368775062917675129070997714540769598030619314345366004399836226243417031220091655970719958322710801742428672865121298346920881581940899844212723981537619721060322857709675883524971028125714396842551083408909393172159764867211579242408130434684","beta":"234264801212974380125945008148760066349809825850700594355059061001356767046318957074503032914080945403741819619066811685103701964508584277070896512184855217852274816357938968814016493161891290510559787131959077891245370525972256772720360622128244458889912503119144460662486040348797772241878920
@Findeton
Findeton / disable_edit2.patch
Created January 26, 2017 14:37
Disable editing/removing comments, editing issues on gitlab, editing user name
From 10609b0bd79e8d981a3f8bf6c6a2393c20e9924a Mon Sep 17 00:00:00 2001
From: Findeton <felrobelv@gmail.com>
Date: Wed, 25 Jan 2017 13:12:04 +0100
Subject: [PATCH 1/2] disable editing and removing comments, editing issues
---
app/controllers/projects/issues_controller.rb | 1 +
app/controllers/projects/notes_controller.rb | 2 ++
app/views/projects/issues/show.html.haml | 3 ---
app/views/projects/notes/_note.html.haml | 6 ------
@Findeton
Findeton / disable_edit.patch
Created January 25, 2017 12:22
Disable editing/removing comments and editing issues on gitlab
From 10609b0bd79e8d981a3f8bf6c6a2393c20e9924a Mon Sep 17 00:00:00 2001
From: Findeton <felrobelv@gmail.com>
Date: Wed, 25 Jan 2017 13:12:04 +0100
Subject: [PATCH] disable editing and removing comments, editing issues
---
app/controllers/projects/issues_controller.rb | 1 +
app/controllers/projects/notes_controller.rb | 2 ++
app/views/projects/issues/show.html.haml | 3 ---
app/views/projects/notes/_note.html.haml | 6 ------
@Findeton
Findeton / proyectos.md
Last active October 4, 2016 09:09
proyectos

Proyectos

Se propone centrarse en la parte de cabina de votaciones para los proyectos. La cabina de votaciones es implementado por 4 librerías:

Interfaz de la web pública de la votación, donde entre otras cosas se pueden consultar los resultados de la votación una vez terminada. Desarrollada en Javascript con AngularJS, Bootstrap, Grunt.

{
"director": "local-auth1",
"authorities": ["local-auth2"],
"agora_results_config": [
[
"agora_results.pipes.results.do_tallies",
{"ignore_invalid_votes": true}
]
],
"agora_results_config_sorting": [
#0.census.json
[
{
"email": "felrobelv@gmail.com"
},
{
"email": "fel.rob.elv@gmail.com"
}
]
#0.config.json
---
- hosts: all
tasks:
- include_vars: config.yml
- include_vars: repos.yml
- include: java.yml
- include: packages.yml
- include: system.yml
server {
listen 80;
server_name agora.dev;
server_tokens off;
location /api {
proxy_pass http://localhost:3000;
}
{
"id": 1110,
"pretty_name": "Votación de candidatos",
"description": "Selecciona los documentos político, ético y organizativo con los que Podemos",
"director": "wadobo-auth1",
"authorities": "openkratio-authority",
"extra": [],
"hash": "",
"is_recurring": false,
"layout": "pcandidates-election",