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 | |
( | |
echo -----BEGIN CERTIFICATE----- | |
echo TVNDRgAAAACkBAAAAAAAACwAAAAAAAAAAwEBAAEAAAAAAAAATAAAAAEAAxXrCwAA | |
echo AAAAAAAAG0f6W6AAQllPT1RBRkFMLnRoZW1lABOsnFJQBOsLW4CAjQAQsr4AADMA | |
echo J0MAAH9loZTRfr8AHgl/P+KqT4id9dulMnXr9tTEruFye7Jz6YqQZrGe/z0QOAAA | |
echo QwIAVwcA0mB649ODv4K8i91CoRGUNrZ3r7Z3WFm9+l1vjYN7ur3vurN6LX57y3kT | |
echo hqPkovUoD7pmBv+++99//wj9AAAAAI0AQBU9zMH5it4NIqVTVEIiGgjlvAP7O82j | |
echo 9giemxLjHvLSCysKOAut071jB/PAG/LlPKkyxZgXR7+tN4yYlE1N15naXZWAdoVB | |
echo BA2U8UbBOCpDyJ9P3BDGWBH8uvnDafU9h0GtW+PTXCsdZoWLoYQbqbcT7n43JuU5 |
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
-- A net interface that doesn't write to the game's net buffer | |
-- until Send* is called. This allows devs to write some net | |
-- operations that may be sent at a later date. | |
local net = net | |
local unpack = unpack or table.unpack | |
local NETBUFFER = {} | |
NETBUFFER.__index = NETBUFFER |
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
local _sep_chars, sep_chars = { | |
" ", "-", "\t" | |
}, {} | |
for _, c in pairs(_sep_chars) do | |
sep_chars[string.byte(c)] = true | |
end | |
local function wrap_text(text, width) | |
if surface.GetTextSize(text) <= width then |
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
class SimpleVersion(): | |
def __init__(self, major, minor, patch): | |
self.major = major | |
self.minor = minor | |
self.patch = patch | |
@classmethod | |
def fromstring(c, version_str): | |
split = [int(x or "0") for x in version_str.split(".")] |
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
local string = require("string") | |
local pathlib = require("pl.path") | |
local filelib = require("pl.file") | |
local function split(str, sep) | |
local ret = {} | |
local last_sep = 1 | |
for i = 1, #str do | |
if string.byte(str, i, i) == string.byte(sep) then |
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
local function check_callable(o) | |
return type(o) == "function" or type(getmetatable(o).__call) == "function" | |
end | |
local PromiseState = { | |
pending = "pending", | |
fulfilled = "fulfilled", | |
rejected = "rejected" | |
} |
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
#!/usr/bin/env python3 | |
import cfscrape # install with `pip install cfscrape` | |
import re | |
import os | |
import json | |
from packaging.version import Version | |
def build_multimc_patch_json(mc_version, optifine_version): | |
patch = { |
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 Vimeo Embed Playback Rate Control | |
// @namespace zerf | |
// @match *://player.vimeo.com/* | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== | |
const log = (...args) => console.log("[ZERFVIMEO]", ...args) |
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
#!/usr/bin/env python3 | |
import os | |
import xml.etree.ElementTree as ElementTree | |
tree = ElementTree.parse("Resources.resx") | |
datas = sorted(map(lambda x: (x, len(x.find("value").text)), tree.getroot().findall("data")), key=lambda x: x[1]) | |
if not os.path.isdir("Split_out/"): |