GitBook: [master] 3 pages modified

This commit is contained in:
CPol 2020-09-20 20:52:26 +00:00 committed by gitbook-bot
parent be33c50490
commit 71dc2c2301
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF
3 changed files with 24 additions and 0 deletions

View File

@ -387,6 +387,7 @@
## MISC
* [Basic Python](misc/basic-python/README.md)
* [venv](misc/basic-python/venv.md)
* [Bypass Python sandboxes](misc/basic-python/bypass-python-sandboxes.md)
* [Magic Methods](misc/basic-python/magic-methods.md)
* [Web Requests](misc/basic-python/web-requests.md)

21
misc/basic-python/venv.md Normal file
View File

@ -0,0 +1,21 @@
# venv
```bash
sudo apt-get install python3-venv
#Now, go to the folder you want to create the virtual environment
python3 -m venv <Dirname>
python3 -m venv pvenv #In this case the folder "pvenv" is going to be crated
source <Dirname>/bin/activate
source pvenv/bin/activate #Activate the environment
#You can now install whatever python library you need
deactivate #To deactivate the virtual environment
```
```bash
The error
error: invalid command 'bdist_wheel'
is fixed running
pip3 install wheel
inside the virtual environment
```

View File

@ -47,6 +47,8 @@ wmic logicaldisk get caption,description,providername
```bash
WMIC /Node:localhost /Namespace:\\root\SecurityCenter2 Path AntiVirusProduct Get displayName /Format:List
sc query windefend
#Delete all rules of Defender (useful for machines without internet access)
"C:\Program Files\Windows Defender\MpCmdRun.exe" -RemoveDefinitions -All
```
### Recycle Bin