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
| // Bun HTTP(S) imports plugin with nested relative import support and content-type detection | |
| const moduleCache = new Map<string, Promise<any>>(); | |
| const fromHttp = /^https?:\/\//; | |
| async function loadHttpModule(href: string) { | |
| if (moduleCache.has(href)) return moduleCache.get(href)!; | |
| const promise = (async () => { | |
| const response = await fetch(href); |
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
| if (location.host !== 'www.youtube.com') return; | |
| console.log('fuckyt v2 loaded'); | |
| const observer = new MutationObserver(mutations => { | |
| console.log("DOM changed!"); | |
| // resize grid back to 7 videos instead of 4 per row | |
| document.querySelectorAll('ytd-rich-grid-renderer').forEach(ele => ele?.style?.setProperty('--ytd-rich-grid-items-per-row', 7)); | |
| // hide shorts tab | |
| document.querySelector('#endpoint[title="Shorts"]')?.remove(); |
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
| #!/bin/sh | |
| ## setup vscode for user | |
| DOWNLOAD_URL=$(curl -s https://api.github.com/repos/gitpod-io/openvscode-server/releases/latest | grep "/openvscode-server-v.*-linux-x64.tar.gz" | cut -d : -f 2,3 | tr -d \") | |
| if [ "$(id -u)" -ne "0" ] ; then | |
| echo "This script must be executed with root privileges." | |
| exit 1 | |
| fi |
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 type { JSX } from 'preact/jsx-runtime'; | |
| const JS_TO_CSS = {}; | |
| const CSS_REGEX = /[A-Z]/g; | |
| const IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i; | |
| const hash = (str: string) => [...str].reduce((p,v) => (101*p+v.charCodeAt(0)) >>> 0, 11).toString(36); | |
| const styleTag = document.head.appendChild(document.createElement('style')); |
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
| const { readFile, writeFile } = require('fs/promises'); | |
| const { Readable } = require('stream'); | |
| const { createWriteStream, mkdirSync, readFileSync, existsSync, rmSync } = require('fs'); | |
| const { spawn } = require('child_process'); | |
| const fs = require('fs/promises'); | |
| const { join, resolve, dirname } = require('path'); | |
| const TARGET_VER = '1.20.2'; | |
| const CONCURRENT_DOWNLOADS = 10; |
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
| type SchemaTypes = 'integer' | 'decimal' | 'string' | 'blob'; | |
| type SchemaValue = number | string | Buffer | Schema; | |
| type ResolvedType<T extends SchemaTypes> = | |
| T extends 'integer' | 'decimal' | |
| ? number : T extends 'string' | |
| ? string : T extends 'blob' | |
| ? Buffer : never; |
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
| if (process.env.WATCHDOG_PRESENT && process.send) { | |
| const Module = require('module') | |
| process.send({ action: 'moduleCache', cache: Object.keys(require.cache).filter(v => !v.includes('node_modules')) }); | |
| const ld = Module._load; | |
| Module._load = function () { | |
| const resolvedPath = Module._resolveFilename(...arguments); |
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
| const { Console } = require('console'); | |
| const { Writable } = require('stream'); | |
| const formatter = (open, close, replace = open) => input => { | |
| const string = "" + input | |
| const index = string.indexOf(close, open.length) | |
| return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close | |
| } | |
| const replaceClose = (string, close, replace, index) => { |
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
| //@ts-check | |
| const { readFile, writeFile, rm } = require('fs/promises'); | |
| const { existsSync, rmSync } = require('fs'); | |
| const net = require('net'); | |
| const path = require('path'); | |
| const { tmpdir } = require('os'); | |
| /** @typedef {{pid: number, pipe: string}} ServiceInfo */ | |
| /** @typedef {{[key: string]: Function[]}} EventMap */ |
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
| using MemoryLib; | |
| using System.Drawing; | |
| namespace YourHack { | |
| public class GameStruct { | |
| public MemLib Mem; | |
| public readonly long WorldPTR; | |
| public readonly long BlipPTR; | |
| public readonly long GlobalPTR; |
NewerOlder