Skip to content

Instantly share code, notes, and snippets.

View MichaelTaylor3D's full-sized avatar
🎯
Focusing

Michael Taylor MichaelTaylor3D

🎯
Focusing
View GitHub Profile
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract StoreRegistry {
struct RootHashInfo {
string rootHash;
uint256 blockNumber;
}
struct StoreDetails {
# RFC: Dat File Format Specification
## 1. Introduction
This document specifies the Dat File Format, a binary file format designed for efficient storage and retrieval of serialized data objects. The primary goal of this format is to facilitate the transfer and persistence of structured data in a compact, binary representation.
### 1.1. Purpose
The Dat File Format aims to provide a standardized way to serialize custom data objects for various applications, including caching, data exchange, and persistent storage. Its design focuses on simplicity, efficiency, and extensibility.
https://www.spacescan.io/nft/nft17m0q6e0rky438mge2htv0zx6549wgpvk844lvc6dt8w3wrqgal6sx4a6e3
https://www.spacescan.io/nft/nft1jezs3gtz2jnqn4xeew6r9ug23fhg6l26md0tsrmp9yuahy7qqzmswhpy6q
https://www.spacescan.io/nft/nft1zgxawddpc9ecpk2f9uyvwe9hl2d4y46978hm506uy3xum4j2eljq0srpjx
https://www.spacescan.io/nft/nft1h8pex6adn9naee5zhuvk497wulqxz46zzn2876pc5ed43yx0s0zqpun7lg
https://www.spacescan.io/nft/nft15ys30mf4nw7c7zf8j5qpz0lararnvklz96la6ayufzecsrndd8lqca3amz
https://www.spacescan.io/nft/nft164zwatz0ugvuw5pcuu69n4pxg4g90mlts6furhauqpumgvvwr2xs7h4q0t
https://www.spacescan.io/nft/nft1h2sffj9ck4vqdux90402agt88qfzeh0f6yrfsp3kwdcl6u8gwuhsyrkr5k
https://www.spacescan.io/nft/nft16d3097cy0zfhj52ulrd7csmcmrmgw0706ytdh5pg5gzhc3jm8jeqe2jy8y
https://www.spacescan.io/nft/nft1rzacekhg2um2thwdatn8km5a3qctpxdsf3cqfqklqw9r50zsckusuk9hq5
https://www.spacescan.io/nft/nft16g5me6kmmwkyqev9h4hkavahkvlx4d2m2672yj2grmkgm6gdmcssadxw2y
https://dexie.space/offers/Hq8NFTd6Cs5nRyAh3runPKJJ5rNx9VcATLHWy8zdCVJA
https://dexie.space/offers/272muPMLRNLhUdpFN96XHqyUWtphatxBzFDhnoiVPdGD
https://dexie.space/offers/Z8eEv3DNdJwsaBAURcNF6NUijcRaUuvTAhAfASjvA3A
https://dexie.space/offers/93LKJzjSPrZCpfMT7jgs7w1NsvLKoRG4ZRdUWgnq5fRu
https://dexie.space/offers/GLWRLqDys4sUgvxTEvRHf19CmtCaLfDmFJMY1F4hhoet
https://dexie.space/offers/HoQnvJHzGiK8UaChCaTVCcvzCEi1EwN6bNxzJZSnzfuC
https://dexie.space/offers/AVRRfEwRgth22fWLpzXvdGape4aqTEKo3hqtkPWmjEtd
https://dexie.space/offers/8Z2TnEyZPHHiEorVJpA2ooGQFCJ2mPtCDjtgcsX2XmNo
https://dexie.space/offers/3sjarTfxcEKF11mXHLtrrtuDeP6TUE64AG8HjTMks8Qe
https://dexie.space/offers/9xPU7dvZhya8YNAgDV8CYxhF5bnLMstsc23S9n6iTsnu
@MichaelTaylor3D
MichaelTaylor3D / gist:c45f8ff918551590dd415a50a38c3452
Created January 21, 2024 17:41
create a batch file to bulk create offers
const fs = require('fs');
const readline = require('readline');
// Input file path with one NFT ID per line
const inputFile = 'nft.csv';
// Output batch script file path
const outputFile = 'generate_offers.bat';
// Read the NFT IDs from the input file
@MichaelTaylor3D
MichaelTaylor3D / gist:765a3069729851705bd6a1cfe502f8dc
Last active December 21, 2023 22:53
DataLayer Virtual FileSystem
#!/usr/bin/env python3
import requests
import fuse
from fuse import FUSE, FuseOSError, Operations
class ChiaDataLayerFileSystem(Operations):
def __init__(self, rpc_base_url):
self.rpc_base_url = rpc_base_url
chia wallet get_transactions --clawback
chia rpc wallet spend_clawback_coins "{\"coin_ids\":[\"TRANSACTION_ID\"], \"force\":true, \"fee\":0}"
@MichaelTaylor3D
MichaelTaylor3D / nginx chia port forwarder for remote nodes
Last active July 28, 2023 14:55
Forward Chia RPC ports to remote node
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;

Title: Add Custom Headers Configuration for DLaaS Data Layer Plugin Services

Current Behavior: DLaaS uses a job queue pattern to do work on the local machine. Jobs are queued up in SQS, and any number of workers can join/leave the system. Additionally, each individual worker has multiple parallel threads dedicated to processing jobs from the job queue.

To utilize the existing system and its paradigm, the Datalayer Uploader plugin was developed, creating a serverless API with the correct datalayer uploader interface. The API receives the store and filenames from the datalayer and creates a job in the job queue that maps to an S3 uploader job in the worker. The API will queue up the job, and the next available worker thread will pick it up and upload the required files to S3 to be served through a CDN.

The system has shown to work as expected; however, the configuration in the datalayer's config.yaml only accepts the base host of the plugin interface. The original intention was that a localhost service

To install an executable (.exe) as a Windows service, you can use the node-windows package in conjunction with the install.js script. Here's an example of how to set up a script to install an executable as a Windows service:

  1. Install node-windows:
npm install -g node-windows
  1. Create a new JavaScript file (e.g., install-exe-service.js) in your project folder: