Skip to content

Instantly share code, notes, and snippets.

View jgavinray's full-sized avatar
That's me

J. Gavin Ray jgavinray

That's me
View GitHub Profile

How to setup a practically free CDN using Backblaze B2 and Cloudflare

⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,

><> docker run -it golang bash
root@d8b9123c7249:/go# cd src/
root@d8b9123c7249:/go/src# mkdir
root@d8b9123c7249:/go/src# cd
root@d8b9123c7249:/go/src/ git clone
Cloning into 'helm'...
remote: Counting objects: 20430, done.
remote: Total 20430 (delta 0), reused 0 (delta 0), pack-reused 20429
Receiving objects: 100% (20430/20430), 7.40 MiB | 14.12 MiB/s, done.
Resolving deltas: 100% (12841/12841), done.
darconeous /
Last active May 2, 2024 13:55
Using OS X as a Syslog Server

Using OS X as a Syslog Server

This document describes how to set up an OS X to be a syslog server that logs messages from the local network. It was largely meant for my own purposes so that I don't forget what I did, but feel free to use it for your own purposes.

A problem with just "turning this on" is that you will not see the correct hostname in the syslog entries. What we will do is use