Posts

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/externo/Musicas /media/backup rsync …

avatar
Julio Batista Silva
•
Rename files featured image

Rename files

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

avatar
Julio Batista Silva
•
Vim: Save a read-only file featured image

Vim: Save a read-only file

Today, after a good while editing the Apache configuration file (/etc/httpd/httpd.conf), I realized I was logged in as a normal user and could not save the file (E212: Can't open …

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, killing all of its child processes. The term used is hangup, because last century’s computer folk …

avatar
Julio Batista Silva
•
Vim without Esc featured image

Vim without Esc

As I have already mentioned in an earlier post, I consider the Esc key on my keyboard to be both small and badly placed. For a frequent user of the Vim editor that is a big …

avatar
Julio Batista Silva
•
Rsync - Limit the upload featured image

Rsync - Limit the upload

Today my father asked me to send him a few things. It was 10 files of roughly 250MB each: too much work to send by email, 2.5GB would blow past my Dropbox limit, and there is still …

avatar
Julio Batista Silva
•
Remove CRLF featured image

Remove CRLF

To stay compatible with the convention used by old Teletypes, DOS/Windows uses two control characters to represent a line break, a Carriage Return (CR = 0x0D) and a Line Feed (LF = …

avatar
Julio Batista Silva
•
Lock the screen featured image

Lock the screen

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

avatar
Julio Batista Silva
•
Double hyphen in Wordpress featured image

Double hyphen in Wordpress

Before moving to Octopress (and later to Hugo), this blog was written in Wordpress. Every time I posted a tutorial with commands that take double-dash options (for example: ls …

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
•