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
function getCSRFToken() { | |
let bilijct = ""; | |
document.cookie | |
.split(";") | |
.filter((cookie) => cookie.includes("bili_jct")) | |
.forEach((cookie) => { | |
const [name, value] = cookie.split("="); | |
bilijct = value; | |
}); | |
return bilijct; |
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 __future__ import annotations | |
import html | |
import inspect | |
import os | |
import traceback | |
import typing | |
from baize.typing import WSGIApp, Environ, StartResponse, ExcInfo | |
from baize.wsgi import Request, Response, HTMLResponse, PlainTextResponse |
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 _xxsubinterpreters | |
from typing import List | |
from inspect import cleandoc | |
SharedValue = int | float | bool | bytes | str | None | tuple["SharedValue", ...] | |
class Interpreter: | |
def __init__(self, id: int): |
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 ipaddress | |
def ip_range( | |
start_ip: ipaddress.IPv4Address, end_ip: ipaddress.IPv4Address | |
) -> list[ipaddress.IPv4Network]: | |
if start_ip > end_ip: | |
raise ValueError("Start IP must be less than end IP") | |
res = [] |
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 abc | |
import threading | |
from typing import Any | |
class WriteCache(metaclass=abc.ABCMeta): | |
def __init__(self, max_size: int = 100, min_time: float = 1) -> None: | |
self.max_size = max_size | |
self.min_time = min_time |
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 concurrent.futures import ThreadPoolExecutor | |
import gc | |
import multiprocessing | |
import queue | |
import signal | |
import threading | |
import time | |
from typing import Callable, ParamSpec | |
from loguru import logger |
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 { Ai } from './vendor/@cloudflare/ai.js'; | |
export default { | |
async fetch(request, env) { | |
const ai = new Ai(env.AI); | |
// prompt - simple completion style input | |
// let simple = { | |
// prompt: 'Tell me a joke about Cloudflare' | |
// }; |
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 __future__ import annotations | |
import html | |
import inspect | |
import os | |
import traceback | |
from baize.typing import ASGIApp, Message, Receive, Scope, Send | |
from baize.asgi import Request, Response, HTMLResponse, PlainTextResponse |
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
payload: | |
- '+.youtube.be' | |
- '+.youtube.ch' | |
- '+.youtube.co' | |
- '+.youtube.co.id' | |
- '+.youtube.com' | |
- '+.youtube.com.bd' | |
- '+.youtube.com.co' | |
- '+.youtube.com.do' | |
- '+.youtube.com.ee' |
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
[Unit] | |
Description=Visual Studio Code Server | |
After=network.target | |
[Service] | |
Type=exec | |
Restart=always | |
User=%i | |
ExecStart=dbus-run-session -- sh -c "(echo 'somecredstorepass' | gnome-keyring-daemon --unlock) && /usr/local/bin/code-server serve-local --accept-server-license-terms --connection-token=somecredstorepass" |
NewerOlder