Skip to content

Instantly share code, notes, and snippets.

lucasm-iRonin / lambda-basic-auth.js
Created Jan 25, 2019 — forked from lmakarov/lambda-basic-auth.js
Basic HTTP Authentication for CloudFront with Lambda@Edge
View lambda-basic-auth.js
'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 /
Created Jul 3, 2018 — forked from leonardofed/
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 / change_string.rb
Created Jun 28, 2017
What will be printed by the last line (`puts` method), please explain the result:
View change_string.rb
def change_string(str)
str << "bbb"
str << "ccc"
str = "ddd"
test = "aaa"
puts test
lucasm-iRonin /
Created Apr 27, 2016 — forked from egerlach/
Update stack underlying apps running on dokku
# before you can use this, you need to run (as root):
# git clone /root/stack-images
# git clone /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