Skip to content

Instantly share code, notes, and snippets.

View PabloCastellano's full-sized avatar
:octocat:

Pablo Castellano PabloCastellano

:octocat:
View GitHub Profile

Keybase proof

I hereby claim:

  • I am pablocastellano on github.
  • I am pablog (https://keybase.io/pablog) on keybase.
  • I have a public key ASD57U1C9mkPrYyvbz13SQI5f5D457kMkCllsdKKvfB7cgo

To claim this, I am signing this object:

@PabloCastellano
PabloCastellano / get_constituciones.py
Last active December 30, 2015 09:14
Bormeparser: Obteniendo el campo Comienzo de operaciones del acto Constitución
import os
import bormeparser
BORME_JSON_ROOT = '/home/pablo/.bormes/json'
def find_constitucion(borme):
constituciones = []
for anuncio in borme.get_anuncios():
actos = list(anuncio.get_actos())
@PabloCastellano
PabloCastellano / gist:6b160939a4fb2a3b026f
Created January 2, 2015 11:09
User ob cannot run obelisk
root@obeliskP:~# su ob
ob@obeliskP:/root$ obworker
Using config file: "/etc/obelisk/worker.cfg"
Press CTRL-C to shut down.
DEBUG [worker]: Listening: tcp://*:9091
INFO [worker]: worker ready
DEBUG [worker]: Heartbeat: tcp://*:9092
terminate called after throwing an instance of 'boost::interprocess::interprocess_exception'
what(): Permission denied
Aborted (core dumped)
root@obeliskP:~# sudo bash /usr/local/src/obelisk-git/scripts/setup.sh
[+] Welcome to Obelisk worker and balancer daemon setup.
IMPORTANT: This script requires previous installation of
libbitcoin, libwallet and obelisk IN DEFAULT LOCATIONS.
INFO: Imported genesis block 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
--> ob user already exists: skipping...
ERROR: --> You need to have installed libbitcoin, sx and obelisk before run this script.
#!/bin/sh
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "your@email.to.match" ]