Jun 27, 2015 - Install Drush on CentOS or Any base Unix


Step by step

  1. Check if you have root access
  2. sudo yum install php-pear (RedHat based)
  3. pear channel-discover pear.drush.org
  4. pear install drush/drush
  5. Check if Console table library is installed 5.1 if yes just use drush on you root path of drupal installtion 5.2 else install Console table: (more info)[https://www.drupal.org/node/2132447#comment-9740457]

Jun 25, 2015 - Mysqli extension for linux vps via whm


For MySQLi extension in your WHM panel (access root required), follow these steps:

  1. Log into the WHM with your root credentials.
  2. Go to the "EasyApache (Apache Update)" menu, located in the "Software" section or use the search box to find it.
  3. On the EasyApache page, make sure your Previously Saved (Default) configuration is selected and click on "Customize Profile".
  4. Keep clicking "Next Step", until you reach the "Short Options List" page and scroll to the bottom of the page.
  5. Click on the "Exhaustive Options List" button.
  6. On this page, scroll down to the PHP section and find MySQL “Improved” extension. You can use the page search option of your browser to locate the extension faster (Ctrl+F).
  7. Ensure the check box is filled in and scroll to the bottom.
  8. Click the "Save Only" button.
  9. On the next page, click the "Build profile I just saved" button.
  10. A pop box will appear and ask you to recompile Apache and PHP, select "Yes" and "I understand", if prompted.
  11. Wait until the Build ouput is complete and the MySQLi extension should be installed/enabled. Please do not log out of the WHM or interrupt the rebuild process and wait for it to be completed.

Jun 18, 2015 - Create gif with ffmpeg and quicktime player


Today I learn how to create gif with ffmpeg and quicktime player. Well I'm researching and looking issue on drupal.org issue queue and look this awesome comment from Rachel Lawson . And she response my message on d.o. It's a really cool script for people that love gif =)


# Create an animated GIF of a screen recording to upload to d.o
# Usage: creategif input_file.mp4 output_file.gif
# As described at http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html



# GIF supports a 256 colour palette. Determine the best palette and store as temp file
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette

# Use the stored palette to encode the GIF
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2

Gist Link

More info : High quality gif with ffmpeg

Jun 18, 2015 - Latex package normally I use for write on latex.


Well latex is the best, if you don't know you have to learn. I really recommendo for docs, order docuemntation, manuals and also som presentation. I normmally use latex for all =)

But always is good to share some tips, I write a lot of docs on spanish, and when I learn latex accent wasn't my friends.

This package I recommend for a simple usage or little article:

    %My preference about document
    \usepackage[utf8]{inputenc} %this was the solution for spanish speaker


Enjoy :)

Jun 16, 2015 - Favorite wget to download web


Frequently commands for download all from specific url:

    wget --mirror -p --html-extension --convert-links www.jguzman.cl

    wget -r --no-parent www.jguzman.cl

    wget -A pdf,jpg,css,png,js,doc,docx,xls,xlsx -m -p -E -k -K -np http://www.jguzman.cl

    wget --no-clobber --convert-links --random-wait -r -p -E -e robots=off -U mozilla www.jguzman.cl