Category: Articles
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’) “…
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’) “…