with Customizable Styles and actions!!
Now Popup Messages as much as you want! Document will be followed!
Pure Javascript Without any Dependencies!
| # COURTSY: https://stackoverflow.com/a/48607794/6419332 | |
| import os | |
| import socket | |
| import multiprocessing | |
| import subprocess | |
| import os | |
| def pinger(job_q, results_q): | |
| DEVNULL = open(os.devnull, 'w') |
| <!doctype html> | |
| <head> | |
| <title>read_more_read_less.html</title> | |
| </head> | |
| <body> | |
| <style> | |
| .testimonial-item blockquote{font-size: small;} | |
| .moretext {display: none;} | |
| .moreless-button{color: #fc5c7d;} | |
| .testimonial-item q{line-height: 1.8em; quotes: '“' '“'} |
| """ | |
| Register at Django Admin `_registry` for all unregistered models in an app. this file replaces `admin.py` file in model | |
| """ | |
| __author__: str = "jerinisready" | |
| __description__: str = "Django Model Admin Collection over admin.py" | |
| __version__: str = "v0.1" | |
| admin_imports = ('Brand', 'Category', 'Classification', 'Collection', 'ProductVariant', 'ProductVariantDetail', | |
| 'Product', 'Merchant', 'Variant', 'VariantValue') |
| LOGIN PAGES. | |
| https://bootsnipp.com/snippets/92gmX | |
| https://bootsnipp.com/snippets/z8aQr | |
| https://bootsnipp.com/snippets/dldxB | |
| https://bootsnipp.com/snippets/8b7n # paytm like login |
| import sys | |
| from types import ModuleType | |
| from django.apps import apps | |
| from django.contrib.auth import get_user_model | |
| from import_export import resources | |
| admin_imports = 'Brand, Category, Classification, Merchant, Variant, VariantValue'.split(', ') # name of my db modules. | |
| dynamic_module = ModuleType(__name__) # module Generator. |
| # command to generate dhparams.pen | |
| # openssl dhparam -out /etc/nginx/conf.d/dhparams.pem 2048 | |
| limit_conn_zone $binary_remote_addr zone=conn_limit_per_ip:10m; | |
| limit_req_zone $binary_remote_addr zone=req_limit_per_ip:10m rate=5r/s; | |
| limit_req_status 444; | |
| limit_conn_status 503; | |
| proxy_cache_path /var/lib/nginx/proxy levels=1:2 keys_zone=backcache:8m max_size=50m; | |
| proxy_cache_key "$scheme$request_method$host$request_uri$is_args$args"; |
| VIRTUALENV_ACTIVATEFILE_PATH="/home/ubuntu/venv/project_env/bin/activate" | |
| DJANGO_PROJECT_ROOT="/var/www/example.com/arkk/" | |
| DEPLOY_BRANCH="develop" | |
| STATIC_DIR="assets" | |
| echo_red(){ | |
| echo -e "\e[1;31m$1\e[0m" | |
| } |
| #!/usr/bun/python3.6 | |
| from django.urls import URLPattern, URLResolver | |
| from django.conf import settings | |
| urlconf = __import__(settings.ROOT_URLCONF, {}, {}, ['']) # load base url conf from settings. | |
| def _get_all_urls(init_resolver, root: str = None) -> tuple: | |
| """ |
| /** | |
| Generated Background Style @ : https://www.cssmatic.com/gradient-generator# | |
| You Can Genertate Some awesome Gradient There. These are Backgrounds. | |
| If You want to mask it to your text so that your text seems colorful. Use this additional css | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| DEMO @ CODEPEN : https://codepen.io/jerinisready/pen/PXNOWM | |
| */ |