Blog

Backup featured image

Backup

On the backup server sudo -e /etc/rsyncd.conf sudo systemctl restart rsyncd.socket On the desktop rsync --progress -vhrLpt --delete /media/external/Music /media/backup rsync …

avatar
Julio Batista Silva
Rename files featured image

Rename files

My script I wrote a Python program that took less than 24s for over 27500 files: https://github.com/jbsilva/renamer It removes spaces and changes special characters recursively. …

avatar
Julio Batista Silva
Vim: Save read only featured image

Vim: Save read only

Today, after a long time editing the Apache configuration file (/etc/httpd/httpd.conf), I realized that I was logged in as a normal user and couldn’t save the file (E212: Can't …

avatar
Julio Batista Silva
Nohup and Disown featured image

Nohup and Disown

When we log out or type exit in a terminal, a hangup signal is sent to the shell, terminating all its child processes. The term used is hungup, as computer users from the last …

avatar
Julio Batista Silva
Vim without Esc featured image

Vim without Esc

As I have mentioned in a previous post, I consider the Esc key on my keyboard to be not only small but also poorly positioned. For a frequent user of the Vim editor, this is a …

avatar
Julio Batista Silva
Rsync - Limit Upload featured image

Rsync - Limit Upload

Today my father asked me to send him some things. There were 10 files of approximately 250MB each; too much work to send via email, 2.5GB would exceed my limit on Dropbox, and …

avatar
Julio Batista Silva
Remove CRLF featured image

Remove CRLF

To maintain the standard used in old Teletypes, DOS/Windows uses two control characters to represent a line break, a Carriage Return (CR = 0x0D) and a Line Feed (LF = 0x0A), but …

avatar
Julio Batista Silva
Lock Screen featured image

Lock Screen

Leaving the computer logged in with programs running is quite routine for me. Uptimes of several weeks are not uncommon. However, leaving X or a terminal open in your absence can …

avatar
Julio Batista Silva
Double Hyphen in Wordpress featured image

Double Hyphen in Wordpress

Before migrating to Octopress (and later to Hugo), this blog was written in Wordpress. Every time I posted a tutorial with commands that have options with double hyphens (example: …

avatar
Julio Batista Silva
Extract audio from FLV featured image

Extract audio from FLV

Just run the following command: julio@julio-acer ~> ffmpeg -i File.flv -ar 44100 -ab 256k -ac 2 file.mp3 Links http://gnuru.org/article/1549/extracting-aac-audio-flv-file

avatar
Julio Batista Silva