- Only one time need to initialization
git init
- Add single file or folder or all changes made
| And With good information to COE2k14 | |
| 2) Install : | |
| :~$ sudo apt update && sudo apt install git dkms | |
| :~$ cd Downloads |
| import cv2 | |
| url = "rtsp camera url" | |
| cap = cv2.VideoCapture(url) | |
| fourcc = cv2.VideoWriter_fourcc(*'vp80') | |
| fps = cap.get(cv2.CAP_PROP_FPS) | |
| width, height = int(cap.get(3)), int(cap.get(4)) | |
| print(fps,width, height) |
| #pip install pandas | |
| import json | |
| from datetime import datetime | |
| import pandas as pd | |
| sheet = [ | |
| { | |
| "face": { | |
| "id": "1", |
| docker run --mount type=bind,source="$(pwd)"/build,target=/usr/share/nginx/html -p 8080:80 nginx |
| node_modules | |
| build | |
| npm-debug.log | |
| .env | |
| .DS_Store |
| #pip install mailjet_rest | |
| from mailjet_rest import Client | |
| from os import getenv | |
| from dotenv import load_dotenv, find_dotenv | |
| load_dotenv(find_dotenv()) | |
| api_key = getenv("MAIL_API_KEY") | |
| api_secret = getenv("MAIL_API_SECRET") |
| def is_base64(base_64): | |
| try: | |
| if len(base_64) == 0: | |
| return False | |
| if isinstance(base_64, str): | |
| # If there's any unicode here, an exception will be thrown and the function will return false | |
| sb_bytes = bytes(base_64, 'ascii') | |
| elif isinstance(sb, bytes): | |
| sb_bytes = base_64 |
| from django.conf import settings | |
| from django.core.mail import EmailMessage | |
| from django.template.loader import get_template | |
| class EmailService: | |
| def __init__(self): | |
| self.from_email = settings.EMAIL_HOST | |
| def send_email(self, subject: str, template: str, data=None): |
| version: "3" | |
| services: | |
| server: | |
| container_name: django_app | |
| build: . # from Dockerfile or image name | |
| command: gunicorn core.wsgi:application --bind 0.0.0.0:8001 | |
| # ports: | |
| # - 8000:8000 | |
| network_mode: host |