Luciano Blog

Software Technologies

From local to cloud sync with RClone

RClone (http://www.rclone.org) is a command line utility which enables to copy and sync data from and to famous cloud storage providers.

The utility is available for Windows/Linux/Mac and supports majors cloud storage providers like: Google Drive, Amazon S3, DropBox, Backblaze B2, etc.

Copy a file to remote cloud is simple as rclone copy c:\myFolder\myfile.txt remote:\backup or synching a folder
rclone sync c:\myFolder remote:\backup

Sync doesn’t transfer unchanged files, testing by size and modification time or MD5SUM.

Gmail phishing account

Usually the email comes from a known account and have an attachment image resembling a PDF file.

If the user clicks on the attached image, a new window will be opened asking for the user to login using his Gmail account.

The address bar says “account.gmail.com” so it looks legit, but the address begins with “data: text/html” and points to a fake login page.

If you insert your login details the hackers steal your account.

CSS child and adjacent sibling combinator

The “ > “ greather symbol is the child combinator, and “selects elements direct descendants of the previous specified element”.

ol > li {
	color: red;
}
<ol>
  <li>WILL be selected</li>
  <li>WILL be selected</li>
  <ul>
     <li>Will NOT be selected</li>
     <li>Will NOT be selected</li>
  </ul>
  <li>WILL be selected</li>
</ol>

The “ + “ plus symbol is the adjacent sibling combinator, and “selects elements direct descendants after of the previous specified element (with nothing in between)”.

ol + li {
	color: red;
}
<ol>
  <li>WILL be selected</li>
  <li>WILL be selected</li>
  <br />
  <li>Will NOT be selected</li>
  <li>Will NOT be selected</li>
</ol>

Article from css-tricks.com