Skip to content

Instantly share code, notes, and snippets.

@yield65
yield65 / markdown.md
Created June 16, 2016 15:13 — forked from jonschlinkert/markdown-cheatsheet.md
A better markdown cheatsheet. I used Bootstrap's Base CSS documentation as a reference.

Typography

Headings

Headings from h1 through h6 are constructed with a # for each level:

# h1 Heading
## h2 Heading
### h3 Heading
@yield65
yield65 / apache_error_log_parser.sh
Created March 15, 2016 07:27 — forked from marcanuy/apache_error_log_parser.sh
Apache error log list ordered by most common errors
#!/bin/bash
sed 's^\[.*\]^^g' error.log | sed 's^\, referer: [^\n]*^^g' | sort | uniq -c | sort -n

TL;DR -- Use DAR for compressed (bzip2, no xz), encrypted (AES), multi-volume, differential backup.

What it means

Differential backup = always diff of the base (only one layer)

Incremental backup = diff of diff of base (sort of layering, u need to peel off layer-by-layer while restoring backups)

Differential backups are easier to manage than incremental: only restore the latest full backup then the latest differential backup. With incrementals, you need to restore all of them in sequence after the last full.

Duplicity offers only incremental backup :(