Skip to content

Instantly share code, notes, and snippets.

@chris-moreton
chris-moreton / report.html
Last active April 20, 2026 17:16
Groceries Backend — Classification Review Report (generated 2026-04-20)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Classification Review Report — Groceries Backend</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; padding: 2rem; background: #f5f5f5; color: #333; max-width: 1400px; margin: 0 auto; }
h1 { margin-bottom: 0.5rem; }
@chris-moreton
chris-moreton / placeholder-image-report.html
Created April 4, 2026 14:57
Groceries Backend - Placeholder Image Report (2026-04-04)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Placeholder Image Report — Groceries Backend</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; padding: 2rem; background: #f5f5f5; color: #333; }
h1 { margin-bottom: 0.5rem; }
@chris-moreton
chris-moreton / metadata.json
Last active July 7, 2021 14:00
CHESS Cardano Stake Pool Metadata
{
"name": "Chess",
"description": "Chess Pool. Hosted on AWS Fargate. Run by the RedHotPawn.com team.",
"ticker": "CHESS",
"homepage": "https://chess.ihpapp.com",
"extended": "https://gist.githubusercontent.com/chris-moreton/4556c59b2843de03b2dcb4623960edf4/raw/a1be37939b5fb887e6da397bad69e428aff04bf7/extended-metadata.json"
}
@chris-moreton
chris-moreton / extended-metadata.json
Last active July 7, 2021 13:59
CHESS Cardano Stake Pool Extended Metadata
{
"info": {
"location": "London, England",
"social": {
"twitter_handle": "PoolChess"
}
}
}
@chris-moreton
chris-moreton / EnglishAuction.hs
Last active August 14, 2022 13:23
Plutus Pioneer Program - English Auction Contract
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoImplicitPrelude #-}
{
"name": "Chess",
"description": "RHP Chess Pool",
"ticker": "CHESS",
"homepage": "https://chess.ihpapp.com"
}
{
"name": "Chess",
"description": "Chess Pool",
"ticker": "CHESS",
"homepage": "https://chess.ihpapp.com"
}
@chris-moreton
chris-moreton / gist:bb3cd9024c2f620101ee941e15cd3ec2
Last active January 17, 2021 22:17
Netsensia Cardano Stakepool
{
"name": "Chess",
"description": "Rival Chess/RHP Cardano Stake Pool",
"ticker": "CHESS",
"homepage": "https://cardano-stakepool.net"
}

Modify DM store code to skip checksum comparison

//if (! checksum.equals(checksumDownload)) {
//    throw new FileStorageException(documentId, documentContentVersion.getId());
//}

Build local document management store app

@chris-moreton
chris-moreton / credhub_backup.sh
Last active October 2, 2019 17:56
Backup CredHub Credentials to a Text File
#!/usr/bin/env bash
# Outputs the commands needed to recreate the credentials.
# Works with value, user and ssh types.
# Can be easily updated to work with other types.
mapfile -t CREDS < <(credhub find -n c | grep "name:")
for CRED in "${CREDS[@]}"
do