- Fresh Ubuntu/Debian server installation
- Root or sudo access
- Basic familiarity with command line
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/bash | |
| # Ubuntu 24 安全初始化脚本 | |
| # 请以 root 用户运行: sudo bash secure-init.sh | |
| # 1. 输入新用户名 | |
| read -p "请输入新用户名: " NEWUSER | |
| adduser $NEWUSER | |
| usermod -aG sudo $NEWUSER | |
| # 2. 输入公钥并写入 authorized_keys |
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 YouTube URL Timestamp Updater | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2025-10-30 | |
| // @description Updates the URL with the current video time without creating duplicates. | |
| // @author You | |
| // @match https://www.youtube.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com | |
| // @grant none | |
| // @author Daniel Young |
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
| /** | |
| * Function and Class Hooking Utility | |
| * Provides comprehensive hooking capabilities for functions and classes | |
| */ | |
| // Types for hook callbacks | |
| type BeforeHook<T extends any[] = any[]> = (...args: T) => void | [...T]; | |
| type AfterHook<T = any> = (result: T, ...args: any[]) => T | void; | |
| type ErrorHook = (error: Error, ...args: any[]) => void; |
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
| export default { | |
| async fetch(request) { | |
| const url = new URL(request.url); | |
| const path = url.pathname.replace(/^\/+/, ""); | |
| const parts = path.split("/"); | |
| if (parts.length < 4) { | |
| return new Response("Usage: /owner/repo/branch/path/to/file.ext", { status: 400 }); | |
| } | |
| const [owner, repo, branch, ...filePathParts] = parts; | |
| const filePath = filePathParts.join("/"); |
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
| { | |
| // UI | |
| "workbench.iconTheme": "hypernym-icons", | |
| "workbench.colorTheme": "FullstacksJS (Dark)", | |
| "editor.cursorSmoothCaretAnimation": "on", | |
| "editor.cursorBlinking": "smooth", | |
| "editor.fontFamily": "'Monaspace Argon', 'DejaVuSansM Nerd Font', sans", | |
| "editor.codeLensFontFamily": "'Monaspace Argon'", | |
| "editor.inlineSuggest.fontFamily": "'Monaspace Argon'", | |
| "markdown.preview.fontFamily": "'Monaspace Argon'", |
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 WebSocket Connection Multiplier+Reconnect | |
| // @namespace http://tampermonkey.net/ | |
| // @version 3.1 | |
| // @description Intercepts WebSocket connections and creates multiple connections instead of one | |
| // @author maanimis | |
| // @match https://example.com/ | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=example.com | |
| // @grant none | |
| // @run-at document-start |
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 Leave my keybinds alone | |
| // @namespace Violentmonkey Scripts | |
| // @match http*://*/* | |
| // @grant none | |
| // @version 1.0 | |
| // @author Skyler Grey <sky@a.starrysky.fyi> | |
| // @description 19/03/2025 18:14:32: stop websites from overriding common browser keybinds | |
| // @license MIT OR Unlicense OR CC0-1.0 | |
| // ==/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
| // ==UserScript== | |
| // @name Anti-Anti-Debug | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.0 | |
| // @description Bypass anti-debugging techniques and protect developer tools | |
| // @author Hamaaad Raza | |
| // @match *://*/* | |
| // @run-at document-start | |
| // @grant none | |
| // ==/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
| #include <iostream> | |
| #include <vector> | |
| #include <cmath> | |
| #include <cstdlib> | |
| #include <ctime> | |
| #include <random> | |
| using namespace std; | |
| // Activation and Derivative functions |
NewerOlder