In the terminal, run
git clone https://github.com/bmaltais/kohya_ss.git
cd kohya_ss
# Patch these files into top level/root project folder
# Then run the next command
bash ./macos.sh
| from discord import app_commands | |
| from discord.ext import commands | |
| # all cogs inherit from this base class | |
| class ExampleCog(commands.Cog): | |
| def __init__(self, bot): | |
| self.bot = bot # adding a bot attribute for easier access | |
| # adding a command to the cog | |
| @commands.command(name="ping") |
| #!/bin/python3 | |
| # | |
| """Example Sanic Reverse Proxy""" | |
| from urllib.parse import urlsplit, urlunsplit | |
| from sanic import Sanic, Request | |
| from sanic.response import stream, HTTPResponse | |
| import httpx | |
| env = {"hostname-from": "localhost", "port-from": 8000, "port-to": 8080} |
With lxml 4.5.0
❯ python
Python 3.9.1 (default, Feb 5 2021, 17:04:50)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from lxml import etree
>>> from io import StringIO
>>> etree.parse(StringIO('<h2>👺</h2>'))
| @use 'sass:map'; | |
| @use 'variants' as * with ( | |
| $breakpoints: ( | |
| 'small': 640px, | |
| 'medium': 768px, | |
| 'large': 1024px, | |
| 'wide': 1280px, | |
| ) | |
| ); |
Install Android App Termux from APKPure or AppStore. If the app exists, just delete and re-install it to get the latest version, The APK can be downloaded from https://apkpure.com/termux/com.termux/ Install the APK using by running
adb install ~/Downloads/Termux_v0.73_apkpure.com.apk
| # -*- coding: utf-8 -*- | |
| import re | |
| from redbot.core import checks, Config | |
| import discord | |
| from redbot.core import commands | |
| from redbot.core.data_manager import bundled_data_path | |
| import asyncio | |
| import datetime | |
| from .userprofile import UserProfile | |
| from PIL import Image, ImageDraw, ImageFont |
| // helper to find Brave in User Agent string | |
| function isBraveAgent(userAgentResponse) { | |
| var isBraveIndex = ~userAgentResponse.indexOf('Brave') | |
| if (isBraveIndex < 0) { | |
| return true | |
| } | |
| return false | |
| } | |
| // Function from Javarome |
| from __future__ import unicode_literals | |
| import logging | |
| from operator import methodcaller | |
| import asyncio | |
| from elasticsearch.exceptions import TransportError | |
| from elasticsearch.helpers import BulkIndexError, expand_action, _chunk_actions | |
| from elasticsearch.compat import map |