Skip to content

Instantly share code, notes, and snippets.

View stefandanaita's full-sized avatar
🦀
Rusting like there's no tomorrow

Stefan Danaita stefandanaita

🦀
Rusting like there's no tomorrow
View GitHub Profile
@mpociot
mpociot / CheckAccessToken.php
Last active February 21, 2018 00:52
Validate access tokens sent through Amazon Alexa requests
<?php
namespace App\BotMan\Middleware;
use BotMan\BotMan\BotMan;
use Laravel\Passport\TokenRepository;
use League\OAuth2\Server\ResourceServer;
use Symfony\Component\HttpFoundation\Request;
use BotMan\Drivers\AmazonAlexa\Extensions\Card;
use BotMan\BotMan\Interfaces\Middleware\Received;
@dimkir
dimkir / nightmare-on-amazon-linux.MD
Last active February 6, 2021 17:45
How to run nightmare on Amazon Linux

Running nightmare on Amazon Linux

You may have thought of running nightmare on AWS Lambda. But before we can run it on Lambda, we need first to make it run on Amazon Linux.

Provision instance which replicates Lambda environment

According to AWS Documentation on Lambda Execution Environment and available Libraries we would need this AMI image with this alias amzn-ami-hvm-2016.03.3.x86_64-gp2. Keep in mind that AMI-image-id for this instance would be different in different regions (eg):

  • In eu-west-1 - ami-f9dd458a
  • In us-east-1 - ami-6869aa05