This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add icons to Metadata function which is in layout file | |
export const metadata: Metadata = { | |
title: "Create Next App", | |
description: "Generated by create next app", | |
icons: { | |
icon: "./favicon.ico", | |
}, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note: I add an example as a pattern here, you just need to change the version number in case you want to have other versions! | |
1- Install NODE: nvm install 16.13.2 | |
2- Make Installed version as default: nvm alias default 16.13.2 | |
3- NPM: npm install [email protected] -g | |
3- YARN: yarn set version 1.22.19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
const message = "This site has beend HACKED please fix your XSS issue!" | |
document.getElementByTagName("h1")[0].innerHTML = message | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is how to upgrade Kali Linux to 2022.1 | |
0- Open Terminal and find out which version of Kali Linux you have using ==> cat /etc/os-release | |
1- The second step is to check the repository file ==> cat /etc/apt/sources.list | |
2- Now upgrade your Kali Linux with ==> sudo apt upgrade | |
3- Now Upgrade fully your Kali Linux using ==> sudo apt full-upgrade -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0- Open vscode | |
1- click on setting symbol and open settings | |
2- search for settings.json file and then open it | |
3- You have to add two commands to json file | |
"git.enabled": true, | |
"git.path": "/usr/bin/git" | |
*Note: You can type which git to find the correct git path! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00- Open Internet Explorer icon and go to https://java.com/en/ | |
01- Select the Free Java Download button, and then select Agree and Start Free Download. If you're prompted for an administrator password or confirmation, type the password or provide confirmation. | |
02- On the notification bar, select Run. If you're prompted for an administrator password or confirmation, type the password or provide confirmation. | |
03- Select Install > Close. | |
NOTE: If you're having problems installing or using Java, look for answers in the Java Help Center. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is how to get rid of white space in javascript string using regular expression | |
let cia = " cia is a lazy programmer " | |
let str = cia.replace(/^\s+|\s+$|\s+(?=\s)/g , "") | |
console.log(str) // Gives: cia is a lazy programmer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1- sudo apt update | |
2- sudo apt install tor torbrowser-launcher -y | |
3- torbrowser-launcher | |
4- Click on connect to connect to Tor | |
Take a look at the documentation ==> https://www.torproject.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1- Open package.json file and add a homepage at the top before name | |
==> "homepage": "https://<USERNAME>.github.io/<PROJECT NAME>", | |
2- install gh-pages using ==> npm i gh-pages | |
3- Add pre-deploy and deploy to scripts field in package.json file ==> | |
"pre-deploy": "npm run build", | |
"deploy": "gh-pages -d build" | |
4- type npm run pre-deploy in terminal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1- Add a new branch in your Project useing ==> git checkout -b gh-pages | |
2- Try to change at least one character of your project's files and save(you need this to be able to push again) | |
3- git add -A | |
4- git commit -am "deployment branch added" | |
5- git push --set-upstream origin gh-pages |
NewerOlder