Skip to content

Instantly share code, notes, and snippets.

View MeRahulAhire's full-sized avatar
🎯
Focusing

Rahul Ahire MeRahulAhire

🎯
Focusing
View GitHub Profile
@MeRahulAhire
MeRahulAhire / nbm_scrollLogic.js
Created January 9, 2023 14:25
NasaBlackMarble alternate faulty scroll logic
let afghanistan = true;
let iceland = true;
let argentina = true;
let argentina2 = true
let russia = true;
let australia = true;
let usa = true;
let egypt = true;
let pakistan = true;
let india = true;
@MeRahulAhire
MeRahulAhire / athena.md
Last active February 19, 2022 22:35
Get details about Athena table and how to create it.

1st getting all the schema for main Tables

require("dotenv").config();
const AWS = require("aws-sdk");

const athena = new AWS.Athena({
  accessKeyId: process.env.ACCESS_KEY,
  secretAccessKey: process.env.SECRET_KEY,
  region: process.env.REGION,
@MeRahulAhire
MeRahulAhire / listBucketEncryption.js
Last active May 13, 2021 06:48
Get the List of S3 buckets with Encryption enabled
const AWS = require('aws-sdk');
const s3 = new AWS.S3();
s3.listBuckets(function(err, data) {
if (err) console.log(err, err.stack);
let bucketData = data.Buckets;
let bucketLength = data.Buckets.length;
for (let i = 0; i < bucketLength; i++) {
var params = {