Skip to content

Instantly share code, notes, and snippets.

@loanburger
loanburger / gist:92dcfc642eb3c66e6301cb90fdfc6530
Created May 16, 2021 05:01 — forked from danielcompton/gist:6724333
Excel formula for calculating NZ tax paid on annual income.
=IF(B2<=14000,SUM(B2*10.5%),IF(B2<=48000,SUM(B2-14000)*17.5%+1470,IF(B2<=70000,SUM(B2-48000)*30%+7420,IF(B2>=70001,SUM(B2-70000)*33%+14020))))
@loanburger
loanburger / main.tf
Created February 26, 2023 21:35 — forked from kdgregory/main.tf
Example of Terraform module to create an SQS queue with modular policy documents
##
## Main configuration: creates several SQS queues using a module, then
## combines their policies into an application role.
##
provider "aws" {}
module "notifications_queue" {
source = "./modules/sqs"
queue_name = "Notifications"