Skip to main content

Posts

CR-2032 Batteries- Where are they used

 Batteries, CR2032. What is CR2032 (also written CR-2032)? CR2032 is a non rechargeable 3V lithium battery which is used in many electronic devices. It resembles a coin and hence it is also called a coin cell or coin battery.  A Panasonic CR2032 cell What are it's main applications and lifetime in each cases? 1. Car keyfobs . (Lifetime - Normally works for several years, 3-8 years) 2. Apple Airtag. (Lifetime - 1 to 1.5 years) 3. Temperature and humidity sensors. (Around 1-2 years) 4. Toys.(Will run out very soon 😜) 5. Smart home sensors. 6. Calculators. 7. Remote controls for garages etc.

Linux - How to find all the files that contains a given string

Linux - Find all files that contains a given string. In order to find all the files that contains a given string, we can make use of several commands. One of the simplest option is to use the grep command. grep -R '/path/to/theFiles/' -e 'pattern-to-search' With this execution, grep will go through all the files in the provided location recursively(since we gave -R option) and look for the string-pattern to look for. Then, it will provide a list of files that contains our given string-pattern. 

Viewing visio files using draw.io

 Viewing visio files using draw.io. If you do not have Microsoft visio installed on your windows machine, you still can open and view visio diagram files. We can make use of draw.io . The draw.io web app does not support viewing the visio files. You can download the draw.io windows app from their website. You can visit https://www.drawio.com/ and download the application. Once you install it , you can import a visio file into it like any other diagram/image file. I hope this info is helpful in some situations.

Working with Windows NET services from windows command line

Deleting a windows service  Deleting a windows service from the command line is a two step process.  In the first step, we have to query& stop the service with the actual name of the service. Open the services (services.msc) and identify the name of the service that you want to delete. An example name is shown in the image given below.   Otherwise the service can be queried from the command line.    sc query | find [Service-name-to-be-deleted]    Now, run the below command to stop the service.  sc stop [Service-name-to-be-deleted]   Now , in the second step, delete the service. Execute the below command.  sc delete [Service-name-to-be-deleted]  Done, the service list maybe refreshed only after a system restart. 🚀

Linux commands - Network related

 Linux commands - Network related This write up is a collection of some of the most commonly used linux commands used in the network related work. This is a short note and not a complete reference. 1. ifconfig / ip  This command is used to find the network IP related information of the server. 'ip' is the latest update or the current command to be used on the latest version of the OS. 2. ping destination_host  This is used to ping the destination server. Bacially, it will simply check the connection to the target. You can interrupt the command with 'ctrl+c'. 3. telnet host port  This command is used to connect to a specific port on the destination server. This works better than the ping command as this will attemp to connect to the specified port. You can interrupt the command with 'ctrl+c'. In some cases, when 'crtl+c' is not closing the telnet session, please use 'ctrl+]' and then enter 'close'. 4. nslookup google.com  This is the shor...

Public private key based login to Unix computer

Public private key based login to Unix computer We know that we can login to a Unix system in several ways. One drawback with username password mode is that there will be requirement to update the password frequently. In such cases, we go for the public key based login.  Required software 1. Putty and puttygen Putty can be downloaded from the download page of  https://www.putty.org/ The downloaded zip contains both putty and puttygen. 2. Winscp This is an optional software which gives a window when dealing with ssh, ftp, sftp connections. This can be downloaded from their official site. https://winscp.net/eng/download.php How it works In the public key based login, we will generate a public key and corresponding private key pair. We can optionally protect the private key using a password so that if someone gets your private key, they wont be able to put it into real use [The secret would be needed for loading your private key to the ssh client]. Process Create the publ...

Working with Vi editor in Unix

Working with Vi editor in Unix Vi is a very powerful text editor on Unix. The below resources will help you when dealing with the vi editor in Unix.  This article is intended to work as a basic starting point or something that you can use on a regular basis for the basic needs. In short, this is a vi survival toolkit. Basic operation modes 1. Command mode to execute commands on the file with respect to its content.      Pressing the Esc button will take you to the Command mode. 2. Insert mode to manipulate the text content within the file.      Pressing the "Insert" key will take you to the insert mode. Create or Opening a file vi filename It will create a file if does not exist, otherwise the file will be opened. Adding or editing text content As soon as you open a file in vi, you will be in command mode. To edit the content, press the "Insert" key. This will take you to the Insert mode. Add the content using the keyboard. Exiting the vi editor T...