Skip to content

Instantly share code, notes, and snippets.

View dineshsonachalam's full-sized avatar
👋

Dinesh Sonachalam dineshsonachalam

👋
View GitHub Profile
from LucidDynamodb.Operations import DynamoDb
import os
import logging
import uuid
from boto3.dynamodb.conditions import Key
logging.basicConfig(level=logging.INFO)
AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY")
from LucidDynamodb.Operations import DynamoDb
import os
import logging
import uuid
from boto3.dynamodb.conditions import Key
logging.basicConfig(level=logging.INFO)
AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY")
pip install LucidDynamodb
@dineshsonachalam
dineshsonachalam / Python_3_dev_prerequisite.md
Last active May 31, 2021 02:24
Prerequisite for Python3 development
  1. Set Python3 as a default python version on your MacOS.
# Step 1: Install Python3 using homebrew
$ brew install python

# Step 2: Look for the path where the latest python3 is available
dineshsonachalam@macbook ~ % ls -l /usr/local/bin/python*
lrwxr-xr-x  1 dineshsonachalam  admin  24 May 30 11:31 /usr/local/bin/python -> /usr/local/bin/python3.9
@dineshsonachalam
dineshsonachalam / Chart.json
Created May 23, 2021 16:57
Generated from Chart.yaml by https://goanyjson.dineshsonachalam.com/. Gist created by user: dineshsonachalam.
{
"apiVersion": "v2",
"appVersion": "1.0",
"description": "Helm chart for ADP NY Hackathon application",
"name": "adp-ny-hackathon-app",
"owner": "dineshsonachalam",
"version": "0.1.0"
}
@dineshsonachalam
dineshsonachalam / testfile2.json
Created May 22, 2021 16:46
Generated from testfile2.xlsx by https://goanyjson.dineshsonachalam.com/. Gist created by user: dineshsonachalam.
[
{
"Alice": "No",
"Bob": "Yes",
"Sue": "Yes"
},
{
"Alice": "",
"Bob": "No",
"Sue": "Yes"
@dineshsonachalam
dineshsonachalam / dev-salaries.json
Created May 22, 2021 16:14
Generated from dev-salaries.csv by http://localhost:3000/. Gist created by user: dineshsonachalam.
[
{
"Additional Comments": "Great co-workers, good work life balance",
"Annual Base Pay": "110000",
"Annual Bonus": "7000",
"Annual Stock Value/Bonus": "150000",
"Employer": "Apple",
"Gender": "Male",
"Job Title": "Software Engineer",
"Location": "Cupertino",
@dineshsonachalam
dineshsonachalam / dev-salaries.json
Created May 22, 2021 16:14
Generated from dev-salaries.xlsx by http://localhost:3000/. Gist created by user: dineshsonachalam.
[
{
"Additional Comments": "Great co-workers, good work life balance",
"Annual Base Pay": "110000",
"Annual Bonus": "7000",
"Annual Stock Value/Bonus": "150000",
"Employer": "Apple",
"Gender": "Male",
"Job Title": "Software Engineer",
"Location": "Cupertino",
@dineshsonachalam
dineshsonachalam / docker-compose.json
Created May 22, 2021 16:05
Generated from docker-compose.yaml by https://goanyjson.dineshsonachalam.com/. Gist created by user: dineshsonachalam.
{
"networks": {
"frontend": null
},
"services": {
"backend": {
"depends_on": [
"elasticsearch"
],
"environment": [
@dineshsonachalam
dineshsonachalam / traefik.json
Created May 22, 2021 16:05
Generated from traefik.toml by https://goanyjson.dineshsonachalam.com/. Gist created by user: dineshsonachalam.
{
"api": {
"dashboard": true,
"insecure": true
},
"certificatesResolvers": {
"le": {
"acme": {
"email": "myemail@domaindomaindomain.com",
"httpChallenge": {