This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vapoursynth as vs | |
import numpy as np | |
from vsutil import depth | |
core = vs.core | |
def to_rgbs(clip: vs.VideoNode, matrix: int = 1) -> vs.VideoNode: | |
clip = depth(clip, 32).std.SetFrameProp('_Matrix', intval=matrix) | |
clip = core.resize.Bicubic(clip, format=vs.RGBS) | |
return clip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tokenize import String | |
import requests | |
from requests import Session | |
from requests_toolbelt import MultipartEncoder | |
import traceback | |
from typing import Any, List, NoReturn, Optional, Type, NamedTuple, Dict, Iterable, Union | |
from os import PathLike | |
import colorama | |
import sys | |
from pathlib import Path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bs4 import BeautifulSoup as bs | |
import httpx | |
import requests | |
import aiohttp | |
import asyncio | |
import time | |
from pathlib import Path | |
from slowpoke import downloader | |
from warnings import warn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fastapi import FastAPI | |
import httpx | |
from pycountry import countries | |
from random import randrange | |
app = FastAPI() | |
@app.get("/") | |
async def getter() -> str: | |
headers = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import httpx | |
from dataclasses import dataclass | |
import json | |
from typing import Union | |
error_codes: dict = { | |
"10001": "service temporarily unavailable", | |
"10002": "missing CF-Ray header", | |
"10003": "missing account public ID", | |
"10004": "missing account tag", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set temp1= | |
set temp2= | |
set _strings=%* | |
echo %_strings% | |
for /f "tokens=1 delims==" %%a in ("%_strings%") do ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Soap's PTP - Export collection to CSV | |
// @namespace http://tampermonkey.net/ | |
// @version 1.6 | |
// @description Add a button to export a whole collection to a .csv (imdb id, title, year, director, tags) | |
// @author Sapphire_e, Chameleon | |
// @include /^https?:\/\/passthepopcorn.me\/collages.php.*(\?|&)id=(\d*).*/ | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fastapi import FastAPI, Request | |
from fastapi.responses import HTMLResponse, Response | |
from fastapi.staticfiles import StaticFiles | |
from fastapi_redis_cache import FastApiRedisCache, cache | |
import httpx | |
import os | |
headers = { | |
'Accept': '*/*', | |
'Accept-Language': 'en-US,en;q=0.9', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt install -y ninja-build cmake unzip | |
git clone --depth 1 -b codon https://github.com/exaloop/llvm-project | |
cmake -S llvm-project/llvm -B llvm-project/build -G Ninja \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DLLVM_INCLUDE_TESTS=OFF \ | |
-DLLVM_ENABLE_RTTI=ON \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from telethon.sync import TelegramClient, events | |
from io import BytesIO | |
from PIL import Image | |
api_id = '' | |
api_hash = '' | |
phone_number = '' | |
destination_channel_username = '@eternalcropped' | |
client = TelegramClient('session_name', api_id, api_hash) |
OlderNewer