#!/bin/bash

# Teal Dulcet
# wget https://tealdulcet.com/test.sh -qO - | bash -s --
# time ./test.sh

set -e

if [[ $# -ne 0 ]]; then
		echo "Usage: $0" >&2
			exit 1
		fi

		BOLD='\e[1m'
		NC='\e[m' # No Color

		SECONDS=0

		cd /tmp

		echo -e "\n${BOLD}System information${NC}\n"
		# wget https://raw.github.com/tdulcet/Linux-System-Information/master/info.sh -qO - | bash -se
		wget https://tealdulcet.com/info.sh -qO - | bash -se

		echo -e "\n${BOLD}C/C++ data type information${NC}\n"
		# wget https://raw.github.com/tdulcet/Linux-System-Information/master/typeinfo.sh -qO - | bash -se
		wget https://tealdulcet.com/typeinfo.sh -qO - | bash -se

		echo -e "\n${BOLD}Systems public IP addresses${NC}\n"
		# wget https://raw.github.com/tdulcet/Linux-System-Information/master/ipinfo.sh -qO - | bash -se
		wget https://tealdulcet.com/ipinfo.sh -qO - | bash -se

		echo -e "\n${BOLD}System usage information${NC} (Unicode)\n"
		# wget https://raw.github.com/tdulcet/System-Usage-Information/master/usage.sh -q
		wget https://tealdulcet.com/usage.sh -q
		bash -e -- usage.sh -u

		echo -e "\n${BOLD}System usage information${NC} (no Unicode)\n"
		bash -e -- usage.sh

		echo -e "\n${BOLD}System idle time${NC}\n"
		wget https://raw.github.com/tdulcet/Distributed-Computing-Scripts/master/idletime.sh -qO - | bash -se

		echo -e "\n${BOLD}Generate random numbers, strings, passwords, words, emojis and UUIDs${NC}\n"
		wget https://tealdulcet.com/random.sh -qO - | bash -se

		echo -e "\n${BOLD}Benchmarking tool${NC} (Unicode)\n"
		wget https://raw.github.com/tdulcet/Benchmarking-Tool/main/time.sh -q
		bash -e -- time.sh 'seq 0 10000000 | factor'

		echo -e "\n${BOLD}Benchmarking tool${NC} (no Unicode)\n"
		bash -e -- time.sh -u 'seq 0 10000000 | factor'

		echo -e "\n${BOLD}Runtime${NC}: $SECONDS\n"

