20180102

Post resum 2017

Post resum 2017, sense editar :)

Exits:
null

Gadgets of the year (comprats o regalats):
airpods
cable usb-usbC
iphone 8 plus
carregador per induccio

Samarretes del any:
hodor - hodor
prodigy
exquirla
make eternia great again
skydine
ceci n'est pas une lune
stranger things
mammut floppy disk


Friky coses guays:
vue.js

Jocs als que m'he viciat aquest any:
yokai watch wiggle woggle

Grups guays que he descobert aquest any:
Las Robertas
Juvenilia
La Sera
Biznaga
Rusos Blancos
Sad Lovers & Giants
Zuzu
Death in june
Young Prisms
Minor Victories
Velvet condom
The Mantles
D.A.R.K.
Joanna Gruesome
Speedy Ortiz
Vaadat Charimig
Be Forest
A sunny day in Glasgow
Tamaryn
Exquirla
Sparklehorse
The Dears
The organ
Still corners
Las Odio
James Combs
Human tetris


Millors concerts als que he anat:
Primavera Sound
Low
Dissabte Cruilla
Exquirla a l’Auditori
Ojete Calor al razz clibs

Millors pelis que he vist:
The revenant (El renacido)
Escuadron suicida
Marte (The Martian)
Lego Batman
Manchester by the sea
Logan
The Crow (phenomena)
Moonlight
John Carter from Mars
Wienner Dog
A bettersweet life
La bella y la bestia
Los pitufos y la aldea escondida
Your name
bebe jefazo
john wick
Alien Covenant
Lesbian vampire killers
Get Out
The Priests
El dictador
Doctor Strange
Inferno
Seoul Station
Dunkirk
Wolf Children
Emoji
Ninjago
It
yokai watch
Mal Nosso
Laissez bronzer les cadavres
Fireworks
68 kill
Blade of the immortal
As boas maneiras
Errementari (El herrero y el diablo)
A silent voice
The brink
Pokemon: te elijo a ti
La liga de la justicia
Coco
The killing of a sacred deer
Julieta
Bright


Curts:
Waste
Eldrich code
Bruce Gallagan
Still
Preston
Massage
Behind
Les animaux domestiques
Ringo rocket star (yuri gagarin)



Llibres que he llegit i m'han agradat:
Las chicas, Emma Cline
Alta fidelidad, Nick Hornby
Harry Potter y el legado maldito, JK Rowling
El problema de los tres cuerpos
Farishta
Estados unidos de Japon
This time is different


Comics:
Creixer es un mite, Sarah Scribbles
League of extraordinary gentlemen, vol3
Ojos grises

Series a les que m'he enganxat (per ordre d'adiccio):
Stranger things s2
Game of thrones s7
Vikings s1 s2 s3 s4
Fargo s2
Gilmore Girls (a year in the life)
American crime history: OJ Simpson
Taboo s1
Mind Hunters s1
Picky blinders s1
Fargo s3
Narcos s1 i s2
Transparent s3
Legion s1

Teatre:
Medusa

Documentals:
Soñar el futuro


Sortides al Extranjer:
Madrid
Benidorm

Millors Hotels als que he anat:
Barcelo Occidental Madrid Este
Miramar, Barcelona

Millors restaurants:
Las 9 reinas
Al-mounia, Madrid
El Brillante, Madrid
La cofradia, Benidorm
Una mica de japo
Els pescadors
Nikkei 136
La glorieta del castell

20170604

El meu Primavera Sound 2017

Resum dels concerts que he vist aquest 2017 al Primavera:

29/05 Apolo:
Jeremy Jay
The Wave pictures

31/05 la2 Apolo:
Retirada!
The Wedding Present

01/06 forum:
Pinegrove
Kokoshca
Cymbals Eat Guitars
Mishima
Triangulo de amor bizarro
Arcade Fire (secret show)
The Molocks

02/06 forum:
El petit de cal Eril
It's Not Not
Vadaat Charimig
Mitski
The Magnetic fields
Arab strap
The Make-Up

03/06 forum:
Les Cruet
Pond
Van Morrison
Metronomy
Prairie WWWW (ultim tema)
Arcade Fire

Japandroid (3 temes)

