Skip to content

Instantly share code, notes, and snippets.

@foyez
Last active September 22, 2021 15:35
Show Gist options
  • Select an option

  • Save foyez/0c64ec2d097f9698c395ed64e6eb7549 to your computer and use it in GitHub Desktop.

Select an option

Save foyez/0c64ec2d097f9698c395ed64e6eb7549 to your computer and use it in GitHub Desktop.

git

istall git:

sudo apt install git

curl

install curl:

sudo apt install curl

fish shell

install fish: link

sudo apt-add-repository ppa:fish-shell/release-3
sudo apt-get update
sudo apt-get install fish

set fish as default shell: link

chsh -s `which fish`

install oh-my-fish: link

curl -L https://get.oh-my.fish | fish

nodejs

install nodejs: link

# Using Ubuntu
curl -fsSL https://deb.nodesource.com/setup_15.x | sudo -E bash -
sudo apt-get install -y nodejs

update default nodejs: link

install npm:

sudo apt install npm

install yarn: link

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install yarn

install nvm: link

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash

install npm global packages without sudo: link

go

install go: link

wget -c https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local

set go environment:

# ~/.bash_profile

# set the workspace path
export GOPATH=/media/foyez/CAD86EE7D86ED0ED/my-codes/golang

# add the go bin path to be able to execute our programs
export PATH=$PATH:$GOPATH/bin
# ~/.config/fish/config.fish

# set the workspace path
set -x GOPATH /media/foyez/CAD86EE7D86ED0ED/my-codes/golang

# add the go bin path to be able to execute our programs
set -x PATH $PATH /usr/local/go/bin $GOPATH/bin

Remove an os from dual boot

  • first of all, delete the drive from gparted
sudo update-grub
sudo grub-install /dev/sda
reboot

Install Docker & Docker Compose

  • In Kali: link
  • In Debian: link
  • Docker Post Installation Steps: link
  • Install docker compose: link

Remove any program and its files

> sudo apt-get purge [package]
> sudo apt-get autoclean
> sudo apt-get autoremove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment