- 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
| { | |
| "workbench.colorTheme": "Shades of Purple (Super Dark)", | |
| "[javascript]": { | |
| "editor.defaultFormatter": "rvest.vs-code-prettier-eslint", | |
| }, | |
| "liveServer.settings.donotShowInfoMsg": true, | |
| "git.openRepositoryInParentFolders": "never", | |
| "editor.minimap.showSlider": "always", | |
| "editor.minimap.enabled": false, | |
| "editor.unicodeHighlight.allowedCharacters": { |
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 유튜브 날짜 표시기 | |
| // @name:el YouTube Ημερομηνία βίντεο | |
| // @name:nl YouTube Datumweergave | |
| // @name:nb YouTube Datovisning | |
| // @name:da YouTube Datovisning | |
| // @name:de YouTube Datumsanzeige | |
| // @name:ru YouTube Отображение даты | |
| // @name:ro YouTube Afișare dată | |
| // @name:mr YouTube तारीख दर्शक |
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 |
The GMStorage class is an advanced wrapper for Greasemonkey, Tampermonkey, or Violentmonkey storage APIs. It streamlines persistent data management by offering a natural JavaScript object interface with built-in synchronization across tabs, deep object update detection, and robust merging of default values.
Key Features:
-
Natural Read/Write Operations:
Access and update storage keys as if they were object properties. -
Deep Proxying for Nested Updates:
NewerOlder