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

Jun 16, 2015 - Create route 53 record AWS


If you already followed this article and created a Route 53 record for your sub domain, that means we can proceed to add TXT records now. Please note that i assume that you use three different services for all this like Amazon for hosting, Godaddy/Name/NameCheap etc for domain, MailJet/SendGrid/ElasticEmail etc for emails send out.

Now for example, i want to send my users a welcome email when they join my blog [no-reply@blog.anl4u.com]. As you can see blog.anl4u.com. Now if you try to insert a SPF record for blog sub domain in TXT section of your hosted domain DNS area. Most probably it will throw an error, saying that there is already an entry for blog in CNAME section. Considering that you are using load balancer and added blog sub domain in the CNAME section for that load balancer.

So to overcome this issue, simply create a Route 53 record for your sub domain and attach your load balancer to that sub domain. Follow this article to create a Route 53 record.

Let’s add SPF record 1st, click on the Create Record Set button. Leave the name field as it is(it will show your sub domain). From the Type select TXT, in the Value field paste the text you get from the Email provider for SPF with quotes and save the entry.


Create a DKIM entry now. In the Name field add this ‘mailjet_domainkey’ without quotes. As you can see, i am using mailjet. You can change that to yours. Choose TXT from the Type drop down. Input the long line in the value field with quotes and save it. Now you will have 5 records NS, SOA, A, 2 TXT.


I assume you already added the NS records for your sub domain by following the article mentioned above. Now go to your Email sender service and validate the SPF and DKIM entries.


And that’s it, happy sending emails.