20170101

Post resum 2016

Com sempre ho pujo sense editar, aquest any inauguro una nova secció d'exits (sortides) amb les desinversions que hem fet, per diferents motius.

Exits:
Zeebe
NiceTales
Healthia
Washrocks

Gadgets of the year (comprats o regalats):
ipad Air 2
PS VR per omatech
termostat NetAtmo

Samarretes del any:
wally darth vader, pampling
tim burton globus, pampling
disobey, pampling
kill all humans, pampling
know nothing, pampling
Darth Vader i Kylo Ren el rey leon, pampling
Lobezno, pampling
Pixies
The Cure

Friky coses guays:
Docker
jira+bitbucket
GraphQL a prod

Jocs als que m'he viciat aquest any:
pokemon go
until down, rush of blood

Grups guays que he descobert aquest any:
Beach Slang
Wild Nothing
Alex G
Kim Taylor
In heaven
Slaves
Sports
Youth Lagoon
Lua Gramer
Upset
Half Moon Run
Spain
Soledad Velez
Andy Shauf
Mice Parade
Red blood shoes
The twilight sad
Jeffrey Lewis
Gudar
Day Wave
Tess Parks
Beach Fossils
Pony up!
Rival Schools
Neutral Milk Hotel
Merchandise
Cranes
True Widow
Eugene McGinnes
Salad boys
Seapony


Millors concerts als que he anat:
Wolf Alice al Razz2
Los Punsetes al caraB
Florence and the machine al Sant Jordi
Dimecres PS 2016:
El último vecino, Sr. Chinarro, Suede, Mueran humanos i Young Husband
Dijous PS 2016:
- Mueran humanos
- Car seat headrest
- Daughter
Divendres PS 2016:
- Alex G
- Savages
- Dinosaur jr. (i la zona vip deserta amb tothom a radiohead)
Dissabte PS2016:
- Die Katapult
- Odd Cherry pie
- Wild Nothing
- Jenny Hval
- PJ Harvey
Dijous al bbk live: Chvrches, M83, Arcade Fire, Hotchip
Divendres bbk live: Grimes i Pixies (red blood shoes tambe vaig veure un troç i va molar)
Dissabte bbk live: León Benavente, Juventud Juché, McEnroe, León Benavente (one more time), Triángulo de amor Bizarro, Wolf Alice.
Sr. Chinarro, BAM
Triangulo de amor bizarro, BAM
Gudar, almo2bar
Hazte Lapon, almo2bar
Pixies, Sant Jordi Club
The Cure, Palau Sant Jordi (and twilight sad)
El ultimo vecino, al Maremagnum

Millors pelis que he vist:
The young frankenstein al phenomena
Macbeth al verdi
The Lobster
She's lost control
Requisitos para ser una persona normal
Le decline de l'empire Americane
Les invasions barbares
A teacher
I used to be darker
L'age des tenebres
Begin again
Zootropolis
Anomalisa
The hateful eight
El juego de Ender
El recuerdo de Marnie
Kung-fu panda 3
Nacion Prozac
Reservoir Dogs
Kick-ass
Ant-Man
Holy smoke
Sleepwalk with me
Boyhood
The program (El idolo)
Kingsman, the secret service
What we do in darkness
El arte de amar
Mascotas
American Gangster
X-Men Apocalypse
Kubo
Star Trek beyond
Invasion
Estado de sitio
Sing Street
ciguenyas
Money Monster
Captain America: Civil war
Mad Max, fury road
Ae dil hai mushkil
Captain fantastic
Where to invade next
10 cloverfield lane
Nanny diaries
Sully
Un dia perfecto
Mejor solteras
Vaiana
Star Wars Rogue One
Deadpool
Arrival

Altres pelis que he vist:
El viaje de Arlo a Glories
Resacon en las vegas
Dragon ball Z, la batalla de los dioses
La millor opcio

Curts:
Mr. Hublot
Pipas
Rise

Llibres que he llegit i m'han agradat:
El sabotaje amoroso, Amelie Nothomb
El primer hombre malo, Miranda July
Hombres sin mujeres, Haruki Murakami
Ready Player One, Ernest Cline
Armada, Ernest Cline
Yo fui a EGB 3
Buddishm a graphic guide


