Skip to content

Instantly share code, notes, and snippets.

This is a manual for installing DemocracyOS app in CentOS.

Setting up the Requirements

  1. MongoDB =========== Installing MongoDB and starting its daemon:
@johnfelipe
johnfelipe / sayitcentos.md
Last active August 29, 2015 14:16
sayitcentos.md

Ver que clase de centos es:

    uname -i

Chequear la version de java

    java -version
@johnfelipe
johnfelipe / base.py
Created May 12, 2015 17:22
/home/felipe/sayit/sayit.mysociety.org/sayit_mysociety_org/settings/base.py
# Django settings for sayit_mysociety_org project.
import imp
import os
import sys
from django.conf import global_settings
from .paths import * # noqa
# Get the changeable configuration
from .mysociety import * # noqa
@johnfelipe
johnfelipe / speech_extension.py
Last active August 29, 2015 14:21
Top speaker and common words
# -*- coding: utf-8 -*-
from collections import defaultdict
from heapq import nlargest
from operator import itemgetter
from django import template
import re
from django.utils.html import strip_tags
import json
@johnfelipe
johnfelipe / actademo.xml
Last active August 29, 2015 14:22
actademo
<akomaNtoso>
<debate>
<meta>
<references>
<TLCPerson href="/ontology/person/concejodemedellin.felipeurrego.com/nicolás-albeiroecheverri-alvarán" id="nicolás-albeiroecheverri-alvarán" showAs="Nicolás Albeiro
Echeverri Alvarán"/>
<TLCPerson href="/ontology/person/concejodemedellin.felipeurrego.com/josé-nicolás-duque-ossa" id="josé-nicolás-duque-ossa" showAs="José Nicolás Duque Ossa"/>
<?xml version="1.0" ?>
<akomaNtoso>
<debate>
<meta>
<references>
<TLCPerson href="/ontology/person/camara.felipeurrego.com/dr-diego-molano-vega" id="dr-diego-molano-vega" showAs="Dr. Diego Molano Vega"/>
<TLCPerson href="/ontology/person/camara.felipeurrego.com/h-s-parmenio-cuellar-bastidas" id="h-s-parmenio-cuellar-bastidas" showAs="H. S. Parmenio Cuellar Bastidas"/>
<TLCPerson href="/ontology/person/camara.felipeurrego.com/h-s-olga-suarez-mira" id="h-s-olga-suarez-mira" showAs="H. S. Olga Suárez Mira"/>
<TLCPerson href="/ontology/person/camara.felipeurrego.com/h-s-luis-fernando-duque" id="h-s-luis-fernando-duque" showAs="H. S. Luis Fernando Duque"/>
<TLCPerson href="/ontology/person/camara.felipeurrego.com/h-s-edgar-espindola-nino" id="h-s-edgar-espindola-nino" showAs="H. S. Édgar Espíndola Niño"/>
#!/bin/bash
#
# PostgreSQL Backup Script Ver 1.0
# http://autopgsqlbackup.frozenpc.net
# Copyright (c) 2005 Aaron Axelsen <axelseaa@amadmax.com>
#
# This script is based of the AutoMySQLBackup Script Ver 2.2
# It can be found at http://sourceforge.net/projects/automysqlbackup/
#
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9
[15/07/2015 04:51:26 p.m. - SMTP smtpout.secureserver.net:465 AUTH SSL 5;1;50;60;2;0;5]
[#0] 220 p3plsmtpa06-06.prod.phx3.secureserver.net ESMTP
[#0] EHLO felipeurregon
[#0] 250-p3plsmtpa06-06.prod.phx3.secureserver.net hello [190.165.92.132], secureserver.net
[#0] 250-HELP
[#0] 250-AUTH LOGIN PLAIN
[#0] 250-SIZE 31457280
[#0] 250-PIPELINING
[#0] 250-8BITMIME
[#0] 250 OK
@johnfelipe
johnfelipe / new.xml
Created August 14, 2015 04:55
Akomantoso problem sayit
<akomaNtoso><debate><debateBody><debateSection><heading>2015</heading><debateSection><heading>Junio</heading><debateSection><heading>ACTA 673
</heading><speech by="#luisbernardovelezmontoya" startTime="2015-06-12T00:00:00">De acuerdo con el Reglamento, sugiero que podamos comenzar entregando el
informe del cuestionario, por parte de la Administraci&#243;n, que ya nos lo hicieron
llegar. Luego solicito si hay personas de la comunidad que quieran intervenir y a
continuaci&#243;n los concejales que a bien tengan opinar sobre este debate. Y es
bueno insistir que fuimos enf&#225;ticos desde hace mucho tiempo cuando se
present&#243; la proposici&#243;n, que se hiciera una sesi&#243;n de seguimiento al Acuerdo
la pol&#237;tica p&#250;blica para la promoci&#243;n,
la pol&#237;tica p&#250;blica para la promoci&#243;n,
prevenci&#243;n, atenci&#243;n, protecci&#243;n, garant&#237;a y restablecimiento de los derechos
@johnfelipe
johnfelipe / LOG 08102015
Created October 8, 2015 16:02
LOG 08102015
This file has been truncated, but you can view the full file.
[07/10/2015 10:51:09 p.m. - SMTP smtpout.secureserver.net:80 AUTH 5;1;50;60;2;0;5]
[#0] 220 p3plsmtpa09-09.prod.phx3.secureserver.net ESMTP
[#0] EHLO UserPC
[#0] 250-p3plsmtpa09-09.prod.phx3.secureserver.net hello [190.28.185.230], secureserver.net
[#0] 250-HELP
[#0] 250-AUTH LOGIN PLAIN
[#0] 250-SIZE 31457280
[#0] 250-PIPELINING
[#0] 250-8BITMIME
[#0] 250 OK