Skip to content

Instantly share code, notes, and snippets.

View digitigradeit's full-sized avatar

Brian Johnson digitigradeit

View GitHub Profile
@digitigradeit
digitigradeit / worker.js
Last active March 14, 2024 05:39
Cloudflare worker script to redirect to image (if it exist, or fallback URL), or redirect to random unsplash
// IMAGE URL / FALL BACK IMAGE / RANDOM UNSPLASH IMAGE REDIRECT USING CLOUDFLARE WORKER
// Version 0.1 - 2024-03-13 - Initial Script
// TODO (TBD): Check CORS, among other things, perhaps some caching, rate limiting, etc.
// Created by Brian Johnson - brian@brianjohnson.io https://brianjohnson.io
// Github Gist: https://gist.github.com/digitigradeit/30b0aa31b3615e92ac63ee3af4a0fbe2
// USAGE: http://api.cloudflareworker.com/image?url=[URL-ENCODED IMAGE URL]&fallback=[URL-ENCODED FALLBACK URL]
// http://api.cloudflareworker.com/image?url=[URL-ENCODED IMAGE URL]&random=true&q=fruit
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
{
"basics": {
"name": "Brian Johnson",
"phone": "+1 (415) 598-8860",
"label": "Senior System Administrator",
"email": "brian@brianjohnson.io",
"url": "https://brianjohnson.io",
"summary": "Senior System Administrator with over 15 years of experience specializing in IT Security, Operations, DevOps, and Network Management. My career, spanning roles at Molekule, Eat Just, Stella & Dot, and Synaptics, reflects my adeptness in managing complex IT systems, including AWS and Azure cloud infrastructures, VPN solutions, and private cloud networks. I excel in enhancing security and scalability, streamlining IAM processes, and mentoring global teams. ",
"location": {
"city": "San Francisco",
@digitigradeit
digitigradeit / search.json
Created August 2, 2023 08:07
Simple Jekyll Search JSON file
---
layout: none
---
{% capture json %}
{% assign first = true %}
[
{% for collection in site.collections %}
{% for item in collection %}

Keybase proof

I hereby claim:

  • I am digitigradeit on github.
  • I am digitigradeit (https://keybase.io/digitigradeit) on keybase.
  • I have a public key ASAcYpD_WWKNSXvSS4U3j71sWDPh65PZaXEnXJxT33SVPgo

To claim this, I am signing this object: