Skip to content

Instantly share code, notes, and snippets.

{
"global": {
"ask_for_confirmation_before_quitting": true,
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false,
"unsafe_ui": false
},
"profiles": [
{
@artronics
artronics / pds_int_pub.json
Last active December 16, 2023 22:28
pds_int_pub.crt
{
"kty": "RSA",
"n": "t3-jxKpWLgI7IKTXbiLnOze6lYbzJYxvv5ewjSeln6naoaaLAvjLHHBC7LOTEQwYEf8VMZhPXhiq4sN9rlF2Wu3R7I1TWCEQGLvu-9fR1kzq9REVAie0ZIOsNlLaRxLzRH2Wic1_X_epHUquONErEdFIdJBwkzwzmE7H2EiL7Pb-pl5weVzOVZpxMu9YVgMgLRat-UQnWHNX6Rsu_EtjeRubtXdadTAQZ0WtrI7JMIu14kM34x8kCemDJhotXvT3S9OzjR6y3_sOQWOrrawiqGF_ZBob_-lJLqcFx-6OhVLdKaf7X3yLGge9rCRjJcimwXQBvJvm_Pp8IdrMDR5Juw",
"e": "AQAB",
"alg": "RS512",
"kid": "cb5d3a5f-9dcf-4bcf-b4a7-ed6d0a11a983",
"use": "sig"
}
set nocompatible
filetype plugin indent on
syntax on
"colorscheme darcula
"""""""""""" Key Map
let mapleader = ","
let maplocalleader="\<space>"
@artronics
artronics / github-context.json
Created September 30, 2022 00:28 — forked from colbyfayock/github-context.json
Sample payload for Github Action `github` context
{
"token": "[token]",
"job": "notifySlack",
"ref": "refs/pull/4/merge",
"sha": "[shad]",
"repository": "colbyfayock/demo-github-actions",
"repository_owner": "colbyfayock",
"repositoryUrl": "git://github.com/colbyfayock/demo-github-actions.git",
"run_id": 120667610,
"run_number": "2",
font:
normal:
family: JetbrainsMono Nerd Font
style: Regular
bold:
family: JetbrainsMono Nerd Font
style: Bold
italic:
# Set prefix to Ctrl-Space instead of Ctrl-b
unbind C-b
set -g prefix C-a
bind a send-prefix
# See (and comments): https://stackoverflow.com/a/42461580/3943054
bind -n S-Enter send-keys Escape "[13;2u"
bind -n C-Enter send-keys Escape "[13;5u"
# split panes using | and _
set nocompatible
filetype plugin indent on
syntax on
call plug#begin()
Plug 'doums/darcula'
Plug 'ap/vim-css-color'
Plug 'tpope/vim-commentary'
Plug 'neoclide/coc.nvim', {'branch': 'master', 'do': 'yarn install --frozen-lockfile'}
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'ziglang/zig.vim'
# Set prefix to Ctrl-Space instead of Ctrl-b
unbind C-b
set -g prefix C-n
bind n send-prefix
# See (and comments): https://stackoverflow.com/a/42461580/3943054
bind -n S-Enter send-keys Escape "[13;2u"
bind -n C-Enter send-keys Escape "[13;5u"
# split panes using | and _

Authentication

Client Credentials

This method of authentication is used to obtain an access token outside the context of a user. With machine-to-machine (M2M) applications, such as CLIs, daemons, or services running on your back-end, the system authenticates and authorizes the app rather than a user. For this scenario, typical authentication schemes like username + password or social logins don't make sense. Instead, M2M apps use the Client Credentials Flow (defined in OAuth 2.0 RFC 6749, section 4.4), in which they pass along their Client ID and their credentials to authenticate themselves and get a token.

Proposed Solution to Mappings

For the sake of making the argument easy to understand, I decided to represent the data as simple maps and assert facts about them based on what we know. If I'm assuming something that I'm not sure about then I marked them, so we can verify or investigate them separately.

For this to work let's forget about MedicationRequest, R3, R4, etc. All we care about is the raw data (like json) and the type after decoding it. For example, a MedicationRequest of STU3 version can be represented as type A. Mixing the actual resource name with its version only makes understanding the problem harder without any contribution to the solution.

Raw data and Profile

Here is an example of an input data: