Install both packages:
sudo apt install virtualenvwrapper
sudo apt install virtualenv
(recomended if have multiple apps running on different enviroments)
$ pip3 install virtualenv
| git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
| } | |
| export PS1="${PS1:0:${#PS1}-3}\$(git_branch)\$ " |
The Docker daemon binds to a Unix socket instead of a TCP port. By default that Unix socket is owned by the user root and other users can only access it using sudo. The Docker daemon always runs as the root user.
If you don’t want to preface the docker command with sudo, create a Unix group called docker and add users to it. When the Docker daemon starts, it creates a Unix socket accessible by members of the docker group.
Warning: The
dockergroup grants privileges equivalent to therootuser. For details on how this impacts security in your system, see Docker Daemon Attack Surface.
Note: To run Docker without root privileges, see Run the Docker daemon as a non-root user (Rootless mode) .
| /* Example of how to obtain the public key through | |
| * a private key using a keystore | |
| */ | |
| /* Requires needed. You have to install the following | |
| * packages | |
| * npm install [email protected] [email protected] | |
| */ | |
| const Wallet = require('ethereumjs-wallet') | |
| const keythereum = require('keythereum') |
A lot of GitHub projects need to have pretty math formulas in READMEs, wikis or other markdown pages. The desired approach would be to just write inline LaTeX-style formulas like this:
$e^{i \pi} = -1$| #!/usr/bin/env python3 | |
| """ | |
| You will need to install the pycryptodome package. | |
| You can do it with: | |
| pip3 install pycryptodome | |
| Note: To install pip3, run the following command | |
| sudo apt install python3-pip | |
| """ |
| /* Example of how to obtain the public key that | |
| * signed the Tx | |
| */ | |
| /* Requires needed. You have to install the following | |
| * packages | |
| * npm install ethereumjs-util ethereumjs-tx | |
| */ | |
| const ethereumTx = require('ethereumjs-tx').Transaction; | |
| const eth_util = require('ethereumjs-util') |
| // Usage: node create_eth_keystore.js | |
| // Node v10+ | |
| // Dependencies | |
| // npm i [email protected] | |
| const Wallet = require('ethereumjs-wallet') | |
| const accountPassword = "" // Put here the password you want for your keystore | |
| const key = Wallet.generate(accountPassword) | |
| const privateKey = key._privKey |
| #!/usr/bin/env python3 | |
| from http.server import HTTPServer, BaseHTTPRequestHandler | |
| # Open netcat on port 6969 | |
| # nc -lvnp 6969 | |
| REDIRECT_URL = f"http://localhost:6969" | |
| LISTENER_PORT = 8080 | |
| class FakeRedirect(BaseHTTPRequestHandler): |