Skip to content

Instantly share code, notes, and snippets.

@azsde
azsde / Google Coral Init Automation on Proxmox.md
Created December 22, 2024 12:43
Google Coral Init Automation on Proxmox

USB Google Coral Automation on Proxmox

Google did some weird stuff with their Google Coral USB, it has two different VID:PID depending on if the device has been initialized or not, which can cause issues when automating USB passthrough to a VM. Here are the instruction to overcome said issues:

Init the google coral automatically

  1. Go into /usr/local/bin/ and create a coral-init folder
cd /usr/local/bin
mkdir coral-init
@ryanmaclean
ryanmaclean / rocky-docker.sh
Created July 13, 2021 00:18
Install Docker on Rocky Linux
#!/usr/bin/env bash
## Script to install docker-ce on Rocky Linux
## Run using `sudo rocky-docker.sh`
# Ensuring "GROUP" variable has not been set elsewhere
unset GROUP
echo "Removing podman and installing Docker CE"
dnf remove -y podman buildah

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,

@AustinW
AustinW / helpers.js
Created April 18, 2014 20:49
Ember Math Helper
Ember.Handlebars.helper('math', function(operand1, operator, operand2) {
var result;
switch (operator) {
case '+':
result = operand1 + operand2;
break;
case '-':
result = operand1 - operand2;