Skip to content

Instantly share code, notes, and snippets.

View asadlive84's full-sized avatar

Asaduzzaman Sohel asadlive84

View GitHub Profile

Create the namespaces

ip netns add ns1 ip netns add ns2

Create the veth pair

ip link add veth0 type veth peer name veth1

Move one end of each veth pair to each namespace

ip link set veth0 netns ns1 ip link set veth1 netns ns2

@asadlive84
asadlive84 / docker.md
Last active October 21, 2023 18:31
Docker learning commands

Dokcer most useful commands

remove commands

sudo docker system prune -f

docker volume rm $(docker volume ls -q) -f

docker network rm $(docker network ls -q) -f

Pycharm jetbrains

code search

ctrl + f

code search global

ctrl + shift + f

code format

@asadlive84
asadlive84 / Pycarm.txt
Created June 15, 2020 19:44
Pycharm Shortcut
Ctrl + Shift + A
sudo docker build .
sudo docker-compose up
sudo docker-compose down
sudo docker-compose -d --build
sudo docker-compose exec web python manage.py migrate
sudo docker exec web [cmd]
FROM python:3.7-slim
@asadlive84
asadlive84 / turnOffCodeSuggestion.json
Last active October 28, 2019 05:52
How to disable autocompletion and intellisense in Microsoft Visual Studio Code
{
//https://ourcodeworld.com/articles/read/505/how-to-disable-autocompletion-and-intellisense-in-microsoft-visual-studio-code
// OPTIONAL WORD WRAPPING
// Controls if lines should wrap. The lines will wrap at min(editor.wrappingColumn, viewportWidthInColumns).
"editor.wordWrap": "off",
// Controls the indentation of wrapped lines. Can be one of 'none', 'same' or 'indent'.
"editor.wrappingIndent": "none",
// TURN OFF AUTOCOMPLETION
<div class="container">
<div class="card">
<div class="card-header">
Invoice
<strong>01/01/01/2018</strong>
<span class="float-right"> <strong>Status:</strong> Pending</span>
</div>
<div class="card-body">
<div class="row mb-4">
@asadlive84
asadlive84 / flask.py
Last active October 1, 2019 14:12
Flask: python socket.error: [Errno 98] Address already in use [closed]
sudo lsof -t -i tcp:8000 | xargs kill -9
https://stackoverflow.com/questions/17780291/python-socket-error-errno-98-address-already-in-use
@asadlive84
asadlive84 / Odoo.txt
Last active January 23, 2021 21:28
odoo Install
2 .sudo apt install git python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less postgresql
3. pip3 install -r requirements.txt
Step By Step Guide to Install Odoo12 with pycharm:
Open the terminal and execute below commands step-by-step: