Skip to content

Instantly share code, notes, and snippets.

View Saghen's full-sized avatar

Liam Dyer Saghen

View GitHub Profile
@Saghen
Saghen / cloudSettings
Last active December 9, 2019 03:11
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-08-11T04:20:38.238Z","extensionVersion":"v3.4.1"}
@Saghen
Saghen / .zshrc
Created August 10, 2019 01:09
Zshrc
autoload -Uz compinit
if [[ -n ${ZDOTDIR}/.zcompdump(#qN.mh+24) ]]; then
compinit;
else
compinit -C;
fi;
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@Saghen
Saghen / cloudSettings
Last active July 13, 2020 21:25
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-07-13T21:21:36.894Z","extensionVersion":"v3.4.3"}
@Saghen
Saghen / .zshrc
Last active March 28, 2022 19:28
.zshrc
autoload -Uz compinit
if [[ -n ${ZDOTDIR}/.zcompdump(#qN.mh+24) ]]; then
compinit;
else
compinit -C;
fi;
# User configuration
# Antibody
@Saghen
Saghen / mongo-ops.ts
Created September 5, 2022 19:03
MongoDB FP-TS Utilities
// WARN: Please note the error types may be incorrect
// WARN: Non-null assertions are used to avoid having to deal with overload typing but lead to unsafe typing
// NOTE: Unfortunately, due to the typing of the client, you must pass the type of the document during the call
// such as `insertOne<YourDocumentType>({ foo: 'bar' })
import { UnknownError } from '@shared/errors'
import { safeTask } from '@utils/fp'
import * as M from 'mongodb'
@Saghen
Saghen / blink-cmp.lua
Created March 31, 2025 13:29
blink.cmp vs nvim-cmp