This guide will show step-by-step how to Install Arch Linux on UEFI mode.
- Bootable Flash Drive
- BIOS
- Pre installation
- Set Keyboard Layout
- Check boot mode
- Update System Clock
| from django.contrib import admin | |
| from django.contrib.flatpages.models import FlatPage | |
| # Note: we are renaming the original Admin and Form as we import them! | |
| from django.contrib.flatpages.admin import FlatPageAdmin as FlatPageAdminOld | |
| from django.contrib.flatpages.admin import FlatpageForm as FlatpageFormOld | |
| from django import forms | |
| from ckeditor.widgets import CKEditorWidget |
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| # You need PIL <http://www.pythonware.com/products/pil/> to run this script | |
| # Download unifont.ttf from <http://unifoundry.com/unifont.html> (or use | |
| # any TTF you have) | |
| # Copyright 2011 Álvaro Justen [alvarojusten at gmail dot com] | |
| # License: GPL <http://www.gnu.org/copyleft/gpl.html> | |
| from image_utils import ImageText |
| #!/usr/bin/env python3 | |
| import sys, os, socket | |
| from socketserver import ThreadingMixIn | |
| from http.server import SimpleHTTPRequestHandler, HTTPServer | |
| HOST = socket.gethostname() | |
| class ThreadingSimpleServer(ThreadingMixIn, HTTPServer): | |
| pass |
| import asyncio | |
| import os | |
| from aiohttp import web | |
| from aiohttp import streamer | |
| @streamer | |
| async def file_sender(writer, file_path=None): | |
| """ |
| #!/bin/bash | |
| now=`date +%Y%m%d-%H%M%S` | |
| day_ago=7 | |
| db_name="DB_NAME" | |
| base_path="BASE_PATH" | |
| dump_fpath="$base_path/backup_db-$now.sql.gz" | |
| sudo -u postgres pg_dump $db_name | gzip -9 > $dump_fpath |
ramips: add support for Asus RT-N11P / RT-N12+ / RT-N12E b1
This is a variant of the MT7620N-based Asus routers.
Specifications:
| ## | |
| ## How to run multiple uvicorn server apps in the same process | |
| ## | |
| import asyncio | |
| from uvicorn import Server, Config | |
| class MyServer(Server): | |
| async def run(self, sockets=None): | |
| self.config.setup_event_loop() | |
| return await self.serve(sockets=sockets) |
| import httpx | |
| from starlette.requests import Request | |
| from starlette.responses import StreamingResponse | |
| class Proxy: | |
| def __init__(self, hostname): | |
| self.hostname = hostname | |
| self.client = httpx.AsyncClient() |
| Rank | Bot | Approximate Server Count | Library |
|---|---|---|---|
| 1 | MEE6 | 21,300,000 | Custom Python |
| 2 | Rythm | 14,900,000 | JDA |
| 3 | carl-bot |
12,100,000 | Pycord |
| 4 | Dyno | 10,600,000 | Eris |
| 5 | Midjourney Bot |