Skip to content

Instantly share code, notes, and snippets.

# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: {{ .ProjectName }}
builds:
- env:
- CGO_ENABLED=0
goos:
- darwin
- windows
export AWS_ORG_CONFIG_FILE_PREFIX=config-
export AWS_ORG_CREDENTIALS_FILE_PREFIX=credentials-
awsorg() {
local org=$1
if [[ -z "$org" ]]; then
unset AWS_ORG
unset AWS_CONFIG_FILE
unset AWS_SHARED_CREDENTIALS_FILE
# enable terraform autocomplete for zsh
# complete -o nospace -C /usr/local/bin/terraform terraform
# alias execute terraform.sh wrapper in current directory
alias t="./terraform.sh"
_t() {
NAMESPACE_DIR=$(ls | grep namespaces)
"use strict";
const nodemailer = require("nodemailer");
// async..await is not allowed in global scope, must use a wrapper
async function main() {
// Generate test SMTP service account from ethereal.email
// Only needed if you don't have a real mail account for testing
let testAccount = await nodemailer.createTestAccount();
// create reusable transporter object using the default SMTP transport
@chrispruitt
chrispruitt / how-to-install-homebrew-on-manjaro.md
Created September 17, 2022 11:54 — forked from fardjad/how-to-install-homebrew-on-manjaro.md
[How to Install Homebrew on Manjaro] Steps required to install homebrew on Manjaro Linux #linux #manjaro #homebrew

How to Install Homebrew on Manjaro

Steps required to install Homebrew on Manjaro Linux

Steps

  1. Install base-devel

     pacman -Syu # CAUTION: this updates the whole system
    

pacman -S base-devel

@chrispruitt
chrispruitt / alb_access_logs.sh
Last active July 19, 2024 15:40
Idempotent script for managing an aws alb access log athena table.
#!/bin/bash
# Dependencies:
# - athena-cli - https://github.com/justmiles/athena-cli
# - aws cli
# Prerequisites:
# - AWS ALB Access log s3 bucket
# - AWS ALB Access logs created
# - Update the variables below to match your environment