    1  cat /etc/lsb-release
    2  apt update
    3  apt upgrade
    4  apt-get install gnupg curl
    5  curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
    6  curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc
    7  curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc |  sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \
    8  cd /usr/share/keyrings
    9  ls
   10  curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg  --dearmor
   11  ls
   12  echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
   13  apt update
   14  apt install -y mongodb-org
   15  mongod --version
   16  systemctl start mongod
   17  systemctl daemon-reload
   18  systemctl status mongod
   19  systemctl enable mongod
   20  mongosh
   21  vim  /etc/mongod.conf 
   22  systemctl restart mongod.service
   23  vim  /etc/mongod.conf 
   24  systemctl restart mongod.service
   25  df -h
   26  screen -r -d
   27  free -m
   28  htop
   29  ls
   30  cd ide
   31  ls
   32  cd indian-exchange-data/
   33  ls
   34  cd venv/
   35  ls
   36  cd ..
   37  ls
   38  vim official-bse-historic.py 
   39  python3 official-bse-historic.py 
   40  pip3 install pymongo
   41  pip install pymongo
   42  pip3 install pymongo --break-system-packages
   43  python3 official-bse-historic.py 
   44  ls
   45  crontab -l
   46  screen
   47  ls
   48  git clone https://github.com/HarshmJenya/indian-exchange-data.git
   49  cd indian-exchange-data/
   50  git pull
   51  cd /usr/src/
   52  git pull
   53  git clone https://github.com/HarshmJenya/indian-exchange-data.git
   54  ls
   55  cd indian-exchange-data/
   56  ls
   57  cp official-bse-historic.py //root/indian-exchange-data/
   58  cd /
   59  ls
   60  cd /root/indian-exchange-data/
   61  ls
   62  python3 official-bse-historic.py 
   63  screen -r -d
   64  df -h
   65  python --version
   66  python3 --version
   67  ls
   68  cls
   69  clear
   70  mkdir indian-exchange-data
   71  ls
   72  cd indian-exchange-data/
   73  python3 -m venv ../indian-exchange-data/venv
   74  clear
   75  ls
   76  ls venv/
   77  clear
   78  rmdir venv/
   79  ls
   80  clear
   81  rm venv/
   82  rm -r venv/
   83  ls
   84  clear
   85  pip install virtualenv
   86  pip3 install virtualenv
   87  sudo apt-get install python-pip
   88  sudo apt-get install python3-pip
   89  pip3 install virtualenv
   90  pip install virtualenv
   91  clear
   92  virtualenv --version
   93  apt install python3-virtualenv
   94  virtualenv --version
   95  virtualenv venv
   96  ls
   97  virtualenv -p /usr/bin/python3 venv
   98  clear
   99  python --venv
  100  python --version
  101  clear
  102  python3 --version
  103  clear
  104  deactivate
  105  screen -r -d
  106  df -h
  107  df -h
  108  htop
  109  htop
  110  cd indian-exchange-data/
  111  s
  112  ls
  113  screen -r -d
  114  ls
  115  cd indian-exchange-data/
  116  ls
  117  python3 bse_data.py 
  118  vim official-
  119  vim official-bse-historic.py
  120  vim bse_data.py 
  121  nano bse_data.py 
  122  vim bse_data.py
  123  python3 bse_data.py
  124  screen -r -d
  125  cd indian-exchange-data/
  126  vim nse_data.py 
  127  python3 nse_data.py
  128  vim nse_data.py 
  129  cd indian-exchange-data/
  130  vim bse_data.py 
  131  vim nse_data.py 
  132  python3 nse_data.py
  133  clear
  134  vim nse_data.py 
  135  python3 nse_data.py
  136  clear
  137  sl
  138  clear
  139  df -h
  140  screen -r -d
  141  ls
  142  cd indian-exchange-data/
  143  ls
  144  vim bse_data.py 
  145  screen -r -d
  146  ls
  147  vim nse_data.py 
  148  python3 nse_data.py 
  149  pip3 install pandas
  150  pip3 install pandas --break-system-packages
  151  python3 nse_data.py 
  152  ping app.mojadevs.com
  153  python --version
  154  python3 --version
  155  htop
  156  ping 52.32.118.254
  157  df -h
  158  crontab -l
  159  screen -r -d
  160  df -h
  161  screen -r -d
  162  cd /usr/src/
  163  cd /var/ww
  164  ls
  165  screen -r -d
  166  python3 official-bse-historic.py 
  167  hto
  168  htop
  169  python3 official-bse-historic.py 
  170  clear
  171  ls
  172  vim bse_data.py 
  173  python3 bse_data.py 
  174  vim bse_data.py 
  175  python3 bse_data.py 
  176  vim bse_data.py 
  177  python3 bse_data.py 
  178  cat /etc/lsb-release
  179  python3 bse_data.py 
  180  ls
  181  cd bse_200824/
  182  ls
  183  mongoimport --db raiwat_screener --collection bse_historical_data --file upstoxTrade.bse_historical_data.json --jsonArray
  184  mongoimport --db raiwat_screener --collection bse_historical_data --file upstoxTrade.bse_historical_data.json --jsonArray -u root -p password
  185  mongoimport --db raiwat_screener --collection bse_historical_data --file upstoxTrade.bse_historical_data.json --jsonArray -u jenya -p password
  186  mongoimport --db raiwat_screener --collection bse_historical_data --file upstoxTrade.bse_historical_data.json --jsonArray -p
  187  mongoimport --db raiwat_screener --collection bse_historical_data --file upstoxTrade.bse_historical_data.json --jsonArray -ppassword
  188  mongoimport --db raiwat_screener --collection bse_historical_data --file upstoxTrade.bse_historical_data.json --jsonArray --authenticationDatabase=admin
  189  mongosh
  190  mongoimport --uri=mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.15 --db raiwat_screener -c bse_historical_data --file upstoxTrade.bse_historical_data.json --type json
  191  ls
  192  mv upstoxTrade.bse_historical_data.json bse_historical_data.json
  193  mongoimport --uri=mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.15 --db raiwat_screener -c bse_historical_data --file upstoxTrade.bse_historical_data.json --type json
  194  mongoimport --uri=mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.15 --db raiwat_screener -c bse_historical_data  --type json
  195  mongoimport --uri=mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.15 --db raiwat_screener -c bse_historical_data  --type json --file bse_historical_data.json 
  196  mongosh
  197  mongodb://127.0.0.1:27017/raiwat_screener?authSource=$authdb
  198  mongoimport --uri=mongodb://127.0.0.1:27017/raiwat_screener?authSource=$authdb -c bse_historical_data  --type json ^Cfile bse_historical_data.json 
  199  mongoimport --uri=mongodb://jenya:DJenya$Mongo@St0ckDB@127.0.0.1:27017/raiwat_screener?authSource=$authdb -c bse_historical_data  --type json ^Cfile bse_historical_data.json 
  200  mongoimport --uri=mongodb://jenya:DJenya$Mongo%40St0ckDB@127.0.0.1:27017/raiwat_screener?authSource=$authdb -c bse_historical_data  --type json ^Cfile bse_historical_data.json 
  201  mongoimport --uri=mongodb://jenya:DJenya$Mongo%40St0ckDB@127.0.0.1:27017/raiwat_screener -c bse_historical_data  --type json --file bse_historical_data.json 
  202  mongoimport --uri=mongodb://'jenya':'DJenya$Mongo@St0ckDB'@127.0.0.1:27017/raiwat_screener -c bse_historical_data  --type json --file bse_historical_data.json 
  203  mongosh
  204  mongosh --port 27017 -u jenya -p DJenya$Mongo@St0ckDB --authenticationDatabase admin
  205  mongosh --port 27017 -u jenya -p 'DJenya$Mongo@St0ckDB' --authenticationDatabase admin
  206  mongosh
  207  mongo --port 27017 -u mongoadmin -p Asdf321  --authenticationDatabase admin
  208  mongosh --port 27017 -u mongoadmin -p Asdf321  --authenticationDatabase admin
  209  mongosh --port 27017 -u mongoadmin -p 'Asdf321'  --authenticationDatabase admin
  210  service mongodb restart
  211  service mongo restart
  212  service mongod restart
  213  mongosh --port 27017 -u mongoadmin -p 'Asdf321'  --authenticationDatabase admin
  214  mongosh --port 27017 -u mongoadmin -p 'Asdf123'  --authenticationDatabase admin
  215  mongosh -u mongoadmin -p Asdf321  --authenticationDatabase admin
  216  mongosh -u jenya -p 'DJenya$Mongo@St0ckDB'
  217  mongosh --port 27017 -u mongoadmin -p 'Asdf123'  --authenticationDatabase admin
  218  vim /etc/mongod.conf 
  219  mongo --shell
  220  mongosh --port 27017 -u mongoadmin -p Asdf123  --authenticationDatabase admin
  221  mongosh -u jenya -p 'DJenya$Mongo@St0ckDB'
  222  mongosh --port 27017 -u mongoadmin -p mongoadmin
  223  service mongod restart
  224  mongosh --port 27017 -u mongoadmin -p mongoadmin
  225  mongosh -u jenya -p 'DJenya$Mongo@St0ckDB'
  226  mongosh -u jenya -p 'DJenya$Mongo@St0ckDB' --auth
  227  mongod
  228  mongosh -u jenya -p 'DJenya$Mongo@St0ckDB'
  229  mongosh -u mongo_admin  -p mongo_admin
  230  mongoimport --uri=mongodb://mongo_admin:mongo_admin@127.0.0.1:27017/raiwat_screener?authSource=admin  -c bse_historical_data> --type json --file bse_historical_data.json
  231  cd indian-exchange-data/
  232  cd bse_200824/
  233  ls
  234  mongoimport --uri=mongodb://mongo_admin:mongo_admin@127.0.0.1:27017/raiwat_screener?authSource=admin  -c bse_historical_data> --type json --file bse_historical_data.json
  235  mongoimport --uri=mongodb://mongo_admin:mongo_admin@127.0.0.1:27017/raiwat_screener?authSource=admin  -c bse_historical_data --type json --file bse_historical_data.json
  236  htop
  237  ls
  238  cd ..
  239  ls
  240  crontab -l
  241  pwd
  242  crontab -e
  243  crontab -l
  244  cd /root/indian-exchange-data && python3 bse_data.py
  245  date
  246  crontab -e
  247  crontab -l
  248  df -h
  249  ls
  250  cd bse_200824/
  251  ls
  252  ls -lSh
  253  rm -rf --type
  254  ls
  255  ls -lSh
  256  rm -rf bse_historical_data.json 
  257  df -h
  258  htop
  259  echo curl -H "Content-Type: application/x-www-form-urlencoded" https://test.api.amadeus.com/v1/security/oauth2/token -d "grant_type=client_credentials&client_id=HLG5EBhonMdGZEjvADeOp86KMNlaMHPG&client_secret=qnJw2dkLolpn0XYa" | grep access_token | sed 's/"access_token": "\(.*\)"\,/\1/' | tr -d '[:space:]'
  260  ACCESS_TOKEN=$(curl -H "Content-Type: application/x-www-form-urlencoded" https://test.api.amadeus.com/v1/security/oauth2/token -d "grant_type=client_credentials&client_id=HLG5EBhonMdGZEjvADeOp86KMNlaMHPG&client_secret=qnJw2dkLolpn0XYa" | grep access_token | sed 's/"access_token": "\(.*\)"\,/\1/' | tr -d '[:space:]')
  261  curl -X GET "https://test.api.amadeus.com/v2/reference-data/urls/checkin-links?airlineCode=BA" -H "Authorization: Bearer $ACCESS_TOKEN" -k
  262  echo ACCESS_TOKEN;
  263  curl -v "https://test.api.amadeus.com/v1/security/oauth2/token"
  264  curl -v -H "Content-Type: application/x-www-form-urlencoded" https://test.api.amadeus.com/v1/security/oauth2/token -d "grant_type=client_credentials&client_id=HLG5EBhonMdGZEjvADeOp86KMNlaMHPG&client_secret=qnJw2dkLolpn0XYa" | grep access_token | sed 's/"access_token": "\(.*\)"\,/\1/' | tr -d '[:space:]'
  265  curl -v  "Content-Type: application/x-www-form-urlencoded" https://test.api.amadeus.com/v1/security/oauth2/token -d "grant_type=client_credentials&client_id=HLG5EBhonMdGZEjvADeOp86KMNlaMHPG&client_secret=qnJw2dkLolpn0XYa" | grep access_token | sed 's/"access_token": "\(.*\)"\,/\1/' | tr -d '[:space:]'
  266  ls
  267  curl "Content-Type: application/x-www-form-urlencoded" https://test.api.amadeus.com/v1/security/oauth2/token -d "grant_type=client_credentials&client_id=HLG5EBhonMdGZEjvADeOp86KMNlaMHPG&client_secret=qnJw2dkLolpn0XYa" | grep access_token | sed 's/"access_token": "\(.*\)"\,/\1/' | tr -d '[:space:]'
  268  ls
  269  curl "https://test.api.amadeus.com/v1/security/oauth2/token" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=client_credentials&client_id=HLG5EBhonMdGZEjvADeOp86KMNlaMHPG&client_secret=qnJw2dkLolpn0XYa"
  270  curl -X 'GET' 'https://test.api.amadeus.com/v1/reference-data/locations?subType=AIRPORT&keyword=MUC&page%5Blimit%5D=10&page%5Boffset%5D=0&sort=analytics.travelers.score&view=FULL' -H 'accept: application/vnd.amadeus+json' -H 'Authorization: Bearer 8MDpiDqbeVwf817Y9Lk5jCEiDGQq'
  271  curl "https://test.api.amadeus.com/v1/security/oauth2/token" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=client_credentials&client_id=HLG5EBhonMdGZEjvADeOp86KMNlaMHPG&client_secret=qnJw2dkLolpn0XYa"
  272  curl -X 'GET' 'https://test.api.amadeus.com/v1/reference-data/locations?subType=AIRPORT&keyword=MUC&page%5Blimit%5D=10&page%5Boffset%5D=0&sort=analytics.travelers.score&view=FULL' -H 'accept: application/vnd.amadeus+json' -H 'Authorization: Bearer dRXxjXU4jS3lfqtW1B5k33ZEGZGT'
  273  curl "Content-Type: application/x-www-form-urlencoded" https://test.api.amadeus.com/v1/security/oauth2/token -d "grant_type=client_credentials&client_id=HLG5EBhonMdGZEjvADeOp86KMNlaMHPG&client_secret=qnJw2dkLolpn0XYa" | grep access_token | sed 's/"access_token": "\(.*\)"\,/\1/' | tr -d '[:space:]'
  274  curl "https://test.api.amadeus.com/v1/security/oauth2/token" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=client_credentials&client_id=HLG5EBhonMdGZEjvADeOp86KMNlaMHPG&client_secret=qnJw2dkLolpn0XYa"
  275  curl 'https://test.api.amadeus.com/v1/shopping/flight-destinations?origin=PAR&maxPrice=200' -H 'Authorization: Bearer DeqAsshXAAG1i6jhzyX38y9NiyvE'
  276  curl 'https://test.api.amadeus.com/v1/shopping/flight-destinations?origin=PAR&maxPrice=200' -H 'Authorization: Bearer DeqAsshXAAG1i6jhzyX38y9NiyvE' -H "Content-Type: application/x-www-form-urlencoded" 
  277  curl 'https://test.api.amadeus.com/v1/shopping/flight-destinations?origin=PAR&maxPrice=200' -H 'Authorization: Bearer DeqAsshXAAG1i6jhzyX38y9NiyvE' -H "Accept: application/json,application/vnd.amadeus+json"
  278  curl 'https://test.api.amadeus.com/v1/shopping/flight-destinations?origin=PAR&maxPrice=200' -H 'Authorization: Bearer DeqAsshXAAG1i6jhzyX38y9NiyvE' -H "Content-Type: application/json,application/vnd.amadeus+json"
  279  df -h
  280  service mongod restart
  281  service mongod restart
  282  service mongod status
  283  service mongod stop
  284  service mongod start
  285  service mongod status
  286  htop
  287  cd /var/log/mongodb/
  288  ls
  289  tail -f mongod.log 
  290  service mongod stop
  291  tail -f mongod.log 
  292  service mongod start
  293  tail -f mongod.log 
  294  dae
  295  date
  296  find / -name mongodb-27017.sock
  297  rm -rf /tmp/mongodb-27017.sock
  298  systemctl start mongod
  299  service mongod status
  300  crontab -l
  301  cd /root/indian-exchange-data && python3 bse_data.py
  302  ls
  303  cd indian-exchange-data/
  304  ls
  305  python3 nse_data.py 
  306  crontab -l
  307  l
  308  cd /root/
  309  ls
  310  python indian-exchange-data/
  311  cd /root/indian-exchange-data
  312  python3 bse_data.py
  313  service mongod status
  314  service mongod restart
  315  apt list --upgradable
  316  apt upgrade
  317  vim /etc/ssh/sshd_config
  318  service sshd restart
  319  service ssh restart
  320  vim /etc/ssh/sshd_config
  321  service ssh restart
  322  ufw status
  323  service fail2ban status
  324  service firewalld status
  325  vim /etc/ssh/sshd_config
  326  cd /etc/ssh/sshd_config.d/
  327  ls
  328  cd ..
  329  ls
  330  vim sshd_config
  331  service ssh restart
  332  vim sshd_config
  333  service ssh restart
  334  systemctl restart sshd
  335  systemctl restart ssh
  336  cat /etc/issue
  337  netstat -tulpn | grep ssh
  338  apt install net-tools
  339  netstat -tulpn | grep ssh
  340  vim sshd_config
  341  service ssh restart
  342  systemctl restart ssh.services
  343  systemctl restart ssh
  344  vim /etc/systemd/system/ssh.socket.d/override.conf
  345  vim /etc/systemd/system/ssh.service.requires/ssh.socket 
  346  vim sshd_config
  347  systemctl restart ssh.socket
  348  systemctl daemon-reload
  349  vim /etc/systemd/system/ssh.service.requires/ssh.socket 
  350  systemctl daemon-reload
  351  systemctl restart ssh.socket
  352  systemctl edit ssh.socket
  353  systemctl restart ssh.socket
  354  systemctl daemon-reload
  355  crontab -L
  356  crontab -l
  357  cd /root/indian-exchange-data
  358  vim bse_data.py 
  359  cleawr
  360  clear
  361  ls
  362  cat bse_data_historic_2309.py
  363  clear
  364  cd ../..
  365  ls
  366  cd ~/
  367  ls
  368  cls
  369  clear
  370  cd indian-exchange-data/
  371  ls
  372  python3 bse_data_historic_2309.py
  373  screen
  374  screen -r -d
  375  screen -r -l
  376  clear
  377  screen -r -l
  378  ls
  379  cd indian-exchange-data/
  380  ls
  381  cat bse_data_historic_2309.py 
  382  screen -r -l
  383  cd indian-exchange-data/
  384  cat bse_data_historic_2309.py 
  385  vim bse_data_historic_2309.py 
  386  cls
  387  clear
  388  cd ..
  389  wget https://git.io/wireguard -O wireguard-install.sh && bash wireguard-install.sh
  390  cat /root/client.conf
  391  ifconfig 
  392  ifconfig 
  393  df -h
  394  cd /var/log/
  395  ls
  396  df 0h
  397  df -h
  398  du -sh
  399  ls -lSh
  400  cd mongodb/
  401  ls
  402  ls l-Sh
  403  ls -lSh
  404  tail -f mongod.log 
  405  ls -lSh
  406  echo " " > /var/log/mongodb/mongod.log 
  407  df -h
  408  cd 
  409  du -sh
  410  cd /var/log/
  411  du -sh
  412  ls -lSh
  413  cd journal 
  414  du -sh
  415  ls -lSh
  416  rm -rf a988831f599447b69f729a00c1395859/
  417  df -h
  418  screens -r -l 
  419  screen -r -l 
  420  clear
  421  ls 
  422  cd indian-exchange-data/
  423  ls
  424  vim bse_data_historic_2309.py 
  425  screen -r -l 
  426  clear
  427  ls
  428  cd indian-exchange-data/
  429  cd ..
  430  screen -r -l
  431  clear
  432  ls
  433  clear
  434  screen -r -l
  435  clear
  436  screen -r -l
  437  ls /
  438  ifconfig 
  439  ping rayvat.com
  440  screen -r -l
  441  screen -r -l\
  442  screen -r -l
  443  sudo su
  444  screen -r -l
  445  ls
  446  cls
  447  cleasr
  448  clear
  449  screen -r -l
  450  cls
  451  clear
  452  screen -r -l
  453  clear
  454  screen -r -l
  455  exit
  456  sudo us
  457  sudo su
  458  exit
  459  ls
  460  sudo apt update && sudo apt upgrade
  461  cd trade_iq/
  462  ls
  463  vim tradeiq_api.py 
  464  vim main.py
  465  vim models.py 
  466  vim orders.py 
  467  vim portfolioObj.py 
  468  sudo a2enmod proxy
  469  cd trade_iq/
  470  ls
  471  source venv/bin/a
  472  source venv/bin/activate
  473  sudo a2enmod proxy
  474  sudo ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled/
  475  cd ..
  476  sudo ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled/
  477  cd /etc/
  478  ;s
  479  ls
  480  cd apache2/
  481  ls
  482  cd ../..
  483  cd /etc/systemd/system/
  484  ld
  485  ls
  486  fastapi 
  487  pip install "fastapi[standard]"
  488  ls
  489  vim fastapi.service
  490  ls
  491  rm fastapi.service 
  492  ls
  493  clera
  494  clear
  495  cd ../..
  496  cd ..
  497  clear
  498  exit
  499  ls
  500  cd trade_iq/
  501  ls
  502  python3 -m venv .venv
  503  python -m venv .venv
  504  ls
  505  clear
  506  source .venv/bin/
  507  cd .venv/bin/
  508  ls
  509  cd ../..
  510  clear
  511  python3 --version
  512  sudo apt install python3-venv
  513  Hpython3 -m venv venv
  514  python3 -m venv venv
  515  ls
  516  source venv/bin/activate
  517  clear
  518  ls
  519  pip3 install fastapi
  520  pip3 install uvicorn
  521  ls
  522  ifconfig
  523  uvicorn tradeiq_api:app --host 172.105.59.175 --port 5555
  524  ls
  525  pip3 install -r requirements.txt 
  526  rm venv
  527  ls
  528  rm venv
  529  df -h
  530  clear
  531  python3 -m venv venv
  532  ls
  533  pip install --upgrade kiteconnect
  534  pip install -U pip setuptools
  535  apt-get install libffi-dev python-dev python3-dev
  536  clear
  537  pip install fastapi
  538  pip install uvicorn
  539  ls
  540  ifconfig
  541  uvicorn tradeiq_api:app --host 172.105.59.175 --port 5555
  542  pip install pymongo
  543  uvicorn tradeiq_api:app --host 172.105.59.175 --port 5555
  544  pip install yfinance
  545  uvicorn tradeiq_api:app --host 172.105.59.175 --port 5555
  546  pip install motor
  547  pip install pytest
  548  pip install responses>=0.12.1
  549  pip install responses
  550  pip install pytest-cov
  551  pip install flake8
  552  pip install mock
  553  pip install urllib3
  554  uvicorn tradeiq_api:app --host 172.105.59.175 --port 5555
  555  screen -r -l
  556  uvicorn tradeiq_api:app --host 172.105.59.175 --port 5555
  557  cd trade_iq/
  558  uvicorn tradeiq_api:app --host 0.0.0.0 --port 5555
  559  source venv/bin/activate
  560  uvicorn tradeiq_api:app --host 0.0.0.0 --port 5555
  561  :wq
  562  uvicorn tradeiq_api:app --host 0.0.0.0 --port 5555 --reload
  563  ls
  564  cd ..
  565  ls
  566  cd /var/
  567  ls
  568  cd trade_iq/
  569  vim tradeiq_api.py 
  570  source venv/bin/activate
  571  uvicorn tradeiq_api:app --host 172.105.59.175 --port 5555
  572  vim tradeiq_api.py 
  573  uvicorn tradeiq_api:app --host 172.105.59.175 --port 5555
  574  cd /var/www/html/
  575  ls
  576  mkdir trade_iq
  577  ls
  578  mv index.html trade_iq/
  579  ls
  580  cd trade_iq/
  581  ls
  582  service apache2 restart
  583  /var/log/apache2/error.log
  584  cat /var/log/apache2/error.log
  585  service apache2 start
  586  cd /var/www/html
  587  ls
  588  cd /etc/
  589  ls
  590  df -h
  591  cd /
  592  ls
  593  df -h
  594  free -h
  595  sudo apt update
  596  sudo apt install apache2
  597  sudo ufw app list
  598  sudo ufw allow 'Apache'
  599  sudo ufw status
  600  sudo systemctl status apache2
  601  sudo ufw status
  602  sudo ufw enable
  603  sudo vim /etc/default/ufw
  604  sudo ufw default deny incoming
  605  sudo ufw default allow outgoing
  606  sudo ufw app list
  607  sudo ufw allow 22
  608  sudo ufw allow 2022
  609  sudo ufw app list
  610  hostname -I
  611  curl -4 icanhazip.com
  612  sudo mkdir /var/www/trade_iq
  613  sudo chown -R $USER:$USER /var/www/trade_iq
  614  sudo chmod -R 755 /var/www/trade_iq
  615  sudo nano /var/www/trade_iq/index.html
  616  sudo vim  /var/www/trade_iq/index.html
  617  sudo ufw default allow incoming
  618  sudo vim  /etc/apache2/sites-available/trade_iq.conf
  619  sudo vim  /etc/apache2/sites-available/
  620  cd  /etc/apache2/sites-available/
  621  ls
  622  cat trade_iq.conf 
  623  mv trade_iq.conf tradeiq.rayvat.com.conf
  624  ls
  625  cat tradeiq.rayvat.com.conf 
  626  ls
  627  sudo a2ensite tradeiq.rayvat.com.conf 
  628  systemctl restart apache2
  629  journalctl -xeu apache2.service
  630  sudo systemctl restart apache2
  631  systemctl restart apache2
  632  cat tradeiq.rayvat.com.conf 
  633  vim tradeiq.rayvat.com.conf 
  634  sudo a2ensite tradeiq.rayvat.com.conf 
  635  sudo a2dissite tradeiq.rayvat.com.conf 
  636  sudo a2ensite tradeiq.rayvat.com.conf 
  637  systemctl restart apache2
  638  tail -f /var/log/apache2/error.log
  639  vim tradeiq.rayvat.com.conf 
  640  cp tradeiq.rayvat.com.conf_new tradeiq.rayvat.com.conf 
  641  cp tradeiq.rayvat.com.conf tradeiq.rayvat.com.conf_new 
  642  ls
  643  vim tradeiq.rayvat.com.conf
  644  sudo a2ensite tradeiq.rayvat.com.conf 
  645  sudo a2dissite tradeiq.rayvat.com.conf 
  646  sudo a2ensite tradeiq.rayvat.com.conf 
  647  systemctl restart apache2
  648  curl -4 icanhazip.com
  649  cd trade_iq/
  650  source
  651  source venv/bin/activate
  652  pip freeze > req.txt
  653  cat req.txt 
  654  df -h
  655  clear
  656  ls
  657  pip install fastapi
  658  cd /var/www/html/
  659  ls
  660  cd trade_iq/
  661  ls
  662  echo "hiiiii" index.html 
  663  cat index.html 
  664  ping www.tradeiq.rayvat.com
  665  service apache2 status
  666  ls
  667  cat index.html 
  668  sudo apt install certbot python3-certbot-apache
  669  certbot 
  670  cd /
  671  cd /etc/apache2/sites-available/
  672  ls
  673  cat tradeiq.rayvat.com.conf
  674  mv tradeiq.rayvat.com.conf tradeiqoldfile.conf
  675  ls
  676  ls
  677  cd trade_iq/
  678  ls
  679  vim tradeiq_api.py 
  680  source venv/bin/activate
  681  uvicorn tradeiq_api:app --host tradeiq.rayvat.com
  682  uvicorn tradeiq_api.py 
  683  uvicorn tradeiq_api:app  --host 0.0.0.0 --port 8000
  684  ifconfig
  685  uvicorn tradeiq_api:app  --host 0.0.0.0 --port 8000
  686  fastapi run tradeiq_api.py 
  687  uvicorn tradeiq_api:app  --host 0.0.0.0 --port 8000
  688  pip install "uvicorn[standard]"
  689  fastapi run tradeiq_api.py 
  690  ls
  691  cd zerodha
  692  ls
  693  vim __
  694  ls
  695  vim __init__.py 
  696  cd ..
  697  fastapi run main.py 
  698  vim base.py
  699  ls
  700  rm base.py 
  701  ls
  702  clear
  703  ls
  704  cd /var/www/trade_iq/
  705  ls
  706  rm index.html 
  707  ls
  708  vim /etc/apache2/sites-available/tradeiq.rayvat.com.conf
  709  systemctl restart apache2.service
  710  service apache2 restart 
  711  vim /etc/apache2/sites-available/tradeiq.rayvat.com.conf
  712  service apache2 restart 
  713  journalctl -xeu apache2.service
  714  vim /etc/apache2/sites-available/tradeiq.rayvat.com.conf
  715  # On Debian/Ubuntu
  716  sudo apt install libapache2-mod-proxy-html
  717  sudo a2enmod proxy
  718  sudo a2enmod proxy_http
  719  vim /etc/apache2/sites-available/tradeiq.rayvat.com.conf
  720  service apache2 restart 
  721  sudo a2ensite /etc/apache2/sites-available/tradeiq.rayvat.com.conf
  722  cd /etc/apache2/sites-available/
  723  ls
  724  a2ensite tradeiq.rayvat.com.conf
  725  a2dissite tradeiq.rayvat.com.conf
  726  a2ensite tradeiq.rayvat.com.conf
  727  systemctl reload apache2
  728  systemctl status apache2
  729  vim tradeiq.rayvat.com.conf
  730  systemctl status apache2
  731  systemctl reload apache2
  732  systemctl start apache2
  733  journalctl -xeu apache2.service
  734  vim tradeiq.rayvat.com.conf
  735  systemctl start apache2
  736  systemctl reload apache2
  737  sudo apt install nodejs
  738  sudo npm install pm2@latest -g
  739  systemctl restart getty@tty1.service
  740  systemctl restart serial-getty@ttyS0.service
  741  systemctl restart systemd-logind.service
  742  systemctl restart unattended-upgrades.service
  743  sudo apt install nodejs
  744  sudo npm install pm2@latest -g
  745  sudo apt install nodejs
  746  sudo apt uninstall nodejs
  747  sudo apt install nodejs
  748  uninstall nodejs
  749  dpkg --list
  750  sudo apt-get remove nodejs
  751  sudo apt-get purege nodejs
  752  sudo apt-get purge nodejs
  753  sudo apt-get autoremove
  754  sudo apt-get clean
  755  sudo apt install nodejs
  756  /etc/needrestart/restart.d/dbus.service
  757  cat /etc/apache2/sites-available/tradeiqoldfile.conf 
  758  sudo apt install nodejs
  759  sudo npm install pm2@latest -g
  760  npm install pm2@latest -g
  761  apt install npm
  762  cat /etc/apache2/sites-available/tradeiqoldfile.conf 
  763  /etc/needrestart/restart.d/dbus.service
  764  cd /var/www/html/
  765  ls
  766  cd trade_iq/
  767  ls
  768  rm index.html 
  769  ls
  770  cd ..
  771  ls
  772  cd ..
  773  ls
  774  cd trade_iq/
  775  ls
  776  mv * ../html/trade_iq/
  777  ls
  778  cd ../html/trade_iq/
  779  ls
  780  sudo apachectl configtest
  781  pm2 log
  782  sudo certbot delete
  783  emacs /etc/apache2/sites-enabled/tradeiq.rayvat.com-le-ssl.conf
  784  sudo certbot certificates
  785  service apache2 restart
  786  sudo apachectl configtest
  787  rm /etc/apache2/sites-enabled/tradeiq.rayvat.com-le-ssl.conf
  788  sudo apachectl configtest
  789  service apache2 restart
  790  certbot
  791  pm2 log
  792  sudo certbot certificates
  793  sudo certbot delete
  794  sudo certbot certificates
  795  rm /etc/apache2/sites-enabled/tradeiq.rayvat.com-le-ssl.conf
  796  vim  /etc/apache2/sites-enabled/tradeiq.rayvat.com.conf 
  797  cat  /etc/apache2/sites-enabled/tradeiq.rayvat.com.conf 
  798  a2ensite tradeiq.rayvat.com.conf
  799  a2dissite tradeiq.rayvat.com.conf
  800  a2ensite tradeiq.rayvat.com.conf
  801  ls
  802  certbot
  803  pm2 log
  804  service apache2 restart
  805  service apache2 configtest
  806  ls
  807  cd ..
  808  ls
  809  cd trade_iq
  810  ls
  811  unzip final.zip 
  812  apt install unzip
  813  unzip final.zip 
  814  pm start app.js 
  815  pm2 start app.js 
  816  pm2 kill
  817  pm2 start app.js 
  818  ls
  819  npm i
  820  ls
  821  node app.js 
  822  pm2 restart app.js 
  823  ls
  824  touch index.php 
  825  vim index.php 
  826  node -v
  827  rm index.php 
  828  ls
  829  pm2 log
  830  vim app.js 
  831  pm2 restart all
  832  pm2 log
  833  ls
  834  a2dissite /etc/apache2/sites-available/tradeiq.rayvat.com
  835  a2dissite /etc/apache2/site-available/tradeiq.rayvat.com
  836  cd  /etc/apache2/site-available/tradeiq.rayvat.com
  837  cd  /etc/apache2/site-available
  838  cd /etc/apache2/sites-available/
  839  ls
  840  a2dissite tradeiq.rayvat.com.conf 
  841  '




  842  a2ensite tradeiq.rayvat.com.conf 
  843  ls
  844  cat tradeiq.rayvat.com-le-ssl.conf 
  845  cd /
  846  cd /var/www/html/trade_iq
  847  ls
  848  sudo apache2ctl configtest
  849  sudo chown -R www-data:www-data /var/www/html/trade_iq
  850  sudo chmod -R 755 /var/www/html/trade_iq
  851  sudo a2enmod ssl
  852  sudo a2enmod rewrite
  853  sudo a2enmod headers
  854  sudo systemctl restart apache2
  855  sudo tail -f /var/log/apache2/error.log
  856  sudo ufw allow 443/tcp
  857  sudo ufw reload
  858  sudo systemctl restart apache2
  859  cat 
  860  cat /etc/apache2/sites-available/tradeiq.rayvat.com-le-ssl.conf 
  861  rm  /etc/apache2/sites-available/tradeiq.rayvat.com-le-ssl.conf 
  862  certbot certificate delete
  863  sudo certbot delete
  864  certbot 
  865  cat /etc/apache2/sites-available/tradeiq.rayvat.com-le-ssl.conf 
  866  service apache2 restart
  867  pm2 log
  868  pm2 kill
  869  ls
  870  cd ..
  871  ls
  872  cd trade_iq
  873  ls
  874  history > serverhistory.txt
