Skip to content

Instantly share code, notes, and snippets.

View Iheanacho-ai's full-sized avatar
💭
Available

Iheanacho Amarachi Sharon Iheanacho-ai

💭
Available
View GitHub Profile
#!/bin/sh
# check if the positional parameters exists
if [ $# -ne 2 ]; then
echo "Please pass two parameters."
exit 1
fi
FILEPATH="$1"
DESTINATION_PATH="$2"
cloudUploader() {
if [ -f "$FILEPATH" ]; then
if aws s3 ls "$DESTINATION_PATH"/"$file_name"; then # Check if file exists on cloud
while true; do
echo "File already exists on cloud. Choose an action: (o)verwrite, (s)kip, (r)ename:"
read action
case "$action" in
o)
# Overwrite: Proceed with upload
import Head from "next/head";
import React, { useState } from "react";
import styles from "../styles/Home.module.css";
const Home = () => {
const [startTime, setStartTime] = useState(1633538276355);
const [controls, setControls] = useState(true);
const [ended, setEnded] = useState(false);
const [duration, setDuration] = useState(null);
const [playing, setPlaying] = useState(true);