Tags » Bash

Whiptail - Using a progress bar - Part 2

Problem:
The initial code I shared for how to use a progress bar had a major bug. The issue was that if the process takes longer than 100 seconds to run, the progress bar will be stuck at 100%. 368 more words

Bash

Creating GIF animations of protein molecules with PyMOL

PyMOL is an open-source molecular visualization system useful for producing high-quality figures of protein structures. Besides static figures, PyMOL can also generate animations with the… 349 more words

Programming

Ejecutando comandos con parámetros en bash

Cuando hice el script para arreglar un libro escaneado a doble cara, me topé con varios problemas, porque no entendía cómo un script recibe parámetros desde bash! 137 more words

Specify a default provider for vagrant

Problem:
I got tired of specifying the provider. The default provider was vmware_fusion.

$ vagrant up --provider virtualbox

Solution:
As per the documentation.

export VAGRANT_DEFAULT_PROVIDER="virtualbox"
… 9 more words
Bash

Libros escaneados a doble cara? No más!

YOHOHOHOOOO surcando por mares, robando libros a los bucaneros.

YOHOHOOO, todo eso ha de ser libre, pero ellos quieren más dinero…

son las editoriales las que se enriquecen, mientras el tercer mundo decrece…

284 more words

Generating a random string

Problem: You want to generate some random strings.

Solution:

$ dd if=/dev/urandom count=1 bs=32|base64
1+0 records in
1+0 records out
32 bytes (32 B) copied, 5.7006e-05 s, 561 kB/s
Da86DdCu/fyqdZasjzMA3sn0Psq+v5nogGKXtZTLgWE=

$ dd if=/dev/urandom count=1 bs=32|base64
1+0 records in
1+0 records out
32 bytes (32 B) copied, 5.444e-05 s, 588 kB/s
ovuUVjbLD4QG3ZkyzFjUJ7ntbdmXpI81VoZsg/42Png=

$ dd if=/dev/urandom count=1 bs=32|base64
1+0 records in
1+0 records out
jHNLGhNI9bgxfXNMgA423dD1MDBNf4JUgO0LFnMOjMQ=
32 bytes (32 B) copied, 0.000972518 s, 32.9 kB/s
Bash

Bash. Eduardo Paolozzi. 1971. Silkscreen

Art