HOWTO: [jQuery, JS, regexp, SEO] Create SEO friendly filenames with jQuery and regexp

There’s no need to stress that in 2017 we MUST rename files originally named like “1230jfnfdvnasjcjsdas13.JPEG” to “our-fantastic-seo-url.jpeg” in order to obtain a better SEO result.I use this simple script to obtain from my crappy named files something more friendly:newString = filenameString.replace(/\s+/g, ‘-‘).toLowerCase().replace(/[^a-zA-Z0-9-_]/g, ”);And here’s the result:HOWTO: [jQuery, JS, regexp, SEO]…

Continue reading

HOWTO: [MySQL] Move WordPress from localhost to production (or from one server to another one)

If you want to move your Wordpress installation from localhost to the production server (or move from one server to another one) you must alter every table containing old urls. These lines automatize the process.Important notices!These are ONLY the SQL commands you must launch from command line or Phpmyadmin. This is…

Continue reading

My .vimrc

execute pathogen#infect() set nocompatible ” To be improved, required filetype off ” required set autochdir ” change working directory accordingly to edited file ” set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() ” alternatively, pass a path where Vundle should install plugins “call vundle#begin(‘~/some/path/here’) “…

Continue reading