Featured Article

bits of code

Move content of the current directory to a sub-directory excluding the sub-directory How to chroot properly. What are the devices and directories to mount To create user in kobotoolbox If you have access to the hosted server: (Additionally you can assign permissions to those users as you create them through the shell — perhaps listing… Read More »

How to boot system with grub prompt alone

When you see Grub command prompt at the boot time instead of grub menu I think that is when these commands will come handy to boot into the underlying OS. I tested it with ubuntu and pretty sure it should work with any linux distro. Identify your boot partition: Use the ls command to list… Read More »

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 a key for use as salt or any other form

While installing or configuring setups we may need to generate a 32 character long random keys may that be for salt or used for flask sessions or while setting up ELK stack and you need to create this key. These 2 commands will generate the desired key. If needed modify or alter the random function… Read More »

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.

Update wordpress siteurl

Use this command to update site url from mysql prompt. Make sure you have the necessary permissions and access. More details can be found in the link below. Link: https://www.hostinger.in/tutorials/wordpress/how-to-change-wordpress-urls-in-mysql-database-using-phpmyadmin