Skip to content

Instantly share code, notes, and snippets.

View corytheboyd's full-sized avatar

Cory Boyd corytheboyd

View GitHub Profile
@corytheboyd
corytheboyd / json_logger.rb
Last active October 9, 2023 23:36
Ruby JSON Logging
class JsonLogger
class Instance
extend Forwardable
attr_reader :identifier
# @param [String] identifier Custom identifier string for this logger. Required property of every structured log.
# @param [Array<String>] groups Optional list of additional properties to include with every log message.
# @param [Boolean] audit Defaults to false.
# @param [String, Symbol, Integer] level Defaults to DEBUG.
@corytheboyd
corytheboyd / .zshrc
Created April 28, 2022 16:46
My custom ZSH additions
# ######################
# MY CONFIGURATION START
# ######################
function be() {
bundle exec "$@"
}
function dgaf() {
git reset && \