/lookup-guide

The purpose of this doc is to act as a quick lookup guide for me for common tasks instead of having to lookup everything on the net.

The purpose of this doc is to act as a quick lookup guide for me for common tasks instead of having to lookup everything on the net.

Go to -

Windows

PS1 String

Edit in ~/.bashrc

# [ <username>@<hostname> <current directory>] $ <commands.....>
PS1='[\e[1;35m\u\e[m@\e[m\e[1;36m\h\e[m \e[1m\W\e[m] \e[1;35m\$\e\m '

Aliases

Edit in ~/.bashrc

alias cls='clear'
alias q='exit'

Grub

Edit in /etc/default/grub

# To make grub remember last choice
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

# Remove bug/debug messages while bootup or shut down
GRUB_CMDLINE_LINUX_DEFAULT='quiet splash loglevel=3'  # loglevel ranges from 0-6, lower loglevel results in a quieter boot

Remember to update grub after editing in the /etc/default/grub file:

In Ubuntu:

sudo update-grub

Python

To create a virtual environment:

py -m venv /path/to/venv/

To activate a virtual environment:

./venv/Scripts/Activate.ps1

To decative simply type deactivate in the shell

Git

Settng up SSH keys

GitHub reference to SSH keys

For authenticity of GitHub error, refer to this