پنل تحت وب مدیریت V2ray و ساخت کاربر و مدیریت سرور
mkdir x-ui && cd x-ui
docker run -itd --network=host \
-v $PWD/db/:/etc/x-ui/ \
-v $PWD/cert/:/root/cert/ \
# coding:utf-8 | |
# author LuShan | |
# version : 1.1.9 | |
import json | |
# import urllib3 | |
import logging | |
import random | |
import re | |
import requests | |
from urllib.parse import quote |
function translate(text, from = "auto", to) { | |
try { | |
const result = UrlFetchApp.fetch( | |
"https://translate.google.com/_/TranslateWebserverUi/data/batchexecute", | |
{ | |
payload: | |
"f.req=" + | |
encodeURIComponent( | |
JSON.stringify([ | |
[ |
const cache = caches.default; | |
addEventListener("fetch", (event) => { | |
try { | |
const request = event.request | |
return event.respondWith(handleRequest(event)) | |
} catch (e) { | |
return event.respondWith(new Response("Error thrown " + e.message)) | |
} | |
}); |
from telethon import TelegramClient | |
from datetime import datetime, timedelta, timezone | |
# These example values won't work. You must get your own api_id and | |
# api_hash from https://my.telegram.org, under API Development. | |
api_id = 12345 | |
api_hash = '0123456789abcdef0123456789abcdef' | |
client = TelegramClient('anon.session', api_id, api_hash) # You need run twice because this part create session in first run. | |
client.start() |
{ | |
"characters":{"pad": "_", "eos": "~", "bos": "^", "characters": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!'(),-.:;? ", "punctuations": "!'(),-.:;? ", "phonemes": "iyɨʉɯuɪʏʊeøɘəɵɤoɛœɜɞʌɔæɐaɶɑɒᵻʘɓǀɗǃʄǂɠǁʛpbtdʈɖcɟkɡqɢʔɴŋɲɳnɱmʙrʀⱱɾɽɸβfvθðszʃʒʂʐçʝxɣχʁħʕhɦɬɮʋɹɻjɰlɭʎʟˈˌːˑʍwɥʜʢʡɕʑɺɧʲɚ˞ɫ"}, | |
"github_branch":"* v0.0.12.lp", | |
"model": "Tacotron2", | |
"run_name": "mailabs-fr-ddc", | |
"run_description": "tacotron2 French MaiLABS with DDC and differential spectral loss. Insipred from en-ljspeech-tacotron2-ddc for Vocoder HifiGan2", | |
// AUDIO PARAMETERS | |
"audio":{ | |
// stft parameters |
{ | |
"train":[ | |
{ | |
"personality":[ | |
"My name is Ethan. <<REAL PERSONALITY>> This list defines the character, you can add char related text for chat here to drive chat" | |
], | |
"utterances":[ | |
{ | |
"candidates":[ | |
"A line character is not supposed to say in this chat.", |
import requests | |
import json | |
import os | |
from copy import deepcopy | |
APIKEY = os.environ["ZOTEROKEY"] | |
ACCOUNT = os.environ["ZOTEROACCOUNT"] | |
TESTITEM = '10.2307/4486062' # just the same example item used on https://github.com/zotero/translation-server | |
def get_item_from_identifier(identifier): | |
endpoint = "http://zotglitch.glitch.me/search" |
/* | |
* Async.gs | |
* | |
* Manages asyncronous execution via time-based triggers. | |
* | |
* Note that execution normally takes 30-60s due to scheduling of the trigger. | |
* | |
* @see https://developers.google.com/apps-script/reference/script/clock-trigger-builder.html | |
*/ |
# copied from https://github.com/tulir/mautrix-telegram/blob/master/mautrix_telegram/util/parallel_file_transfer.py | |
# Copyright (C) 2021 Tulir Asokan | |
import asyncio | |
import hashlib | |
import inspect | |
import logging | |
import math | |
import os | |
from collections import defaultdict | |
from typing import Optional, List, AsyncGenerator, Union, Awaitable, DefaultDict, Tuple, BinaryIO |