Skip to content

Instantly share code, notes, and snippets.

View JJediny's full-sized avatar

John Jediny JJediny

View GitHub Profile

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

The twelve-factor app checklist

Also factors in the four principles of modern Release Engineering

  • Identifiability Being able to identify all of the source, tools, environment, and other components that make up a particular release.
  • Reproducibility The ability to integrate source, third party components, data, and deployment externals of a software system in order to guarantee operational stability.
  • Consistency The mission to provide a stable framework for development, deployment, audit, and accountability for software components.
  • Agility The ongoing research into what are the repercussions of modern software engineering practices on the productivity in the software cycle, i.e. continuous integration.