Skip to content

Instantly share code, notes, and snippets.

View 101t's full-sized avatar
🐍
Simple is better than complex!

Tarek Kalaji 101t

🐍
Simple is better than complex!
View GitHub Profile
@101t
101t / Django Deployment on Ubuntu Server.md with Apache2.md
Last active May 23, 2023 20:12
Quick Start with Django Deployment on Ubuntu

Django Deployment on Ubuntu Server

Step 1:

install and edit django.wsgi.

sudo apt-get install libapache2-mod-wsgi
nano django.wsgi

Inside nano editor write the following codes

@101t
101t / Django installations on Ubuntu.md
Last active December 6, 2023 14:56
Quick Start with Django installations on Ubuntu

Django installations on Ubuntu

Installing Python in system

First step install dependencies.

sudo apt-get install git python-setuptools python-pip python-dev \
&& sudo apt-get install python3-pip python3-dev virtualenv

then install local envirement of Django project.

# -*- coding: utf-8 -*-
"""
Verify the given mail id is valid or not without sending mail. Verifying the email id directly from mail exchange server.
"""
import argparse
import smtplib
import dns.resolver
import re
@101t
101t / Useful command line for Linux.md
Last active August 9, 2024 07:31
Frequently useful commands in Linux

Cleaning *.pyc files in terminal

find . -name "*.pyc" -exec rm -rf {} \;

or use this:

find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf

source: link