Skip to content

Instantly share code, notes, and snippets.

View vinayaroratech's full-sized avatar
💭
Lead Engineer focused on high quality and maximizing productivity.

Vinay Arora vinayaroratech

💭
Lead Engineer focused on high quality and maximizing productivity.
View GitHub Profile
@vinayaroratech
vinayaroratech / AdvancedDistributedSystemDesignCourseNotes.md
Created August 8, 2024 15:08 — forked from craigtp/AdvancedDistributedSystemDesignCourseNotes.md
Notes on Udi Dahan's Advanced Distributed System Design Course

Advanced Distributed System Design Course - Udi Dahan

Notes by Craig Phillips

Fallacies of Distributed Computing

  • There are 11 fallacies of Distributed Computing:
    1. The network is reliable
    2. Latency isn’t a problem
    3. Bandwidth isn’t a problem
    4. The network is secure
  1. The topology won’t change
@vinayaroratech
vinayaroratech / generate-ssh-key.sh
Last active August 31, 2021 12:47
Generate SSH Keys and Give Permissions
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
@vinayaroratech
vinayaroratech / README.md
Created March 3, 2021 18:31 — forked from mosquito/README.md
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/[email protected]. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service
@vinayaroratech
vinayaroratech / configure-ufw-on-ubuntu-1804.sh
Created February 9, 2021 17:09
Configure UFW (Firewall) on Ubuntu 18.04 - 19.04
#!/usr/bin/env bash
echo "
----------------------
UFW (FIREWALL)
----------------------
"
# allow ssh connections through firewall
sudo ufw allow OpenSSH
@vinayaroratech
vinayaroratech / install-nginx-on-ubuntu-1804.sh
Created February 9, 2021 17:08
Install NGINX on Ubuntu 18.04 - Ubuntu 19.04
#!/usr/bin/env bash
echo "
----------------------
NGINX
----------------------
"
# install nginx
sudo apt-get install -y nginx
@vinayaroratech
vinayaroratech / install-pm2-on-ubuntu-1804.sh
Created February 9, 2021 17:07
Install PM2 on Ubuntu 18.04 - Ubuntu 19.04
#!/usr/bin/env bash
echo "
----------------------
PM2
----------------------
"
# install pm2 with npm
sudo npm install -g pm2
@vinayaroratech
vinayaroratech / install-mongodb-40-on-ubuntu-1804.sh
Created February 9, 2021 17:06
Install MongoDB 4.0 on Ubuntu 18.04 - Ubuntu 19.04
#!/usr/bin/env bash
echo "
----------------------
MONGODB
----------------------
"
# import mongodb 4.0 public gpg key
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
@vinayaroratech
vinayaroratech / install-node-10x-npm-on-ubuntu-1804.sh
Last active February 9, 2021 17:03
Install Node 10.x & NPM on Ubuntu 18.04 - Ubuntu 19.04
#!/usr/bin/env bash
echo "
----------------------
NODE & NPM
----------------------
"
# add nodejs 10 ppa (personal package archive) from nodesource
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
#!/usr/bin/env bash
echo "
----------------------
NODE & NPM
----------------------
"
# add nodejs 10 ppa (personal package archive) from nodesource
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -