Skip to content

Instantly share code, notes, and snippets.

@lucasm-iRonin
lucasm-iRonin / lambda-basic-auth.js
Created January 25, 2019 13:58 — forked from lmakarov/lambda-basic-auth.js
Basic HTTP Authentication for CloudFront with Lambda@Edge
'use strict';
exports.handler = (event, context, callback) => {
// Get request and request headers
const request = event.Records[0].cf.request;
const headers = request.headers;
// Configure authentication
const authUser = 'user';
const authPass = 'pass';
@lucasm-iRonin
lucasm-iRonin / README.md
Created July 3, 2018 09:51 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

OP: @leonardofed founder @ plainflow.


@lucasm-iRonin
lucasm-iRonin / change_string.rb
Created June 28, 2017 06:00
What will be printed by the last line (`puts` method), please explain the result:
def change_string(str)
str << "bbb"
str << "ccc"
str = "ddd"
end
test = "aaa"
change_string(test)
puts test
@lucasm-iRonin
lucasm-iRonin / update-dokku-stack.sh
Created April 27, 2016 09:13 — forked from egerlach/update-dokku-stack.sh
Update stack underlying apps running on dokku
#!/bin/bash
# before you can use this, you need to run (as root):
# git clone https://github.com/tt/stack-images.git /root/stack-images
# git clone https://github.com/gliderlabs/herokuish.git /root/herokuish
# First, we need to get our base ubuntu images up to date
docker pull ubuntu-debootstrap:14.04
docker pull ubuntu:trusty # for postgresql