Skip to content

Instantly share code, notes, and snippets.

View jvgomg's full-sized avatar
🍕
Eatiiing pizza

James Greenaway jvgomg

🍕
Eatiiing pizza
View GitHub Profile
@jvgomg
jvgomg / magic-words.ts
Created April 28, 2025 07:16
Generate a set of magic words using a Linear Congruential Generator
// Configurable LCG function
function lcg(seed: number, multiplier: number, increment: number, modulus: number) {
return function() {
seed = (multiplier * seed + increment) % modulus;
return seed;
};
}
export function generateWords(
words: string[],
@jvgomg
jvgomg / dokku-kirby-autogit.md
Created February 11, 2018 15:02 — forked from woudsma/dokku-kirby-autogit.md
Dokku + Kirby + AutoGit

TL;DR

  • Configure Kirby for Dokku
  • Install deployment-keys and host keys Dokku plugins
  • Set up staging and production environments
  • Clone project repository into apps persistent storage folders
  • Mount desired folders including .git folder to apps
  • Add GIT_DIR and GIT_WORK_TREE environment variables to containers
  • Deploy to Dokku
@jvgomg
jvgomg / climb-social-example.html
Last active April 28, 2025 07:12
Demo React Climb Social Slideshow Embed
<!doctype html>
<html lang="en">
<head>
<title>Slideshow</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div
@jvgomg
jvgomg / keybase.md
Last active February 6, 2016 10:30

Keybase proof

I hereby claim:

  • I am jvgreenaway on github.
  • I am jvg (https://keybase.io/jvg) on keybase.
  • I have a public key ASBbHKbE-rs9mSqP6sZdShVrYZ8kUFtTxUbP0ckAIcue7Qo

To claim this, I am signing this object: