Skip to content

Instantly share code, notes, and snippets.

View pdibenedetto's full-sized avatar
🎯
Focusing - Solving Problems

Paul DiBenedetto pdibenedetto

🎯
Focusing - Solving Problems
View GitHub Profile
@pdibenedetto
pdibenedetto / 2-using-gpg.md
Last active March 1, 2023 18:34 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS

Using GPG

Step 1: Install software

We use the Homebrew package manager for this step.

brew install gpg2 gnupg pinentry-mac       

Step 2: Create the .gnupg Directory

If this directory does not exist, create it. EDIT: June 2022 - Fixes single quotes to allow expansion of the subshell

@pdibenedetto
pdibenedetto / keybase.md
Created February 10, 2023 15:44
keybase gist

Keybase proof

I hereby claim:

  • I am pdibenedetto on github.
  • I am pdibenedetto (https://keybase.io/pdibenedetto) on keybase.
  • I have a public key ASBfheBBzwRdEsA_FyzilRxj9U3LLmaJOnfl0f1B3dlaogo

To claim this, I am signing this object:

@pdibenedetto
pdibenedetto / run-jar-as-a-service.md
Created October 18, 2021 16:12 — forked from marlonbernardes/run-jar-as-a-service.md
How to make a jar file run on startup
  1. Create the start and stop scripts of your application.
  • Example:

myapp-start.sh

#!/bin/bash
cd /home/ubuntu/myapp/
java -jar myapp.jar --server.port=8888 &
@pdibenedetto
pdibenedetto / Event-stream based GraphQL subscriptions.md
Created March 9, 2021 21:09 — forked from OlegIlyenko/Event-stream based GraphQL subscriptions.md
Event-stream based GraphQL subscriptions for real-time updates

In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.

Conceptual Model

At the moment GraphQL allows 2 types of queries:

  • query
  • mutation

Reference implementation also adds the third type: subscription. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.

Wed Jun 3 21:35:37 UTC 2020