Skip to content

Instantly share code, notes, and snippets.

View agusbrand's full-sized avatar

Agustin Brandoni agusbrand

View GitHub Profile
@tirumaraiselvan
tirumaraiselvan / deploy.sh
Created March 7, 2019 10:42
Bash script to package and deploy Lambda and then link it with API Gateway route
#!/usr/bin/env bash
set -o nounset
set -o errexit
set -o pipefail
current_function="$1"
current_build="${current_function}_${DEPLOY_ENVIRONMENT}"
cd $current_function
@RadValentin
RadValentin / yarn.unlock.md
Last active August 1, 2023 11:58
Solve `yarn.lock` or `package.json` conflicts without losing your mind

NOTE: This guide is ONLY for devs who don't want to edit their yarn.lock file by hand. If you don't care about that please carry on.


So you've pulled the latest master

git checkout master
git pull
@alexcasalboni
alexcasalboni / deploy.sh
Last active January 29, 2024 12:22
Simple AWS Lambda deployment script - Zip & upload Deployment Package with initial dependencies to S3
#!/bin/bash
BUCKET="YOUR_BUCKET_NAME" # bucket name
FILENAME="deployment-package.zip" # upload key
TMP_FOLDER="/tmp/lambda-env-tmp/" # will be cleaned
OUTPUT_FOLDER="/tmp/lambda-env/" # will be cleaned
HERE=${BASH_SOURCE%/*} # relative path to this file's folder
LAMBDA_FOLDER="$HERE/lambda/" # relative path
@mrrooijen
mrrooijen / database.sslmode.require.yml
Last active February 6, 2024 21:33
SSL configurations for Rails + Postgres in either require or verify-full mode to ensure secure connections. Useful for Amazon RDS, Compose.io, etc.
production:
adapter: postgresql
encoding: unicode
sslmode: require
url: postgres://user:password@host:port/db