WHOAMI
My name is Yuri Refolo and I'm a software developer from Pesaro, Italy.
Hire me on Fiverr!
I make websites, web apps, mobile apps and so on.
Here you can find some of my works.
Contacts:
Yuri Refolo
Via dei Frassini 41, 61122 Pesaro (PU), Italy
Skype: yurirefolo
Follow us on Instagram!
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]…
HOWTO: [Bash, shell scripting, Google] Search Google and filter results for last year
HOWTO: [Linux, mount, FTP] Mount remote FTP host on a local filesystem folder
HOWTO: [Php, Linux, bash] Echo phpinfo() in bash / shell
HOWTO: [MySQL, WordPress] Add new admin user from Phpmyadmin or MySQL console
Sometimes you need to create an admin user on the fly because you have MySQL credentials but not Wordpress ones. Here’s the code to create an admin on the fly.Important: you have to select your db first. Important: read the notice in the comments before running it on a production server. /* Replace…
HOWTO: [MySQL] Solve LOCK TABLES error with mysqldump
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…
HOWTO: Fix WordPress cannot install plugins
At first move on to the root of your Wordpress installation and exec with root privileges: sudo find . -type f -exec chmod 0644 {} \; sudo find . -type d -exec chmod 0755 {} \; Second: create a tmp_dir directory under wp-content/Then edit wp-config.php file and add this line:define(‘WP_TEMP_DIR’, ABSPATH…
HOWTO: Display all directories in $PATH, one per line
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’) “…