From 6a8e3e99333a6906b8f0f0b19bd864edd4e7122a Mon Sep 17 00:00:00 2001 From: danix Date: Tue, 7 Mar 2023 18:01:34 +0100 Subject: [PATCH] fixing articles in random order. --- content/articles/ceasar-quote.md | 4 +-- content/articles/conquista-la-folla.md | 1 + .../articles/convertire-file-video-in-mp3.md | 2 +- .../articles/gify-back-to-bash-scripting.md | 35 +++++++++---------- themes/dagreynix | 2 +- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/content/articles/ceasar-quote.md b/content/articles/ceasar-quote.md index aae4b5a..1fd6da9 100644 --- a/content/articles/ceasar-quote.md +++ b/content/articles/ceasar-quote.md @@ -3,11 +3,11 @@ title: Ceasar quote author: Danilo M. type: article date: 2011-07-28T19:03:39+00:00 -excerpt: Una citazione di Giulio Cesare. +excerpt: A quote from Julius Caesar categories: - blogging tags: - - Ceasar + - Caesar - quote format: quote --- diff --git a/content/articles/conquista-la-folla.md b/content/articles/conquista-la-folla.md index 6dc1f92..1fb40ae 100644 --- a/content/articles/conquista-la-folla.md +++ b/content/articles/conquista-la-folla.md @@ -2,6 +2,7 @@ title: conquista la folla.. author: Danilo M. type: article +draft: true date: 2013-04-21T08:17:11+00:00 categories: - blogging diff --git a/content/articles/convertire-file-video-in-mp3.md b/content/articles/convertire-file-video-in-mp3.md index 4ce9d31..7abdca2 100644 --- a/content/articles/convertire-file-video-in-mp3.md +++ b/content/articles/convertire-file-video-in-mp3.md @@ -17,7 +17,7 @@ tags: --- un piccolo appunto su come convertire velocemente un video in mp3.. -``` +```bash ffmpeg -i file_da_convertire.flv -f mp3 -ab 192000 -vn nuovo_file.mp3 ``` diff --git a/content/articles/gify-back-to-bash-scripting.md b/content/articles/gify-back-to-bash-scripting.md index 7c0055e..09b3fa2 100644 --- a/content/articles/gify-back-to-bash-scripting.md +++ b/content/articles/gify-back-to-bash-scripting.md @@ -17,39 +17,38 @@ tags: - script --- -
-
gif image created using gify.sh
-
+{{< figure src="/uploads/2016/01/piscaturi.gif" alt="piccoli pescatori crescono" caption="gif image created using gify.sh" class="align-center" >}} -Today I’ll present you a useful script that will help you create amazing gifs from your still photos using a couple tools from the IMAGEMAGIK suite, so without further ado, here it is, straight from github’s gists. +Today I'll present you a useful script that will help you create amazing gifs from your still photos using a couple tools from the [IMAGEMAGIK](https://www.imagemagick.org) suite, so without further ado, here it is, straight from github's gists. -
- -
+{{< actions url="https://gist.github.com/danixland/624f77c70c9e19ce7cf9/archive/26746be7f7009f82e4246a8bc0e5728954d0ac8b.zip" desc="Download as ZIP archive" outclass="special" inclass="primary" >}} -what the code does is quite simple, it takes a few arguments and helps you resize your images while keeping the original proportions. Put the code in your path and let’s put it to work. + +what the code does is quite simple, it takes a few arguments and helps you resize your images while keeping the original proportions. Put the code in your path and let's put it to work. -For this example we’ll pretend you have a bunch of jpg pictures, maybe something you shot while travelling france, put them in a folder and run the script like this: +For this example we'll pretend you have a bunch of jpg pictures, maybe something you shot while travelling france, put them in a folder and run the script like this: -
gify.sh --resize 900 jpg
+```bash +gify.sh --resize 900 jpg +``` -depending on the amount of images it may take a while, and when it’s done you’ll have all of your jpg resized to 900px wide and with proportional height. +depending on the amount of images it may take a while, and when it's done you'll have all of your jpg resized to 900px wide and with proportional height. -now it’s time to render all of your jpg into one animated gif so, while in the same directory, run the script like this: +now it's time to render all of your jpg into one animated gif so, while in the same directory, run the script like this: -
gify.sh --gif 10 jpg paris
+```bash +gify.sh --gif 10 jpg paris +``` -the parameters now are a bit different, first we tell the script that we want to create a gif with the `--gif` option, then we tell the interval between every frame, that number is expressed in 100th of a second, so now we are telling the gif to change frame every 10/100 of second, the following parameter is the extension of the images we’ll be using, in our example is jpg (it’s case sensitive, so make sure all the images you want to use have the same extension), and finally we set the name of the gif, without the extension, the script will provide it for us. +the parameters now are a bit different, first we tell the script that we want to create a gif with the `--gif` option, then we tell the interval between every frame, that number is expressed in 100th of a second, so now we are telling the gif to change frame every 10/100 of second, the following parameter is the extension of the images we'll be using, in our example is jpg (it's case sensitive, so make sure all the images you want to use have the same extension), and finally we set the name of the gif, without the extension, the script will provide it for us. The gif you see at the beginning of the article was created with this script. -I made this script mostly for fun and personal use, so it’s absolutely not idiot proof, can be improved but for me it works just fine. If you want to modify it, feel free to fork it on github or just download it and do whatever you like with it, and if you want to share it with me, use the comment form below. +I made this script mostly for fun and personal use, so it's absolutely not idiot proof, can be improved but for me it works just fine. If you want to modify it, feel free to fork it on github or just download it and do whatever you like with it, and if you want to share it with me, use the comment form below. -I’ll leave you with a copy of the script here in case you want to have a look at it before downloading. +I'll leave you with a copy of the script here in case you want to have a look at it before downloading. Enjoy! {{< highlight bash "linenos=true" >}}#! /bin/bash diff --git a/themes/dagreynix b/themes/dagreynix index 6ea07a0..8403296 160000 --- a/themes/dagreynix +++ b/themes/dagreynix @@ -1 +1 @@ -Subproject commit 6ea07a0ed82540bfb100f601422d7449aec96c61 +Subproject commit 84032966f14fb3c9269b570b1d4fc16452c601c4 -- 2.20.1