git cheat sheet
git init
for making a git repository
git add
for tracking new files and for staging files
git status
for checking status
git log
for commit history
//1D array | |
void allocateOneD(int*& p, int size) | |
{ | |
p = new int* [size]; | |
} | |
void deallocateOneD(int* p, int size) | |
{ | |
delete[] p; | |
} |
git cheat sheet
git init
for making a git repository
git add
for tracking new files and for staging files
git status
for checking status
git log
for commit history
To install dropbox on Ubuntu through CLI open the command prompt or terminal, for this you can press,
Ctrl+Alt+t
Next type the following command on terminal:
sudo apt install nautilus-dropbox
#!/bin/bash | |
clear | |
setIP(){ | |
ip addr show | |
sudo gedit /etc/network/interfaces #edit dns maskgateway and ip here, (ipconfig functionality) | |
sudo netplan try #configure IP | |
sudo netplan apply | |
ip a #check if ip has changed or not | |
} |
#!/bin/bash | |
clear | |
createUser(){ | |
sudo adduser newUserName --force-badname | |
} | |
giveAdminRights(){ | |
sudo usermod -aG sudo newUserName |