Skip to content

Instantly share code, notes, and snippets.

View n3bulous's full-sized avatar

Kevin McFadden n3bulous

View GitHub Profile
@n3bulous
n3bulous / lograge_newrelic_config.rb
Last active January 22, 2024 20:39
Lograge with NewRelic Config
# Shared by Martin Streicher in the Rails Performance Slack
# https://railsperf.slack.com/archives/C0RUUGY6R/p1702565130357359
#
config.lograge.enabled = true # see lograge section below...
config.lograge.formatter = Lograge::Formatters::Logstash.new
config.log_formatter = ::NewRelic::Agent::Logging::DecoratingFormatter.new
config.lograge.custom_options =
lambda do |event|
payload = event.payload
@n3bulous
n3bulous / setup.sh
Created August 19, 2023 17:44 — forked from bradp/setup.sh
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
@n3bulous
n3bulous / LICENSE.md
Created December 29, 2022 22:52 — forked from sj26/LICENSE.md
Bash retry function

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit

@n3bulous
n3bulous / System Design.md
Created April 25, 2021 00:10 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@n3bulous
n3bulous / parseflags.sh
Created October 3, 2020 03:45 — forked from bxparks/parseflags.sh
Simple Bash Shell Command Line Processing Template
#!/bin/bash
#
# Self-contained command line processing in bash that supports the
# minimal, lowest common denominator compatibility of flag parsing.
# -u: undefined variables is an error
# -e: exit shell on error
set -eu
function usage() {
@n3bulous
n3bulous / list_all_software_bash.sh
Last active August 5, 2019 17:04 — forked from chiranthsiddappa/list_all_software_bash.sh
List installed software on Mac, Debian, and RedHat
#!/usr/bin/env bash
# Usage, if you use SDKMAN: ./list_all_software_bash.sh sdk
# Otherwise: ./list_all_software_bash.sh
if [ "$1" = "sdk" ]; then
# Your *_profile is a login shell and should reference your bashrc
# if [ -f ~/.bashrc ]; then
# source ~/.bashrc
# fi
on alfred_script(q)
set theYear to year of (current date) as string
set theMonth to (month of (current date) as number)
if theMonth < 10 then
set theMonth to "0" & theMonth
else
set theMonth to "" & theMonth
end if

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@n3bulous
n3bulous / tutorial.md
Created July 27, 2018 20:34 — forked from swalkinshaw/tutorial.md
Designing a GraphQL API

Tutorial: Designing a GraphQL API

This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.

It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets