Skip to content

Instantly share code, notes, and snippets.

@etdev
etdev / algolia_cache_proxy_for_cloudflare.js
Last active April 18, 2024 11:02
Algolia cache proxy - Cloudflare worker
const ALGOLIA_APP_ID = "<your algolia app id>";
addEventListener('fetch', event => {
try {
const request = event.request;
if (request.method.toUpperCase() === 'POST') return event.respondWith(handlePostRequest(event));
return handleRequest(request);
} catch (e) {
return event.respondWith(new Response('Error thrown ' + e.message));
}
@kevinelliott
kevinelliott / osx-10.10-setup.md
Last active December 1, 2023 08:21
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software