Skip to content

Instantly share code, notes, and snippets.

View adityaprakash-bobby's full-sized avatar
😃

Aditya Prakash adityaprakash-bobby

😃
View GitHub Profile
@adityaprakash-bobby
adityaprakash-bobby / Dockerfile
Last active February 29, 2020 08:35
ECS - 404 with apache && 502 with ALB
FROM ubuntu:18.04
RUN apt-get update && \
apt-get -y install apache2
RUN echo 'Hello World!' > /var/www/html/index.html
# Configure apache
RUN echo '. /etc/apache2/envvars' > /root/run_apache.sh && \
echo 'mkdir -p /var/run/apache2' >> /root/run_apache.sh && \

Errors

Proposed Solution
  POST                   API
  REQ                  Trigger 
-------->  API Gateway -------> Lambda (Synchrnous Textract TextDetection) -----> Response

@adityaprakash-bobby
adityaprakash-bobby / task_timeline.md
Last active February 11, 2020 13:37
This is the high level breakdown/timeline of the development of the React-S3-Cognito Application

Timeline for the React App with AWS Cognito and S3

The usecase of the application will be list all bucket objects to apecific users that register themselves with the application.

Day 1: Ideation

Create a workflow for the whole application and build dependency of various resources on each other. The given static React application will use Cognito to authenticate and authorize the user to fetch resource details from AWS. This will help the application to fetch temporary AWS credentials in the form of JWT tokens to access the AWS resources.

Day 2: Setting up AWS environment

@adityaprakash-bobby
adityaprakash-bobby / web-servers.md
Created February 4, 2020 06:59 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@adityaprakash-bobby
adityaprakash-bobby / dataflow_job.py
Created February 1, 2020 10:48
Dataflow job to read csv and write to BigQuery
import logging
import datetime
import apache_beam as beam
from apache_beam.options.pipeline_options import PipelineOptions
from apache_beam.io import ReadFromText
def run(argv=None):
p = beam.Pipeline(options=PipelineOptions())
@adityaprakash-bobby
adityaprakash-bobby / debugme.md
Last active June 6, 2019 16:14
(Every friggin') problem that I faced and their solutions

I will be adding all the debuggings here for all the problems that I faced somewhere or the other. grouped by the languages

Linux/Unix

GDM Stuck after blank screen

Recently, I updated from fedora 29 to fedora 30 on my dual booted system. I was pretty excited about it since few days back I had done a standalone installation on my home PC and it was so impressive on such a low speced PC. After a lot of slacking I thought of upgrading. I did. Man! This is something so irritating. I got this hideous issue that made me stuck for some time at my login screen. After a thorough digging at the issue, it was the nouveau driver that was failing.

The dmesg -T output threw something like this:

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream