Skip to content

Instantly share code, notes, and snippets.

@manugarri
manugarri / cookie_read_test.go
Created April 19, 2018 12:06 — forked from jonnyreeves/cookie_read_test.go
Testing Cookie Writes in Golang
diccionario_columnas = {
"belongs_to_collection": "franquicia",
"budget": "presupuesto",
"genres": "genero",
"homepage": "pagina_web",
"original_language": "lenguaje",
"popularity": "popularidad",
"poster_path": "poster",
"production_companies": "productores",
"production_countries": "pais",
@manugarri
manugarri / config
Created December 19, 2017 17:11 — forked from gerardorf/config
bastion ssh configuration. Add this config on ~/.ssh/config
Host *.gerardorf.org !bastion.gerardorf.org
User admin
IdentityFile ~/.ssh/gerardorf-private-key
ProxyCommand ssh -W %h:%p admin@bastion.gerardorf.org
Host bastion.gerardorf.org
Hostname XXX.XXX.XXX.XXX
User admin
IdentityFile ~/.ssh/gerardorf-private-key
ForwardAgent yes
@manugarri
manugarri / parse_borme.py
Created March 20, 2017 21:46
Herramienta para descargarse de forma rapida los datos del boletin del registro mercantil, borme.
#! /usr/bin/env python
"""
Herramienta para descargarse datos historicos del Boletin Oficial del Registro Mercantil.
Para usar:
>> python parse_borme.py INICIO_FECHA FIN_FECHA REGIONES OUTPUT
con:
- INICIO_FECHA es la fecha de inicio que se desea procesar, en formato %Y-%m-%d
- FIN_FECHA es la fecha final que se desea procesar, en formato %Y-%m-%d
- REGIONES son una lista de regiones separadas por coma que se desean, por ejemplo MURCIA,MADRID,BARCELONA
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"IAB1": "Arts & Entertainment",
"IAB1-1": "Books & Literature",
"IAB1-2": "Celebrity Fan/Gossip",
"IAB1-3": "Fine Art",
"IAB1-4": "Humor",
"IAB1-5": "Movies",
"IAB1-6": "Music",
"IAB1-7": "Television",
"IAB2": "Automotive",
@manugarri
manugarri / guess_candidate_model.py
Created November 13, 2016 15:57 — forked from gati/guess_candidate_model.py
Code for training an LSTM model for text classification using the keras library (Theano backend). Was used for guesscandidate.com.
from sklearn.cross_validation import train_test_split
from keras.preprocessing import sequence, text
from keras.models import Sequential
from keras.layers import (Dense, Dropout, Activation, Embedding, LSTM,
Convolution1D, MaxPooling1D)
# Embedding
max_features = 20000
maxlen = 100
embedding_size = 32
@manugarri
manugarri / analytic_wfm.py
Created June 21, 2016 22:19 — forked from sixtenbe/analytic_wfm.py
Peak detection in Python
#!/usr/bin/python2
# Copyright (C) 2016 Sixten Bergman
# License WTFPL
#
# This program is free software. It comes without any warranty, to the extent
# permitted by applicable law.
# You can redistribute it and/or modify it under the terms of the Do What The
# Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See
@manugarri
manugarri / automation.md
Created June 21, 2016 09:57 — forked from cube-drone/automation.md
Automation For The People

Automation for the People

Long ago, the first time I read "The Pragmatic Programmer", I read some advice that really stuck with me.

"Don't Use Manual Procedures".

This in the chapter on Ubiquitous Automation. To summarize, they want you to automate all the things.

The trouble was that I hadn't much of an idea how to actually go