Skip to content

Instantly share code, notes, and snippets.

View JJediny's full-sized avatar

John Jediny JJediny

View GitHub Profile

Canonical JSON schema bidirectionally generate GraphQL SDL

presents several fundamental pain points rooted in the structural and semantic differences between these two schema languages.[1]

Type System Mismatches

The most significant challenge stems from impedance mismatch between JSON Schema and GraphQL's type systems. GraphQL SDL uses a hierarchical graph-based type system designed for tree-structured JSON responses, while JSON Schema follows a validation-oriented model. GraphQL represents wrapping types (lists and non-nullability) through variable levels of nesting, which doesn't map cleanly to JSON Schema's constraint-based validation patterns. This makes round-trip conversion particularly difficult since you must decide how to represent GraphQL's recursive type references in JSON's standardized shape.[2][3][1]

Directive and Annotation Loss

A Concise Guide to GraphQL Federation Directives

GraphQL Federation allows you to build a single, unified data graph by combining multiple backend services (subgraphs). The gateway intelligently plans and executes queries across these services. This guide covers the core directives and concepts that make it work.

We'll use a simple e-commerce example with three subgraphs:

  • Users Service: Manages user data (id, name).
  • Products Service: Manages product data (upc, price, name).
  • Reviews Service: Manages reviews, which are linked to users and products.

Of course! Here is a detailed cheatsheet for the advanced parameters shown in your image. I've explained what each one does, when you should adjust it, and what kind of prompts or desired outputs would benefit most from tuning.


LLM Fine-Tuning Parameters Cheatsheet

This cheatsheet helps you understand and tune advanced parameters to control the output of a Large Language Model (LLM). The key is balancing coherence (makes sense, factual, predictable) with creativity (novel, diverse, unexpected).

Core Concepts: Sampling

@JJediny
JJediny / assume_root_credentials.sh
Created July 9, 2025 19:58 — forked from sebsto/assume_root_credentials.sh
Assume Root on AWS member accounts
#!/bin/bash
AWS_ACCOUNT_ID=012345678901
# Check if jq is installed
if ! command -v jq &> /dev/null; then
echo "Error: jq is not installed. Please install jq to parse JSON."
exit 1
fi
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
serve:
fork:
port:
exampleQuery:
cors:
origin:
allowedHeaders:
-
exposedHeaders:
-
using System;
#region Archer WebAPI Objects
public static class Application
{
/// <summary>
/// Agency System Inventory
/// </summary>
public static readonly Guid Agency_System_Inventory = new Guid("fbfbbd59-e993-46e6-8f31-64fe1cd0d92e");
public static class Fields
{
@JJediny
JJediny / deadmalls.com.geojson
Last active May 23, 2020 05:05
deadmalls.com scrape of entries as of 4/22/20 - using google maps geocoding api for results
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JJediny
JJediny / generate-logs.sh
Last active May 21, 2020 18:29
Script based on documentation for logs to look at - for latest amdgpu ubuntu 18.04 20.04 driver https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux - debugging https://amdgpu-install.readthedocs.io/en/latest/install-bugrep.html#generating-a-bug-report. $ mkdir amdgpu-debug $ sudo bash generate-logs.sh
#!/bin/bash
LOGDIR=~/amdgpu-debug/logs/$timeNowLocal
# debug mode
set -euo pipefail
set -x
# Create folder for log session
mkdir -p $LOGDIR
cd $LOGDIR