Comics:
La casa, Paco Roca
Una semana de cada dos,
El Club de la lucha 2, Chuck Palaniuck

Series a les que m'he enganxat (per ordre d'adiccio):
Stranger things s1
West world s1
Mr Robot s1
War and peace
Game of thrones s6
Silicon Valley s3
X-files s10

Teatre:
L'Avar, Goya

Documentals:
Me @ the zoo
Gameplay: la historia de los videojuegos
Growing up Trans
Ground breakers, Steve Jobs
Ground breakers, Bill Gates
The money trap, Panorama BBC
Exit through the gift shop


Sortides al Extranjer:
Bilbao
Madrid
Ahmedabad, India
Londres
Darmstadt

Millors Hotels als que he anat:
Caspian, Ahmedabad

Millors restaurants:
Miu
Fonda Marina, Montgat
Cal Lluis, Sant Pol
Emporium, Montgat
Al paseo
Can Mas Ferrer
Langos! a Darmastadt
Hungaryto

20160915

How to require autoload in vendor or outside vendor folder

Sometimes when you create a package for composer and want to create some example code you need to execute those examples as an standalone package or once included in a vendor folder of another project.

Use this simple trick in your example php files to require autoload in any location.

$autoload_location=__DIR__.'/../vendor/autoload.php';
if (!is_file($autoload_location)) $autoload_location='../../../autoload.php';
require_once $autoload_location;



20160101

Post resum 2015

Com sempre sense editar...


Gadgets of the year (comprats o regalats):
iPhone 6s

Samarretes del any:
Heisenberg
Easypromos

Friky coses guays:
Sled Dogs Snowskates
Emulador d'Amiga FE-UAE per Mac
Ulo

Jocs als que m'he viciat aquest any:
Star Wars: Commander
Finalizer, super transformation - Mame
Monument Valley

Grups guays que he descobert aquest any:
Crystal fighters
Wolf Alice
Metric
Courtney Barnett
Viet Cong
Trementina
León Benavente
Sur la planche - la femme
Hazte Lapón
Bastante
War paint
L.A.
Los Punsetes
El último vecino
Torres
Gente Joven
Indigo Girls

Millors concerts als que he anat:
Ride al PS15
Belle and Sebastian al PS15
Florence and the Machine al FIB15
Sr. Chinarro on the roof
Crystal fighters al FIB15 i al BAM
Los Punsetes al BAM
Mishima al BAM
Mourn al BAM
Sr. Chinarro i Leon Benavente a la Capsa
Johanna Newsom al Barts
Sr. Chinarro al Heliogabal
Kings of Convenience al Apolo


Millors pelis que he vist:
Fight Club al phenomena al cine!
Big Hero 6
La Reunion
Primos
Closer
Olvidate de mí
Birdman
Frank
The imitation game
Relatos salvajes
Los minions
Del reves
El extraordinario viaje de T.S. Spivet
Ex Machina
El hobbit, la batalla de los cinco ejercitos
When we're young
Francesc Ha
Gone girl (perdida)
Chappie
The interview
Hombres, mujeres y niños
Elliot Smith: Heaven adores you
Automata
Sexo facil, peliculas tristes
Akira
La mecanica del corazon
Quemar despues de leer
Star Wars, el despertar de la fuerza
Los vengadores la era de Ultron

Altres pelis que he vist:
Twix
Indomable (Haywire)
Aprendiz de gigolo
El amanecer del planeta de los simios
Guardianes de la galaxia
Too big to fail
Malditos vecinos
La vida secreta de Walter Mitty
Sex Tape, algo pasa en la nube
Open Windows
1000 maneras de morder el polvo
Al filo del mañana
La obeja Shaun
Zero Charisma
No hay dos sin tres
Lucy
El calentito
Hacemos una porno?
dos tontos muy tontos 2
Mortdecai
Felices 140
El amor y otras cosas imposibles
50 sombras de grey
Corazones de acero
La montaña rusa
Regression
Eagle eye
Las novias de mis amigos
Barbacoa de amigos

Curts:
Cowboys
2037

