Skip to content

Instantly share code, notes, and snippets.

@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
@chris-moreton
chris-moreton / copyvault.sh
Last active May 21, 2019 14:19
Copy from one Azure Vault to Another, Replaceing Environment Name
SECRET_NAMES=(appeal-email-from appeal-email-to ccd-api ccd-case-worker-id ccd-jid ccd-tid docmosis-api-key docmosis-endpoint gaps2-service-sftp-private-key gaps2-service-sftp-private-key-preview hpkp-sya-sha-1 hpkp-sya-sha-2 hpkp-tya-sha-1 hpkp-tya-sha-2 idam-api idam-key-sscs idam-oauth-user idam-redirect idam-role idam-s2s-api idam-sscs-oauth2-client-secret idam-sscs-systemupdate-password idam-sscs-systemupdate-user idam-uid microservice-sscs-bulkscan notification-key notification-test-key postcode-lookup-token robotics-email-from robotics-email-to s2s-api s2s-micro sftp-dir sftp-host sftp-port sscs-asb-primary-send-and-listen-shared-access-key sscs-cor-idam-client-secret sscs-cor-idam-client-secret-test sscs-email-mac-secret-text sscs-failure-email-to sscs-s2s-secret tya-link tyacookiesecret smtp-host smtp-port)
for SECRET_NAME in "${SECRET_NAMES[@]}"
do
echo "Getting value from demo vault for $SECRET_NAME..."
az account set --subscription "DCD-CNP-Dev"
az keyvault secret show --vault-name "s
@chris-moreton
chris-moreton / keybase.md
Last active May 21, 2019 12:01
Keybase Signature

Keybase proof

I hereby claim:

  • I am chris-moreton on github.
  • I am chrismo (https://keybase.io/chrismo) on keybase.
  • I have a public key whose fingerprint is 7074 904D F70F 6AE7 14A8 360D EBA8 8AD8 37EE F7CD

To claim this, I am signing this object: