Skip to content

Instantly share code, notes, and snippets.

View saintmalik's full-sized avatar
🤗
Smile at least once a day

Abdulmalik Salawu saintmalik

🤗
Smile at least once a day
View GitHub Profile
@saintmalik
saintmalik / gist:ff9e534dcc15caf669991f32eead6032
Created November 27, 2023 05:51 — forked from levelsio/gist:5bc87fd1b1ffbf4a705047bebd9b4790
Secret of Monkey Island: Amsterdam (by @levelsio) or how to create your own ChatGPT image+text-based adventure game
2023-11-27 MIT LICENSE
Here's the open source version of my ChatGPT game MonkeyIslandAmsterdam.com.
It's an unofficial image+text-based adventure game edition of Monkey Island in Amsterdam, my home town.
Please use it however you want. It'd be nice to see more ChatGPT-based games appear from this.
It's much easier than you think and you'll be shocked by how relatively well it works with little work.
@saintmalik
saintmalik / download_s3_images.sh
Created October 16, 2023 14:22
first get the file object names and append the s3 url with it then use the follow the command
imgdir=$1
urllist=$2
mkdir $imgdir
# Initialize a counter for incremental filenames
count=1
# Read URLs from the urllist file and download files
while IFS= read -r url; do
#!/bin/bash
printf "Dont abuse and spam maintainers, ALWAYS MAKE QUALITY CONTRIBUTIONS!\n";
printf "Dont abuse and spam maintainers, ALWAYS MAKE QUALITY CONTRIBUTIONS!\n";
printf "Dont abuse and spam maintainers, ALWAYS MAKE QUALITY CONTRIBUTIONS!\n";
printf "Dont abuse and spam maintainers, ALWAYS MAKE QUALITY CONTRIBUTIONS!\n";
echo "$var"
#install Go
# !/bin/bash
bash data.sh | jq . > data.txt
result=$(cat data.txt | grep -e "successful" | wc -l)
if [ $result -eq 3 ]; then
echo "Success, Everyone got the topup 👍"
else
echo "Ahhh, we've got errors oooh 😂🤣😂"
#!/bin/bash
CURRENTDATEONLY=`TZ='YOURTIMEZONE' date +"%b %d, %Y, %I:%M, %p"`
while IFS= read -r line; do
if curl -sLI $line | grep "200" > /dev/null; then
echo "$line is UP" > /dev/null
else
echo "$line is DOWN: ${CURRENTDATEONLY}"
fi
@saintmalik
saintmalik / website-uptime-monitor.md
Last active August 21, 2021 18:34
How to Monitor Website Uptime Using Bash Script, VPS Server and Slack