请在系统更新/出厂设置后食用。
将设备连接至电脑,打开Settings -> General -> About -> Copyrights and License, 翻到最底部可以看到系统root密码。
在电脑上使用 ssh root@10.11.99.1
进行连接,下列说明均基于已连接到的前提。
# stage for building scrcpy | |
FROM ubuntu:latest AS builder | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends \ | |
curl gcc git pkg-config meson ninja-build libsdl2-dev ca-certificates \ | |
libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \ | |
libswresample-dev libusb-1.0-0-dev libswscale-dev libvncserver-dev && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* |
""" | |
Generate iCalendar file for BUPT class schedule. | |
Usage: | |
python this_file.py <username> <password> | |
Note: | |
1. You need to install the following packages: | |
- httpx | |
- ics |
import ast | |
BAD_ATS = { | |
ast.Attribute, | |
ast.Subscript, | |
ast.comprehension, | |
ast.Delete, | |
ast.Try, | |
ast.For, | |
ast.ExceptHandler, |
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends git && \ | |
git clone https://github.com/LagrangeDev/Lagrange.Core /app | |
WORKDIR /app | |
RUN dotnet publish Lagrange.OneBot/Lagrange.OneBot.csproj \ | |
--self-contained \ | |
-p:PublishSingleFile=true \ |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <pty.h> | |
#include <time.h> | |
#include <arpa/inet.h> | |
#include <signal.h> | |
#include <sys/select.h> | |
#include <sys/wait.h> |
from typing import Optional | |
import re | |
from pwn import * | |
def mint( | |
resource: str, | |
bits: int = 20, | |
now: Optional[float] = None, | |
ext: str = "", |
<?php | |
class BaseN | |
{ | |
protected $charset; | |
protected $reverseCharset; | |
public function __construct(array $charset) | |
{ | |
$this->charset = $charset; |
<!DOCTYPE html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Document</title> | |
</head> | |
<body> | |
<div id="app" class="container"> | |
<div class="info"> | |
<svg | |
xmlns="http://www.w3.org/2000/svg" |
from functools import cached_property | |
from timeit import timeit | |
class BaseN: | |
def __init__(self, charset: str) -> None: | |
self.charset = charset | |
self.reverse_charset = {c: i for i, c in enumerate(charset)} | |
assert len(self.charset) == len(self.reverse_charset), "charset must be unique" |