Llibres que he llegit i m'han agradat:
La nostalgia feliz, Amelie Nothomb
Condenada, Chuck Palahniuk
Pequeño circo, Nando Cruz
Maldita, Chuck Palahniuck

Comics:

Series a les que m'he enganxat (per ordre d'adiccio):
Versailles s1
Transparent s1 s2
Game of thrones s5
Mozart in the jungle s1
Penny dreadful s2
You're the worst s1
Catastrophe s1

Teatre:

Documentals:
La historia de Frozen
The internet own's boy
Ciutat morta
Print the legend
Las super bacterias
Epidemias, la amenaza invisible
Amy

Sortides al Extranjer:
Benicassim

Millors Hotels als que he anat:
NH a Castello

Millors restaurants:
El xiringuito de l'Escriba
Els Pescadors


20150714

How to send you an email with your mysql slave seconds behind master value

It's dead simple, just schedule a crontab with this line:

mysql -u root -p -e "show slave status \G"|grep Seconds | mail -s "Seconds behind master"


This will query the slave status, grep the most important line and send you an email.

Hope this help

20150612

How to query a memcache top using shell script

In case you want to watch the most important parameters of your memcache installation you can use this basic shell script:

watch "echo stats | nc 127.0.0.1 11211 |grep -v conn_yields |grep -v time|grep -v cmd|grep -v threads \
|grep -v evictions|grep -v reclaimed|grep -v auth|grep -v pointer_size|grep -v accepting_conns \
|grep -v bytes_read|grep -v bytes_written|grep -v badval|grep -v structures|grep -v pid \
|grep -v version|grep -v rusage|grep -v incr|grep -v decr|grep -v listen|grep -v cas \
|grep -v total_connections|grep -v delete|grep -v total_items|grep -v END"

It shows the most important parameters every two seconds ignoring the other ones, you can tune the showed params removing grep -v commands at your will.

Enjoy!


20150107

Resum de l'any 2014

Com cada any publico un resum del que ha estat el 2014 en diferents categoríes, sobretot com a recordatori personal.

No edito gaire perquè els nens estàn a punt de llevar-se :)

Gadgets of the year (comprats o regalats):
Xarxa PLC amb Wifi
Impressora HP Deskjet Wifi

Samarretes del any:
Piedra, papel, tijera, lagarto, spock

Friky coses guays:
mailgun
mandrill
telegram
que seth macfarlane (padre de familia) es productor del nou Cosmos
que el prota de Prison Break es el guionista d'Stoker
Jacob Dhein mola molt
Kibana
red herring (literalment arenque rojo, metaforicament pista falsa)

Jocs als que m'he viciat aquest any:
StarWars Commander

Grups guays que he descobert aquest any:
Desert

Millors concerts als que he anat:
Arcade Fire
Pixies

Millors pelis que he vist:
The wolf of wall street
django unchained
Magnolia
Las brujas de zagarramurdi

Stoker
Un heureux evenement
X-Men days of future past
Lobezno inmortal
Grand Hotel Budapest
Rushmore
La LEGO pelicula
Stockholm
God help the girl
nebraska
¿que hacemos con maisie?
dallas buyers club
La ultima nit de Boris Grushenko
Capitan America, soldado de invierno

Altres pelis que he vist:
ironman 3
Mama
Her
After earth
Movie 43
En llamas
The Cabin in the woods
Battleship
Lincoln
Oblivion
Si fuera facil
In time
Sinister
Elyseum
Ilusion
Ruby Sparks
Jobs
The Internship
El profesional, Leon
Pacific Rim
Jackie Brown
SpringBreakers
La vida de Adele
Boogie nights
World War Z
Gravity
Don Jon
Las ventajas de ser un marginado
La gran familia Española
El Mayordomo
El hombre de acero
Juegos secretos
La lista
Once
Salvajes
La purga
Thor el reino oscuro
Un hombre solitario
Quien mato a bambi
Hannah Arendt
Lio embarazoso
Wallstreet
nymphomaniac 1 i 2
El canguro
Clear History
Una juerga de pelotas
El perfume
Supersalidos
Asalto al poder (Whitehouse down)
La gran estafa americana
Blue Jasmine
robocop 2014
The bling ring
Prisioneros
Agosto
la leyenda del samurai - 47 ronin
Amazing Spiderman 2:  El poder de Electro

