Skip to content

Instantly share code, notes, and snippets.

View Vaneeza-7's full-sized avatar
🔻
Ideas are bulletproof

Vaneeza-7

🔻
Ideas are bulletproof
View GitHub Profile
@Vaneeza-7
Vaneeza-7 / NewSudoUser.sh
Created February 17, 2025 21:38
Create new sudo user on Ubuntu
#!/bin/bash
clear
createUser(){
sudo adduser newUserName --force-badname
}
giveAdminRights(){
sudo usermod -aG sudo newUserName
@Vaneeza-7
Vaneeza-7 / IPaddress_Configuration_Ubuntu.sh
Last active February 17, 2025 21:38
Configure IP address on Ubuntu
#!/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
}
@Vaneeza-7
Vaneeza-7 / installDropbox.md
Last active July 23, 2023 15:23
Installing DropBox on Ubuntu

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
@Vaneeza-7
Vaneeza-7 / Git.md
Created March 11, 2023 23:05
Git Cheat Sheet

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

@Vaneeza-7
Vaneeza-7 / Dynamic-Arrays.cpp
Created September 17, 2022 10:45
Dynamically Allocated Arrays
//1D array
void allocateOneD(int*& p, int size)
{
p = new int* [size];
}
void deallocateOneD(int* p, int size)
{
delete[] p;
}