Skip to content

Instantly share code, notes, and snippets.

View caleb531's full-sized avatar

Caleb Evans caleb531

View GitHub Profile
@daneden
daneden / .htaccess
Created October 17, 2013 15:43
I whipped up a cache-buster for Jekyll, similar to the jekyll-assets method. Basically, when you run `jekyll build`, cachebuster.rb generates a hash based on the current time, and shoves it into the default.html template. Requests for style-{hash}.css are redirected to style.css by .htaccess
RewriteRule (.+)-[a-zA-Z0-9]+(\.(js|css))$ $1$2 [L]
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active July 25, 2024 22:39 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@JohnAlbin
JohnAlbin / _README.md
Last active March 18, 2024 09:25 — forked from clarkdave/createPages.ts
TypeScript + Gatsby config and node API

README

  1. When Gatsby starts up, it will read gatsby-config.js first.
  2. As you can see below, we use that file to require('ts-node').register() which registers a TypeScript evaluator that will be used when Gatsby reads all other API Javascript files. In other words, we only need to do this once in our entire codebase and not in other Gatsby files like gatsby-node.js.
  3. Our gatsby-config.js re-exports all the exported variables available in gatsby-config.ts.