Skip to content

Instantly share code, notes, and snippets.

View basilesimon's full-sized avatar

Basile Simon basilesimon

View GitHub Profile
@basilesimon
basilesimon / Cloud Storage Backup Tutorial.md
Created February 10, 2017 15:03
Tutorial for making an encrypted backup on cloud storage using rclone.

This tutorial is for creating an encrypted backup on a Unix-like system using [rclone][rclone]. rclone supports a variety of cloud storage providers, including [Amazon Drive][acd] and [Google Drive][gdrive] (which gives unlimited accounts for business/education).

The steps on Windows are likely very similar but I don't have any experience with Windows, the input of anyone else who may have this experience would be appreciated.

Note that this guide was originally Amazon Drive specific. Reddit titles cannot be edited after posting and I don't want to break any links.

I maintain this guide on [GitHub Gist][gistlink].

[Latest Revision: 30 January 2017][revisions]

@basilesimon
basilesimon / index.html
Last active January 18, 2017 18:14 — forked from methodofaction/index.html
Animate path in D3
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<style type="text/css">
#line{
width: 100%;
margin: 20px 0;
height: 300px;
}
var urls = ['put', 'your', 'page', 'urls', 'here'];
page.onConsoleMessage = function (msg) {
if(msg.indexOf('SCRAPE-RESULT:') >= 0) {
var fn = 'file_name_to_write_to.txt';
console.log('writing file', fn)
fs.write(fn, msg.replace('SCRAPE-RESULT:', ''), 'w');
}