Skip to content

Instantly share code, notes, and snippets.

View nissan's full-sized avatar

Nissan Dookeran nissan

View GitHub Profile
@nissan
nissan / sample-fhir-with-attachments-for-demo
Created October 23, 2024 08:42
Sample FHIR for class demo
This file has been truncated, but you can view the full file.
{
"resourceType": "Bundle",
"id": "2d335c5f-b100-447a-b434-afe57a7063fa",
"meta": {
"lastUpdated": "2024-10-17T11:47:55.633+00:00"
},
"type": "searchset",
"total": 3,
"link": [ {
"relation": "self",
@nissan
nissan / sample-fhir-bundle-with-attachments.json
Created October 21, 2024 23:27
Sample FHIR Bundle with embedded attachments
This file has been truncated, but you can view the full file.
{
"resourceType": "Bundle",
"id": "2d335c5f-b100-447a-b434-afe57a7063fa",
"meta": {
"lastUpdated": "2024-10-17T11:47:55.633+00:00"
},
"type": "searchset",
"total": 3,
"link": [
{
@nissan
nissan / sample-fhir-bundle.json
Created October 21, 2024 23:04
Sample FHIR Data
{
"resourceType": "Bundle",
"id": "2d335c5f-b100-447a-b434-afe57a7063fa",
"meta": {
"lastUpdated": "2024-10-17T11:47:55.633+00:00"
},
"type": "searchset",
"total": 3,
"link": [
{
@nissan
nissan / gist:e771cf313e8ca6eaa54c58a3ba09fb2f
Created October 9, 2024 06:53
Convert Phantom BS58 private key format to Solana byte array
import bs58 from 'bs58';
import promptSync from 'prompt-sync';
// Initialize prompt
const prompt = promptSync();
// Prompt the user for the base58 private key
const privateKeyBase58 = prompt('Enter your base58-encoded private key: ');
// Decode the base58-encoded private key from Phantom
@nissan
nissan / graphite-dev.md
Created June 29, 2024 10:25 — forked from edwardmyung/graphite-dev.md
Graphite.dev Basic Guide

Graphite.dev

Why?

  • Stacked PRs allow you to easily work like so:
    • Work on branch ACQ-000-part-A (which is based on master)
    • Work on branch ACQ-000-part-B (which is based on part-A)
@nissan
nissan / add-ssh-keys.sh
Created July 3, 2023 19:39
Add SSH keys so no prompts for password in session
#! /bin/bash
eval $(ssh-agent)
#assuming this is the path of the key, change as needed
ssh-add ~/.ssh/id_ed25519
@nissan
nissan / configure-github-cli.sh
Created July 3, 2023 19:37
Configure the Github CLI
type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y)
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/g>&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg>&& sudo apt update \
&& sudo apt install gh -y
@nissan
nissan / configure-git.sh
Last active April 28, 2023 00:18
My settings to configure git in a Linux environment
#!/bin/bash
sudo apt install git -y
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt install git-lfs meld -y
git config --global user.name "John Doe"
git config --global user.email "[email protected]"
git config --global core.editor "nano"
git config --global diff.tool "meld"
git config --global merge.tool "meld"
git config --global help.autocorrect 1
@nissan
nissan / setup-learn-bayes-environment.sh
Created March 9, 2023 10:11
Commands to get micromamba running with environment file for Learn Bayesian Statistics repo
#! /bin/bash
curl micro.mamba.pm/install.sh | bash
source ~/.bashrc
#Assuming I've pulled the environment.yml file from my repo
micromamba create -n learn-bayes -f environment.yml -c conda-forge
micromamba activate learn-bayes
@nissan
nissan / setup-dev-laptop.ps1
Last active December 19, 2022 23:57
Setup a new developer laptop updated 2022
# Author: Nissan Dookeran
# Email: [email protected]
# Date Last Updated: 12-Dec-2022.
wsl install Ubuntu-20.04
## General tooling
winget install SlackTechnologies.Slack
winget install Google.Chrome
winget install Mozilla.Firefox