Skip to content

Instantly share code, notes, and snippets.

View sandeepkunkunuru's full-sized avatar

Sandeep Kunkunuru sandeepkunkunuru

View GitHub Profile
@sandeepkunkunuru
sandeepkunkunuru / 6WDD
Last active May 19, 2022 12:41
A development paradigm driven by 6 W's
A development paradigm driven by
- Why?
- What?
- How?
- When?
- Where?
- Who?
These questions can be applied at each phase; be it requirements gathering, design, development, testing. It compliments
@jamesmishra
jamesmishra / README.md
Last active March 25, 2024 20:02
Using Terraform to run a docker-compose.yml file directly on an Amazon EC2

Introduction

This is a Hashicorp Terraform module that provisions an AWS EC2 instance for the purpose of running a given docker-compose.yml file.

Usage

# ===== OUR MAGIC DOCKER-COMPOSE.YML FILE HERE =====
# It is also possible to get Terraform to read an external `docker-compose.yml`
# file and load it into this variable.
# We'll be showing off a demo nginx page.
syntax = "proto3";
package pingpong;
message PingRequest {
string ping = 1;
}
message PongResponse {
string pong = 1;
@rimatla
rimatla / TSLInt-Prettier-CreateReactApp-TypeScript-setup.md
Last active May 17, 2024 09:44
Create React App + TypeScript Linting with TSLint and Prettier setup on VSCode

Ps: The current setup was done on 01-04-19

Project Dependency Versions at the time 👇

  "react": "^16.7.0",
  "react-dom": "^16.7.0",
  "react-scripts": "2.1.3",
  "typescript": "^3.2.2"
  "tslint": "^5.12.0",
  "tslint-config-prettier": "^1.17.0",
@paulmelnikow
paulmelnikow / excel_to_json.py
Last active June 1, 2022 07:25
Convert Excel to JSON using pandas
#!/usr/bin/env python3
'''
MIT License
Copyright (c) 2018 Paul Melnikow
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip
# Unzip
unzip protoc-3.5.1-linux-x86_64.zip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/
@adrianhall
adrianhall / AppSyncAPI.yaml
Last active March 19, 2023 14:57
A CloudFormation template for DynamoDB + Cognito User Pool + AppSync API for the Notes tutorial
---
Description: AWS AppSync Notes API
Parameters:
APIName:
Type: String
Description: Name of the API - used to generate unique names for resources
MinLength: 3
MaxLength: 20
AllowedPattern: '^[a-zA-Z][a-zA-Z0-9_]*$'
hbase(main):017:0> scan 'personalnew',{VERSIONS=>4}
ROW COLUMN+CELL
1 column=personal_data:age, timestamp=1518070847422, value=25
1 column=personal_data:age, timestamp=1517381138957, value=25
1 column=personal_data:city, timestamp=1518070871233, value=USA
1 column=personal_data:city, timestamp=1517381134473, value=Bengaluru
1 column=personal_data:name, timestamp=1518070904715, value=Ram
1 column=personal_data:name, timestamp=1517381128393, value=Ram
1 row(s) in 0.0110 seconds
@headius
headius / meltdown_in_a_nutshell.md
Last active July 27, 2018 13:43
How Meltdown Works

Algorithm

  1. A secret byte you want to read is stored at inaccessible memory location priv_mem.
  2. The sender triggers an access exception by attempting to read priv_mem.
  3. Due to CPU optimization (out-of-order execution), the load of secret from priv_mem and the use of its value in (4) and (5) below may execute before the exception is triggered.
  4. Calculate an offset into a known array probe by multiplying secret by the width of a cache line (or whatever block size the CPU typically fetches, like a 4096-byte page). This guarantees each of those 256 possible offsets will cache separately.
  5. Load probe[offset], which causes the CPU to cache exactly one chunk of of our array, populating one cache line.
  6. The exception finally triggers, clearing the modified registers...but cached data is not excised.
  7. Iterate over all 256 offsets into probe to find out which one loads fast. You've determined the value of secret.
@evanderkoogh
evanderkoogh / example.csv
Created November 20, 2017 13:29
Import CSV into DynamoDB
whateverId attribute1 someotherattribute
foo bar baz
hello erwin world