Curts:
Voice Over
La rubia de Pinos puente
Validation

Llibres que he llegit i m'han agradat:
Desert

Comics:
Los surcos del azar, Paco Roca
Crisis de ansiedad, Juanjo Saez
Realidad a la piedra, Joaquin Reyes
El otro mar,  Alfonso Zapico
Battle of the atom
Guia del mal padre 2
Manual para padres frikis, año 0
Sansamba
cooltureta
Degenerados

Series a les que m'he enganxat (per ordre d'adiccio):
Fargo s1
Juego de tronos s4
True Detective s1
Downton Abbey s4, s5
Silicon Valley s1
Penny dreadful s1
Halt and catch fire s1
Parenthood s4 s5
The leftovers s1
Portlandia s4
Dates s1
The strain s1
Believe s1
Los 100 s1
Capture s1
The writers room
Gadget man s1

Teatre:
Desert

Documentals:
ComicCon
europe in 8-bits
Mel Brooks, haz ruido
El culo del mundo
The punk singer
La mentira de Lance Armstrong
We steal secrets: La historia de Wikileaks
Donald Rumsfeld: certezas desconocidas
InRealLife (La Red)
Los 90: la decada que nos conecto
There will be dragons

Sortides al Extranjer:
EuroDisney
Madrid

Millors Hotels als que he anat:
Desert

Millors restaurants:
Bacoa
Osmosis
El cau del pescador
Els pescadors
Gorria
Le 58


20141016

Patching poddle bug in Apache

If you use HTTPS with Apache in Ubuntu or other Linux flavor it's very feasible that you have SSL v3 enabled, and then be vulnerable to the poddle bug.

To prevent Apache to use SSL v3 you can add those lines (in bold) to your typical SSL config in the Virtual host affected.

--------------------------
  SSLEngine on

  SSLProtocol All -SSLv2 -SSLv3

  SSLCertificateFile    /etc/ssl/certs/xxxx.com.crt
  SSLCertificateKeyFile /etc/ssl/private/xxxx.com.key
  SSLCACertificateFile  /etc/ssl/certs/CA.xxxx.com.crt
------------------------

And of course restart Apache!

Note: In recent versions is recomended to add this lines too, but read the full info in the link below for more info.

SSLCipherSuite          ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
SSLHonorCipherOrder     on
SSLCompression          off


Check very fast your configuration with this geotrust tool https://ssltools.geotrust.com/checker/views/certCheck.jsp

Or you can check all kinds of SSL problems with this Qualys great but slower tool:

https://www.ssllabs.com/ssltest/

More general information about this problem in: http://askubuntu.com/questions/537196/how-do-i-patch-workaround-sslv3-poodle-vulnerability-cve-2014-3566


20140927

Ultimate guide to patch ShellShock in old Ubuntus

I've recently have to patch 28 ubuntu servers in our company, in theory it's an easy procedure but, you know, when you're dealing with old systems that have not been updated for years it can get a little more complicated.

Looking for the solution in different posts I've compiled my own recipe.

First of all, how to know if you're vulnerable?

Run this:
env X="() { :;} ; echo busted" `which bash` -c "echo completed"


OK output:
/bin/bash: warning: X: ignoring function definition attempt
/bin/bash: error importing function definition for `X'
completed

KO output, must be PATCHED!:
busted
completed

The easiest way to update in Ubuntu is using aptitude:

apt-get update
apt-get install --only-upgrade bash

If for any reason this method don't work (outdated sources.list or pointing to old-releases or whatever), you can update bash rebuilding from source, this method should work for other Linux flavors but I've only tested in Ubuntus.

It's easy to update from source following this recipe:

cd /src
wget http://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz

for i in $(seq -f "%03g" 0 25); do wget http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-$i; done
tar zxvf bash-4.3.tar.gz
cd bash-4.3
for i in $(seq -f "%03g" 0 25);do patch -p0 < ../bash43-$i; done
./configure --prefix=/usr --bindir=/bin --sbindir=/sbin --sysconfdir=/etc && sudo make && sudo make install

Remember to re-check the initial command to see if the problem has vanished.

Sources for this post: