sudo apt-get install python3-pip
sudo pip3 install virtualenv
| """ | |
| An implementation of TOTP as described in https://tools.ietf.org/html/rfc6238#section-4 aka Google Authenticator Style 2-factor Auth | |
| """ | |
| import base64 | |
| import datetime | |
| import hashlib | |
| import hmac | |
| import sys | |
| import struct | |
| import time |
| ----- Interested Reads------ | |
| + Interesting Read (Serverless Architecture of Acloud guru) | |
| https://read.acloud.guru/serverless-the-future-of-software-architecture-d4473ffed864 | |
| ----- Getting Started------- | |
| + Requirements | |
| + AWS Free Tier Account | |
| + PC with putty and putty keygen/ Mac | |
| + Optional | |
| + IoS/ Android App $20 |
| // 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works | |
| const axios = require('axios'); // promised based requests - like fetch() | |
| function getCoffee() { | |
| return new Promise(resolve => { | |
| setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee | |
| }); | |
| } |
| #!/usr/bin/env bash | |
| DEVICE=/dev/xvdf | |
| FOLDER=/data/stuff | |
| sudo mkfs -t ext4 $DEVICE | |
| sudo mkdir -p $FOLDER | |
| echo "$DEVICE $FOLDER ext4 defaults,nofail 0 2" | sudo tee --append /etc/fstab > /dev/null | |
| sudo mount -a |
| # UPDATED 17 February 2019 | |
| # Redirect all HTTP traffic to HTTPS | |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name www.domain.com domain.com; | |
| return 301 https://$host$request_uri; | |
| } | |
| # SSL configuration |
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.