Posts

1. Understand Machine/Computer

Image
  1. Understand Machine/Computer What is Machine The computer is machine and machine is something that takes input, process and then give us output.  E.g. Water heater is machine which takes water as input and gives us hot water.  Sugarcane juice machine takes sugarcane and gives us Juice and waste as output.       Computer is also a machine that takes input from user and displays output on screen. But the heart of computer the CPU takes electricity as input and gives us back electricity.  We convert electricity into screen and show output.  Input to computer is given using Keyboard/mouse or other human operatable devices. These device convert human input to electricity and provide it as input to CPU.  Lot of hardware/software take place in between human and CUP.  Hiding the complexities of hardware from the user. Managing between the hardware's resources which include the processors, memory, data storage and I/O devices. Handling "interrupts" generated by the I/O control

MS Sql server on ubuntu

 --> Adding Repo echo Adding Microsoft repositories... sudo curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - repoargs= " $(curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list) " sudo add-apt-repository " ${repoargs} " repoargs= " $(curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list) " sudo add-apt-repository " ${repoargs} " echo Running apt-get update -y... sudo apt-get update -y --> Installing MSSQL Prereq http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.6_amd64.deb dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.6_amd64.deb wget http://ftp.osuosl.org/pub/ubuntu/pool/universe/j/jemalloc/libjemalloc1_3.6.0-11_amd64.deb sudo dpkg -i libjemalloc1_3.6.0-11_amd64.deb --> Install MSSQl sudo apt install mssql-server echo Running mssql-conf setup... sudo MSSQL_SA_PASSWORD="Mlinfotech@321" \ MSSQL_PID=" evaluation" \

Install OPEN VPN

                 mkdir vpninstall     8  cd vpninstall/     9  curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh    10  chmod +x openvpn-install.sh    11  ./openvpn-install.sh     12  sudo ./openvpn-install.sh     13  ls    14  cd    15  ls    16  vim hemant.ovpn     17  sudo apt install nodejs    18  sudo apt install npm    19  npm i -g http-server    20  sudo npm i -g http-server    21  http-server     22  http-server -p 80    23  sudo http-server -p 80    24  sudo ./vpninstall/openvpn-install.sh     25  ls

Esp 32

Check Battery Level program.   https://www.pangodream.es/esp32-getting-battery-charging-level

Postgre setup using docker

docker run -p 8042:80 \     -e 'PGADMIN_DEFAULT_EMAIL=hmdlohar@gmail.com' \     -e 'PGADMIN_DEFAULT_PASSWORD=44544545' \     -d dpage/pgadmin4 Docker componse version: '3.1' services: db: image: postgres restart: always environment: POSTGRES_PASSWORD: example      adminer: image: adminer restart: always ports: - 8023:8080
 React Admin Template.  https://github.com/flatlogic/react-material-admin  https://github.com/uilibrary/matx-react

Video Tools.

 Split video in parts.          mkvmerge -o outputprefix --split 80M ap.mkv  mkvmerge also available as GUI.