Skip to content

Instantly share code, notes, and snippets.

View Byte-Forge-AI's full-sized avatar
🏢
Working from Office

Rakesh Saini Byte-Forge-AI

🏢
Working from Office
  • India
View GitHub Profile
@Byte-Forge-AI
Byte-Forge-AI / Angular-11-and-Above-Azure-Blob-Storage.md
Last active February 27, 2024 13:34
Angular 11 and above, Azure Blob-Storage-CRUD operations

Angular 11 and Above Azure Blob-Storage CRUD Operations

features list

  • listing containers
  • creating containers
  • uploading files
  • listing files
  • deleting files
@Byte-Forge-AI
Byte-Forge-AI / aws-sns-example.js
Created February 4, 2021 08:52 — forked from tmarshall/aws-sns-example.js
aws-sdk sns example, in Node.js
var AWS = require('aws-sdk');
AWS.config.update({
accessKeyId: '{AWS_KEY}',
secretAccessKey: '{AWS_SECRET}',
region: '{SNS_REGION}'
});
var sns = new AWS.SNS();
class Model(AttrDict):
read_preference = read_preferences.PRIMARY
...
@contextmanager
def read_preference(pref):
try:
prev_pref = Model.read_preference
Model.read_preference = pref
import gc
from threading import Thread
import boto3
import botocore
def client():
boto3.Session().client("s3")
#!/bin/bash
# Copies an entire mongodb collection into an RDS table, skipping existing rows.
MONGOHOST=""
RDS=""
TABLE=""
DB="cureatr"
COLLECTION=""
import os
import getpass
import boto3
os.environ['AWS_ACCESS_KEY_ID'] = ... # your accounts access key
os.environ['AWS_SECRET_ACCESS_KEY'] = ... # your accounts secret
client = boto3.client("sts")
token = getpass.getpass("Enter MFA token -> ")
# Exchange permanent key/secret for temporary ones
@Byte-Forge-AI
Byte-Forge-AI / mongodb_shell_commands.md
Created December 30, 2020 16:40 — forked from michaeltreat/mongodb_shell_commands.md
Quick Cheat Sheet for Mongo DB Shell commands.

MongoDB Shell Commands Cheat Sheet.

This is a Cheat Sheet for interacting with the Mongo Shell ( mongo on your command line). This is for MongoDB Community Edition.

Preface:

Mongo Manual can help you with getting started using the Shell.

FAQ for MongoDB Fundamentals and other FAQs can be found in the side-bar after visiting that link.