Skip to content

Instantly share code, notes, and snippets.

View moycat's full-sized avatar
💮
明日晴

Qing Deng moycat

💮
明日晴
View GitHub Profile
@moycat
moycat / gavatar.js
Created February 2, 2024 06:59
Gavatar proxy via Cloudflare Worker
const host = "secure.gravatar.com";
const defaultSize = "512";
addEventListener("fetch", function(event) {
event.respondWith(handleRequest(event.request))
})
async function handleRequest(request) {
// Check referer.
let referer = request.headers.get("referer")
@moycat
moycat / nvidia-dind.Dockerfile
Created March 15, 2024 04:04
Dockerfile for moycat/nvidia-dind
FROM ubuntu:22.04
ARG VERSION=5:25.0.4-1~ubuntu.22.04~jammy
RUN apt update \
&& apt install -y ca-certificates curl gpg \
&& install -m 0755 -d /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc \
&& chmod a+r /etc/apt/keyrings/docker.asc \
&& echo \