Skip to content

Instantly share code, notes, and snippets.

View Babatunde13's full-sized avatar
🎯
Focusing

Babatunde Mudathir Koiki Babatunde13

🎯
Focusing
View GitHub Profile
#!bin/bash
# This script will create a bucket in S3 and upload a file to it
aws s3 mb s3://bkoiki950assets
echo "Bucket created"
echo "THis is my first file in index" >> index.txt
echo "THis is another file in index1" >> index1.txt
echo "THis is another file in index2" >> index2.txt
@Babatunde13
Babatunde13 / comms-s3-analysis.py
Last active April 26, 2025 18:05
An easy script that pulls data from a bucket and cache and compares the destination for both data source
import boto3, json, datetime, redis
def get_unique_destinations(data, key: str):
unique_destinations = set()
all_destinations = []
for item in data:
if key in item:
unique_destinations.add(item[key])
all_destinations.append(item[key])
@Babatunde13
Babatunde13 / zones.ts
Created May 29, 2025 14:52
contains zones informations for both local and international zones
import { ulid } from 'ulid';
import { ABCTerminal } from './sales/sale.entity';
export const states = [
'abia',
'adamawa',
'akwa ibom',
'anambra',
'bauchi',
'bayelsa',