2018-07-17

How to delete the mp3 file of the current audacious song

I you want to delete the mp3 file of the current song playing in audacious just follow these steps:

  • First add the following text to the change song plugin for the starting songs
    echo "%f"<audacious.tx
  • now execute this command each time you want to delete a song.
    rm "`cat audacious.txt|sed -e 's/%20/ /g' |sed -e 's/%26/\&/g' |sed -e 's/file:..//g'`"
    

Maybe you'll have to add more sed commands depending on the name of your songs.

Happy hacking!!!

2018-07-10

Try-With-Resource in Plain Java

Try-With-Resource in Plain Java

This article explains the difference between Java 8 and Java 9 handling try-resource problem

2018-07-01

ME LO CONTARON AYER - RAFAEL DE LEON - DECLAMADO POR FENETE



Me lo contaron ayer (Rafael de León)

Me lo contaron ayer
las lenguas de doble filo,
que te casaste hace un mes...
y me quedé tan tranquilo.
Otro cualquiera, en mi caso,
se hubiera echado a llorar...
Yo, cruzándome de brazos,
dije que me daba igual.
Nada de pegarme un tiro
ni enredarme a maldiciones
ni de apedrear con suspiros
los vidrios de tus balcones.

¿Qué te has casado? ¡Buena suerte!
¡Vive cien años contenta
y a la hora de la muerte...
Dios no te lo tenga en cuenta!
Que si al pié de los altares
mi nombre se te borró,
por la gloria de mi madre
que no te guardo rencor;
Porque, sin ser tu marido
ni tu novio, ni tu amante,
yo soy... quien más te ha querido...
¡Con eso tengo bastante!

2018-06-28

How to recreate /etc/nginx directory

Maybe you removed the /etc/nginx directory or you messed around with it, how can you recreate it?

To recreate it, first uninstall using purge to remove even configuration files and records:

sudo apt-get purge nginx nginx-common nginx-full

then reinstall:

sudo apt-get install nginx

If above doesn't work for you, you can also try using --force-confmiss option of dpkg.

sudo dpkg --force-confmiss -i /var/cache/apt/archives/nginx-common_*.deb

Borrowed from stackoverflow

2018-06-19

La máquina Enigma (ejercitos.org)

Genial entrade en http://www.ejercitos.org sobre La máquina Enigma.