This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ulid } from 'ulid'; | |
import { ABCTerminal } from './sales/sale.entity'; | |
export const states = [ | |
'abia', | |
'adamawa', | |
'akwa ibom', | |
'anambra', | |
'bauchi', | |
'bayelsa', |
OlderNewer