Hari Sekhon - Knowledge Base from 20 years in DevOps, Linux, Cloud, Big Data, Security, AWS, GCP etc
[![My LinkedIn](https://img.shields.io/badge/LinkedIn%20Profile-HariSekhon-blue?logo=da
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "PublicReadGetObject", | |
| "Effect": "Allow", | |
| "Principal": "*", | |
| "Action": "*", | |
| "Resource": [ | |
| "arn:aws:s3:::bucketname", |
| #! /usr/bin/bash | |
| read -p "Give size of swap you wants to create:" usr_input | |
| echo "Your swap memory will be create of size : $usr_input" | |
| sudo fallocate -l $usr_input /swapfile | |
| sudo chmod 600 /swapfile | |
| sudo mkswap /swapfile | |
| sudo swapon /swapfile | |
| sudo swapon --show |
| [ | |
| { | |
| "AllowedHeaders": [ | |
| "*" | |
| ], | |
| "AllowedMethods": [ | |
| "PUT", | |
| "POST", | |
| "GET" | |
| ], |
[![My LinkedIn](https://img.shields.io/badge/LinkedIn%20Profile-HariSekhon-blue?logo=da
| server { | |
| server_name domain.com; | |
| location / { | |
| proxy_pass http://localhost:1111; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection 'upgrade'; | |
| proxy_set_header Host $host; |
| import os | |
| import time | |
| import asyncio | |
| import aiobotocore | |
| import aiofiles | |
| AWS_ACCESS_KEY_ID = '' # aws access key | |
| AWS_SECRET_ACCESS_KEY = '' # aws secret key | |
| READ_TIMEOUT = 500 |