Author Archives: bhuvan

Recovering data and fixing the drive from unclean unmount of disk from windows

Here’s the full procedure from start to finish. Replace /dev/sdc with your disk if it shows up under a different name, which can happen after replugging. 1. Identify and check the disk In the attribute table, check that these raw values are 0: Reallocated_Sector_Ct (5), Reported_Uncorrect (187), Current_Pending_Sector (197), Offline_Uncorrectable (198) and UDMA_CRC_Error_Count (199). If… Read More: Recovering data and fixing the drive from unclean unmount of… »

Configuring rclone to access Hetzner Object Stroage

How to Configure Rclone with Hetzner Object Storage for Automated Backups and Restores Object storage is an excellent choice for storing backups because it is inexpensive, scalable, and highly durable. This guide explains how to configure Rclone to connect to Hetzner Object Storage so you can manually upload/download backups or automate the process using scripts… Read More: Configuring rclone to access Hetzner Object Stroage »

Run jupyter lab as a server

Run this command and access jupyter lab from ip in the network and if hosted it can be accessed over the internet. jupyter lab –no-browser –ip=0.0.0.0 –port=8888 After starting jupyter check the token that can be used as password or token to enter.

Start pm2 process

Example of how to start pm2 instance for development. pm2 start –name “pari-dev” “yarn run develop”

Generate random key

A lot of applications these days need some sort of master key to enhance security. Few simple methods to generate such a key uuidgen method Run this command to generate a random 32 characters long key. Most of the OS’s should have this command if not install it. More options and methods using this command… Read More: Generate random key »

Experiments with AWK

These simple combination of commands are quite powerful. I am listing the commands that I used on some of the projects for later reference.