Skip to content

Instantly share code, notes, and snippets.

View ihorkysylevych-champ's full-sized avatar
🇺🇦

Ihor Kysylevych ihorkysylevych-champ

🇺🇦
View GitHub Profile
@ihorkysylevych-champ
ihorkysylevych-champ / 1.mongodb-aws-setup-guide.md
Created October 27, 2024 17:55 — forked from calvinh8/1.mongodb-aws-setup-guide.md
MongoDB Setup Guide for AWS EC2 Instances with Auth Enabled

MongoDB AWS EC2 Setup Guide

You can see my latest update in my blog here https://medium.com/@calvin.hsieh/steps-to-install-mongodb-on-aws-ec2-instance-62db66981218

Credits:

Big thanks to Elad Nava and Shane Rainville for writing the above articles that allow me to conduct this guide. If by all means that I violated original post's copyright, please contact me.

@ihorkysylevych-champ
ihorkysylevych-champ / killserver.sh
Last active September 8, 2023 13:39
Kill server bash script
killServer() {
PORT=${1}
if [ -z "${PORT}" ]; then
echo "[ERROR] Server port number is not provided"
exit 1
fi
if ! [ -n "$PORT" ] && [ "$PORT" -eq "$PORT" ] 2>/dev/null; then
echo "[ERROR] Server port is not a number" >&2;

Keybase proof

I hereby claim:

  • I am ihorkysylevych-champ on github.
  • I am ihorkysyle_champ (https://keybase.io/ihorkysyle_champ) on keybase.
  • I have a public key ASDLKTRRuL7evy5nUb0wgnOavNoj9RlklSEEHIScypdVLAo

To claim this, I am signing this object: