Skip to content

Commit

Permalink
Fix: format issues + improved notes on virtual environments
Browse files Browse the repository at this point in the history
  • Loading branch information
lala committed Mar 23, 2024
1 parent 270a87e commit 5b0669c
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
40 changes: 40 additions & 0 deletions docs/environments.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,41 @@
---
title: Virtual environments
author: amandaguglieri
draft: false
TableOfContents: true
tags:
- database
- relational
- database
- SQL
---

# Virtual environments


## mkvirtualenv

### Installation

```
# Make sure you have pip installed.
sudo apt-get install python3-pip
# Installing virtualenvwrapper 
sudo pip3 install virtualenvwrapper
# Open bashrc by –
sudo gedit ~/.bashrc
# After opening it, add the following  lines to it :
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel
source /usr/local/bin/virtualenvwrapper.sh
```

### Basic usage

```bash
# Creating a virtual environment with mkvirtualenv
mkvirtualenv nameOfEnvironment
Expand All @@ -13,4 +48,9 @@ workon nameOfEnvironment

# Close current environment
deactivate


# To work on another version of python:
mkvirtualenv -p python3.x venv_name
# You will see something like this: (venv_name)
```
2 changes: 1 addition & 1 deletion docs/sqlite.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ a' or '1'='1' union select flag,2,value,4,5 from secret_flag --

Source: [https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/SQL%20Injection/SQLite%20Injection.md](https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/SQL%20Injection/SQLite%20Injection.md)

```sql
```sql
# SQLite comments
--
/**/
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ nav:
- shodan: shodan.md
- sirepRAT: sireprat.md
- sql injection (manual): sqli-manual-attack.md
- sqlite: sqlite.md
- sqlmap: sqlmap.md
- sqlplus: sqlplus.md
- sqsh: sqsh.md
Expand Down

0 comments on commit 5b0669c

Please sign in to comment.