Skip to content

Instantly share code, notes, and snippets.

View shashi1811's full-sized avatar
🎯
Focusing

shashi1811

🎯
Focusing
View GitHub Profile
@shashi1811
shashi1811 / Dockerfile
Created July 27, 2021 07:18 — forked from tcnksm/Dockerfile
Dockerfile for apache container
FROM ubuntu:12.04
RUN apt-get update
RUN apt-get install -y apache2
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
RUN echo 'Hello, docker' > /var/www/index.html
@shashi1811
shashi1811 / betterthanboto.py
Created January 21, 2020 06:41 — forked from mekza/betterthanboto.py
Signed URLs and Signed Cookies for CloudFront in Python with boto
from boto.cloudfront.distribution import Distribution
from cryptography.hazmat.primitives.asymmetric import padding
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
import base64
class BetterThanBoto(Distribution):
def sign_rsa(self, message):
@shashi1811
shashi1811 / vpc-fargate.yaml
Created November 7, 2019 12:11 — forked from lizrice/vpc-fargate.yaml
Cloudformation template for setting up VPC and subnets for Fargate
# Usage:
# aws cloudformation --region <region> create-stack --stack-name <stack name> --template-body file://vpc-fargate.yaml
# This template will:
# Create a VPC with:
# 2 Public Subnets
# 2 Private Subnets
# An Internet Gateway (with routes to it for Public Subnets)
# A NAT Gateway for outbound access (with routes from Private Subnets set to use it)
#