Skip to content

Instantly share code, notes, and snippets.

View ncronquist's full-sized avatar

Nicholas Cronquist ncronquist

View GitHub Profile
@ncronquist
ncronquist / mysql-docker-compose.yml
Created April 19, 2023 20:25
Local MySQL with Docker-Compose
View mysql-docker-compose.yml
version: "3"
services:
mysql:
container_name: mysql
image: mysql:5.7
command: "--character-set-server=utf8 --collation-server=utf8_unicode_ci"
volumes:
- db-data:/var/lib/mysql
- /var/run/mysqld:/var/run/mysqld
@ncronquist
ncronquist / my-shortcuts.ahk
Last active March 10, 2023 19:24
AutoHotKey Script to Support Em Dash and Moving Windows Across Virtual Desktops
View my-shortcuts.ahk
;#SETUP START
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#SingleInstance force
ListLines Off
SetBatchLines -1
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#KeyHistory 0
#WinActivateForce
View terraform-usage.md

This post/message in response to https://twitter.com/trusted47/status/1523816335221956609

I was required to use Terragrunt for a while by a well-meaning company policy. I did put a lot of time and effort into trying to make it work well for us though and definitely agree that it solves some problems, but in my experience it introduced more complexity than it solved.

I'll start by saying that my usage of Terraform has been at larger companies where dev teams own their services end-to-end and manage most of their own infrastructure (Some companies using single/few AWS accounts might centrally manage VPCs/DNS, but teams with their own AWS accounts might manage everything other than audit logging/security checks). In any case, I can't talk to a central operations team managing infrastructure for everyone. As we both noted, the actual use-case and requirements make a big difference for what is going to work for any single team/company.

  1. Strongly prefer using human readable variable values with data resources
@ncronquist
ncronquist / windows-terminal-settings.jsonc
Last active March 7, 2021 19:40
Windows Terminal Settings with Multiple Themes
View windows-terminal-settings.jsonc
// This file was initially generated by Windows Terminal 1.0.1401.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@ncronquist
ncronquist / .editorconfig
Last active July 15, 2019 04:19
Golang Cheatsheet
View .editorconfig
# http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
@ncronquist
ncronquist / arrayUtils.js
Created June 1, 2018 01:24
Smallest Missing Positive Integer
View arrayUtils.js
function swap(arr, indexLeft, indexRight) {
const temp = arr[indexLeft];
arr[indexLeft] = arr[indexRight];
arr[indexRight] = temp;
return arr;
}
function deleteIndex(arr, indexToDelete) {
for (let i = indexToDelete; i < arr.length; i++) {
if (i + 1 < arr.length) {
View nuc_atom_config.cson
"*":
core:
closeDeletedFileTabs: true
telemetryConsent: "limited"
themes: [
"atom-material-ui"
"atom-material-syntax"
]
editor:
fontSize: 13
View nuc_atom_snippets.cson
'.source.json':
'Receipt Info Add':
'prefix': 'rec'
'body': """
"$1": {
"receipt": "../samples/post-requests/$1.json",
"schema": "$3.schema.json"
}$4
"""
'.source.gfm':
View nuc_atom_keymap.cson
'.platform-linux atom-text-editor':
'alt-shift-L': 'grammar-selector:show'
'ctrl-shift-L': 'editor:split-selections-into-lines'
'atom-text-editor.vim-mode-plus':
'ctrl-c': 'core:copy'
'atom-text-editor.vim-mode-plus-input':
'ctrl-c': 'core:copy'
@ncronquist
ncronquist / boxstarter.ps1
Last active October 23, 2017 05:09
Boxstarter Computer Setup Script
View boxstarter.ps1
# Boxstarter Script
# Author: Nick Cronquist <nick@ncronquist.com>
# Last Updated: 2017-10-22
#
# Originally sourced from Jess Frazelle (https://gist.github.com/jessfraz/7c319b046daa101a4aaef937a20ff41f)
# Install boxstarter and chocolatey
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# Allow scripts to be run
# Set-ExecutionPolicy Unrestricted -Force