新建会话(按照从 0 开始的编号命名):
tmux new
以指定的命名新建会话:
tmux new -s myname
| # 将地图文件拆分成两份(vtf 或 非 vtf) | |
| # 地图文件需要提前解包并重命名 | |
| # 依赖工具: | |
| # 1. https://github.com/ValvePython/vpk vpk 解包 | |
| # 2. Left 4 Dead 2 Authoring Tools vpk.exe 打包 | |
| from argparse import ArgumentParser | |
| from pathlib import Path | |
| from subprocess import run | |
| from vpk import open as open_vpk |
| //! ```toml | |
| //! # cargo.toml | |
| //! [package] | |
| //! name = "screenoff" | |
| //! version = "0.1.0" | |
| //! edition = "2021" | |
| //! description = "通过 Windows API 关闭电脑显示屏" | |
| //! # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
| //! | |
| //! [dependencies] |
| import logging | |
| from argparse import ArgumentParser | |
| from pathlib import Path | |
| from sys import exit | |
| from win32com.client import Dispatch, CDispatch | |
| logging.basicConfig(level="INFO") |
| import asyncio | |
| import logging | |
| from asyncio import Queue | |
| from dataclasses import dataclass | |
| from random import randint | |
| from uuid import UUID, uuid4 | |
| from sys import stdout | |
| logging.basicConfig(level=logging.DEBUG, filename="main.log") |
| # Unofficial | |
| [[mapnames]] | |
| name_zh = "2019 II:Metal Gear Blart" | |
| name = "2019 II:合金装备" | |
| maps = [ | |
| "2019ii_fourth_plaza", | |
| "2019ii_fourth_streets", | |
| "2019ii_blart_battle", | |
| "2019ii_fourth_outside", | |
| "2019ii_fourth_getup", |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| typedef unsigned long number_t; | |
| const char *SMALL_NUMBERS[] = {"zero", "one", "two", "three", | |
| "four", "five", "six", "seven", | |
| "eight", "nine", "ten", "eleven", | |
| "twelve", "thirteen", "fourteen", "fifteen", | |
| "sixteen", "seventeen", "eighteen", "nineteen"}; |
| import requests as r | |
| from base64 import urlsafe_b64decode as b64decode | |
| from typing import List, Optional | |
| import json | |
| 订阅服务器 = "*" | |
| def query(url: str) -> Optional[str]: | |
| resp = r.get(url, timeout=30) | |
| if resp.status_code == 200: |
| // ==UserScript== | |
| // @name Katex Here | |
| // @namespace https://js.zombie110year.top | |
| // @version 0.1 | |
| // @description 当页面加载完成后,手动选择是否用 KaTeX 渲染网页上的一些公式 | |
| // @author zombie110year | |
| // @grant none | |
| // @run-at context-menu | |
| // @include * | |
| // @require https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js#sha384=y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz |
| " Vim 配置 | |
| set nocompatible " 不与 vi 兼容 | |
| set encoding=utf-8 | |
| " 语法高亮, 缩进处理, 色彩 | |
| syntax on | |
| set t_Co=256 " 使用 TrueColor | |
| filetype indent on " 载入文件类型对应的缩进规则 | |
| " 使用时发现在复制粘贴时自动缩进反而会造成麻烦 | |
| " set autoindent |