Skip to content

Instantly share code, notes, and snippets.

View arthurlt's full-sized avatar

Arthur Tucker arthurlt

  • Utah
  • 07:18 (UTC -06:00)
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,

@jdoss
jdoss / akmod-sign-modules.sh
Created April 24, 2022 19:56
Sign NVIDIA kernel modules genreated by akmods
#!/bin/bash
# Script based on https://github.com/larsks/akmod-sign-modules. Use the systemd
# drop-in to call this script during akmods@${KERNEL_VERSION}.service
#
# Compression support based on https://unix.stackexchange.com/questions/438954/signing-a-compressed-kernel-module-for-use-with-secure-boot
#
# See also https://gist.github.com/xenithorb/df08970b9e70bb3c6576e1fd91460afe
set -eu