Skip to content

Instantly share code, notes, and snippets.

Arq stores backup data in a format similar to that of the open-source version
control system 'git'.
Content-Addressable Storage
---------------------------
At the most basic level, Arq stores "blobs" using the SHA1 hash of the
contents as the name, much like git. Because of this, each unique blob is only
stored once. If 2 files on your system have the same contents, only 1 copy of
the contents will be stored. If the contents of a file change, the SHA1 hash is
different and the file is stored as a different blob.
@wags
wags / git-delete-remote-branch.md
Created June 7, 2016 20:17
Delete remote branch

git push origin --delete branch-name

@wags
wags / dotnet-core-notes.md
Last active August 31, 2016 12:37
.NET Core notes

.NET Core

Command line setup

dotnet new

dotnet restore

dotnet run
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Updated: 2010/12/05
// License: MIT
//
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it)
//
// Permission is hereby granted, free of charge, to any person
@wags
wags / automapper-snippets.md
Last active November 10, 2017 13:29
Automapper Snippets

Define the child mapping for collection properties on the contact

CreateMap<ApSupplier, ApSupplierDto>();
CreateMap<PoSupplier, PoSupplierDto>();
CreateMap<Customer, CustomerDto>();
CreateMap<Salesperson, SalespersonDto>();

Map from UniVerse mv.NET Entity to DTO

@wags
wags / letsencrypt_2017.md
Created December 1, 2017 20:34 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

There are two main modes to run the Let's Encrypt client (called Certbot):

  • Standalone: replaces the webserver to respond to ACME challenges
  • Webroot: needs your webserver to serve challenges from a known folder.

Webroot is better because it doesn't need to replace Nginx (to bind to port 80).

In the following, we're setting up mydomain.com. HTML is served from /var/www/mydomain, and challenges are served from /var/www/letsencrypt.