This file contains hidden or 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 Auto-Submitter (Multi-Page + 100 Batch Limit) | |
| // @namespace Violentmonkey Scripts | |
| // @match https://match.ichunqiu.com/index* | |
| // @version 1.3 | |
| // @author - | |
| // @description Fetches 5 pages, dedupes, and submits in batches of 100 flags per request | |
| // @grant GM_xmlhttpRequest | |
| // ==/UserScript== |
This file contains hidden or 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 golang:trixie AS fetch-src | |
| ARG GIT_BRANCH=main | |
| RUN git clone https://github.com/bjdgyc/anylink.git -b $GIT_BRANCH /src | |
| FROM node:16-alpine AS web-builder | |
| WORKDIR /web | |
| COPY --from=fetch-src /src/web/package.json /src/web/yarn.lock /web/ | |
| RUN yarn install |
This file contains hidden or 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
| // Usage: | |
| // gcc ./printlog.c -shared -o libwemeet_log_override.so -fPIC -Wall -Wextra | |
| // export LD_PRELOAD=$(realpath ./libwemeet_log_override.so) | |
| #include <execinfo.h> | |
| #include <stddef.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| typedef struct { | |
| const char *ptr; |
This file contains hidden or 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
| { | |
| lib, | |
| pkgs, | |
| crane, | |
| zig_0_13, | |
| cargo-zigbuild, | |
| target, | |
| rev, | |
| }: | |
| let |
This file contains hidden or 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 ctypes | |
| import mmap | |
| def replace_space_to_underscore(input_: str): | |
| assert input_.isascii() | |
| buf = ctypes.create_string_buffer(input_.encode()) | |
| shellcode = ( | |
| b"\x48\xbf" | |
| + ctypes.addressof(buf).to_bytes(8, "little") |
This file contains hidden or 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
| class CronTabParsingError extends Error { | |
| static assert(condition: unknown, message: string): asserts condition { | |
| if (!condition) { | |
| throw new CronTabParsingError(message); | |
| } | |
| } | |
| } | |
| const ordinal = (n: number): string => { | |
| if (n % 100 >= 11 && n % 100 <= 13) return `${n}th`; |
This file contains hidden or 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 { cn } from "@/utils"; | |
| export const ProgressiveBlurBackground: React.FC< | |
| React.ComponentProps<"div"> & { | |
| orientation?: "top" | "bottom"; | |
| steps?: number; | |
| blurTargetPx?: number; | |
| } | |
| > = ({ | |
| className, |
This file contains hidden or 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 typing import final | |
| import parsy as p | |
| whitespace = p.regex(r"\s*") | |
| comment = p.regex(r"//.*") | |
| def lexeme(parser: p.Parser): | |
| return parser << (whitespace | comment) |
This file contains hidden or 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
| # udpchk.py - simple tool to test UDP support of SOCKS5 proxy. | |
| # Copyright (C) 2016-2017 Zhuofei Wang <[email protected]> | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
| # use this file except in compliance with the License. You may obtain a copy | |
| # of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software |
NewerOlder