vault backup: 2025-07-22 22:14:08

Affected files:
Too many files to list
This commit is contained in:
2025-07-22 22:14:08 +08:00
parent 99f67788fc
commit 5d4e261181
202 changed files with 86 additions and 886 deletions

View File

@@ -0,0 +1,32 @@
軟體名稱】Microsoft 365 Pro Plus Retail IMG+KMS 檔
【軟件類型】:完全
【下載載點】:[Microsoft 365 Pro Plus Retail.part1.rar](https://mega.nz/file/UN5CDILJ#QF99erM5ggJUIwBaXorZScHaYGdWui83Gp0mIW_RsRc)
       [Microsoft 365 Pro Plus Retail.part2.rar](https://mega.nz/file/JdJQxQSA#Uh5ZRq2Q_MAis0xFxutyDToM6XTX3HSdcXHk1C1SkuA)
【解壓密碼】pgvinshare@eyny
【注意事項】:
* 壓縮檔內含3%修復紀錄,若檔案毀損,可自行修復
* 此為可破解版供各位測試使用,請使用內附的破解軟體 HEU KMS Activator 來激活,使用前請記得關防毒
* 若覺得此 365 Pro Plus 版本使用起來順手,煩請向微軟購買正版序號
   
【軟體簡介】Microsoft 365 Pro Plus Retail包含 Access, Excel, Lync, OneNote, Outlook, PowerPoint, Publisher, Word, OneDrive
【安裝說明】:
1. IMG 檔按右鍵選"掛接"後,會直接生成一虛擬光碟機
![[___m365_001.png]]
   
2. 點擊 Setup 進行安裝
![[___m365_002.png]]
3. 等候一般 Office 安裝程序執行完成
![[___m365_003.png]]
4. 安裝完成後,開啟隨附的破解程式,直接點擊"開始"即可 
![[___m365_004.png]]
【軟體截圖】:
![[___m365_005.png]]
*免責聲明
本人呼籲會員們不要將本站資源用於盈利和/或非法目的。
本圖像文件皆從網上搜集轉載,不承擔任何技術及版權問題。
下載鏈接僅供寬帶測試研究用途,請下載後在24小時內刪除,請勿用於商業目的。
本人亦不承擔會員將本站資源用於盈利和/或非法目的之任何後果和/或法律責任。

View File

@@ -0,0 +1,256 @@
---
title: "Custom instructions for GitHub Copilot in VS Code"
author:
tags:
- "clippings"
date: "2025-04-15T11:31:55+08:00"
time: "2025-04-15T11:31:55+08:00"
description: "Learn how you can customize how GitHub Copilot generates code or tests for your project by defining a set of instructions."
source: "https://code.visualstudio.com/docs/copilot/copilot-customization#_reusable-prompt-files-experimental"
published:
---
You can enhance Copilot's chat responses by providing it with contextual details about your team's workflow, tools, or project specifics. Instead of manually including this context in every chat query, you can create a *custom instructions* file that automatically incorporates this information with every chat request.
Copilot applies these instructions to chat prompts in the Chat view, Quick Chat, or Inline Chat. These instructions are not displayed in the chat, but are passed to Copilot by VS Code.
You can specify custom instructions for specific purposes:
- **Code-generation instructions** - provide context specific for generating code. For example, you can specify that private variables should always be prefixed with an underscore, or that singletons should be implemented a certain way. You can specify code-generation instructions in settings, or in a Markdown file in your workspace.
- **Test-generation instructions** - provide context specific for generating tests. For example, you can specify that all generated tests should use a specific testing framework. You can specify test-generation instructions in settings, or in a Markdown file in your workspace.
- **Code review instructions** - provide context specific for reviewing the current editor selection. For example, you can specify that the reviewer should look for a specific type of error in the code. You can specify review-selection instructions in settings, or in a Markdown file in your workspace.
- **Commit message generation instructions** - provide context specific for generating commit messages. You can specify commit-message-generation instructions in settings, or in a Markdown file in your workspace.
- **Pull request title and description generation instructions** - provide context specific for generating pull request titles and descriptions. You can specify pull request title and description generation instructions in settings, or in a Markdown file in your workspace.
Custom instructions consist of natural language instructions and should be short, self-contained statements that add context or relevant information to supplement chat questions.
## Define code-generation custom instructions
Copilot can help you generate code, for example as part of a refactoring, generating unit tests, or implementing a feature. You might have specific libraries you want to use in your project, or a particular coding style you want to follow for the code that Copilot generates.
Note
Copilot does not apply code-generation instructions for [code completions](https://code.visualstudio.com/docs/copilot/ai-powered-suggestions).
### Use settings
You can configure custom code-generation instructions by using the [github.copilot.chat.codeGeneration.instructions](https://code.visualstudio.com/docs/copilot/github.copilot.chat.codeGeneration.instructions) setting. You can define custom instructions at the User or Workspace level.
The following code snippet shows how to define a set of instructions in the `settings.json` file. To define instruction directly in settings, configure the `text` property. To reference an external file, configure the `file` property.
```
"github.copilot.chat.codeGeneration.instructions": [
{
"text": "Always add a comment: 'Generated by Copilot'."
},
{
"text": "In TypeScript always use underscore for private field names."
},
{
"file": "code-style.md" // import instructions from file \`code-style.md\`
}
],
```
An example of the contents of the `code-style.md` file:
```
Always use React functional components.
Always add comments.
```
### Use a.github/copilot-instructions.md file
You can also store custom instructions in your workspace or repository in a `.github/copilot-instructions.md` file and have VS Code automatically pick up this file.
If you define custom instructions in both the `.github/copilot-instructions.md` file and in settings, Copilot tries to combine instructions from both sources.
Note
GitHub Copilot in Visual Studio also detects the `.github/copilot-instructions.md` file. If you have a workspace that you use in both VS Code and Visual Studio, you can use the same file to define custom instructions for both editors.
1. Set the [github.copilot.chat.codeGeneration.useInstructionFiles](https://code.visualstudio.com/docs/copilot/github.copilot.chat.codeGeneration.useInstructionFiles) setting to `true` to instruct Copilot in VS Code to use the custom instructions file.
2. Create a `.github/copilot-instructions.md` file at the root of your workspace. If needed, create a `.github` directory first.
Tip
In the Explorer view in VS Code, you can create the folder and directly in one operation by typing the full path as the file name.
3. Add natural language instructions to the file. You can use the Markdown format.
Whitespace between instructions is ignored, so the instructions can be written as a single paragraph, each on a new line, or separated by blank lines for legibility.
## Define test-generation custom instructions
You can use Copilot to generate tests for your code, for example by using the `@workspace /tests` prompt in the Chat view. You can define custom instructions to help Copilot generate tests that are specific to your project and development workflow.
To configure custom test-generation instructions, use the [github.copilot.chat.testGeneration.instructions](https://code.visualstudio.com/docs/copilot/github.copilot.chat.testGeneration.instructions) setting. You can define custom instructions at the User or Workspace level.
The following code snippet shows how to define a set of instructions in the `settings.json` file. To define instruction directly in settings, configure the `text` property. To reference an external file, configure the `file` property.
```
"github.copilot.chat.testGeneration.instructions": [
{
"text": "Always use vitest for testing React components."
},
{
"text": "Use Jest for testing JavaScript code."
},
{
"file": "code-style.md" // import instructions from file \`code-style.md\`
}
],
```
An example of the contents of the `code-style.md` file:
```
Always add code comments.
Always use React functional components.
```
## Define code review custom instructions
You can use Copilot to review a selection of code in the editor. You can define custom instructions to help Copilot take into account specific code review criteria that are relevant to your project and development workflow.
To configure custom code review instructions, use the [github.copilot.chat.reviewSelection.instructions](https://code.visualstudio.com/docs/copilot/github.copilot.chat.reviewSelection.instructions) setting. You can define custom instructions at the User or Workspace level.
## Define commit message generation custom instructions
In the Source Control view, you can use Copilot to generate a commit message for the pending code changes. You can define custom instructions to help Copilot generate a commit message that takes into account specific formatting and structure that are specific to your project and development workflow.
To configure custom commit message generation instructions, use the [github.copilot.chat.commitMessageGeneration.instructions](https://code.visualstudio.com/docs/copilot/github.copilot.chat.commitMessageGeneration.instructions) setting. You can define custom instructions at the User or Workspace level.
## Define pull request title and description generation custom instructions
When you have the [GitHub Pull Requests](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github) extension installed, you can use Copilot to generate a title and description for a pull request. You can define custom instructions to help Copilot generate a title and description that take into account specific formatting and structure that are specific to your project and development workflow.
To configure custom pull request title and description generation instructions, use the [github.copilot.chat.pullRequestDescriptionGeneration.instructions](https://code.visualstudio.com/docs/copilot/github.copilot.chat.pullRequestDescriptionGeneration.instructions) setting. You can define custom instructions at the User or Workspace level.
## Tips for defining custom instructions
- Keep your instructions short and self-contained. Each instruction should be a single, simple statement. If you need to provide multiple pieces of information, use multiple instructions.
- Don't refer to external resources in the instructions, such as specific coding standards.
- Make it easy to share custom instructions with your team or across projects by storing your instructions in an external file. You can also version control the file to track changes over time.
## Reusable prompt files (experimental)
Prompt files (*prompts*) let you build and share reusable prompt instructions with additional context. A prompt file is a Markdown file that mimics the existing format of writing prompts in Copilot Chat (for example, `Rewrite #file:x.ts`). This allows blending natural language instructions, additional context, and even linking to other prompt files as dependencies.
While custom instructions help to add codebase-wide context to each AI workflow, prompt files let you add instructions to a specific chat interaction.
Common use cases include:
- **Code generation**: create reusable prompts for components, tests, or migrations (for example, React forms, or API mocks).
- **Domain expertise**: share specialized knowledge through prompts, such as security practices, or compliance checks.
- **Team collaboration**: document patterns and guidelines with references to specs and documentation.
- **Onboarding**: create step-by-step guides for complex processes or project-specific patterns.
### Prompt file examples
- `react-form.prompt.md` - documents a reusable task for generating a form:
```
Your goal is to generate a new React form component.
Ask for the form name and fields if not provided.
Requirements for the form:
* Use form design system components: [design-system/Form.md](../docs/design-system/Form.md)
* Use \`react-hook-form\` for form state management:
* Always define TypeScript types for your form data
* Prefer *uncontrolled* components using register
* Use \`defaultValues\` to prevent unnecessary rerenders
* Use \`yup\` for validation:
* Create reusable validation schemas in separate files
* Use TypeScript types to ensure type safety
* Customize UX-friendly validation rules
```
- `security-api.prompt.md` - documents reusable security practices for REST APIs, which can be used to do security reviews of REST APIs:
```
Secure REST API review:
* Ensure all endpoints are protected by authentication and authorization
* Validate all user inputs and sanitize data
* Implement rate limiting and throttling
* Implement logging and monitoring for security events
```
### Usage
To enable prompt files, configure the [chat.promptFiles](https://code.visualstudio.com/docs/copilot/chat.promptFiles) VS Code setting. By default, prompt files are located in the `.github/prompts` directory of your workspace. You can also [specify additional folders](https://code.visualstudio.com/docs/copilot/#_prompt-files-experimental-settings) where prompt files are located.
#### Create a prompt file
1. Set the [chat.promptFiles](https://code.visualstudio.com/docs/copilot/chat.promptFiles) setting to `true` for the `.github/prompts` directory.
2. Create a `.prompt.md` file in the `.github/prompts` directory of your workspace.
Alternatively, use the **Create Prompt** command from the Command Palette (Ctrl+Shift+P).
3. Write prompt instructions by using Markdown formatting.
Within a prompt file, reference additional workspace files as Markdown links (`[index](../index.ts)`), or as `#file:../index.ts` references within the prompt file.
You can also reference other `.prompt.md` files to create a hierarchy of prompts, with reusable prompts that can be shared across multiple prompt files.
#### Create a user prompt file
User prompt files are stored in your [user profile](https://code.visualstudio.com/docs/configure/profiles). With user prompt files, you can share reusable prompts across multiple workspaces.
You can add a user prompt file to a chat prompt in the same way as a workspace prompt file.
To create a user prompt file:
1. Select the **Create User Prompt** command from the Command Palette (Ctrl+Shift+P).
2. Enter a name for your prompt file.
3. Write prompt instructions by using Markdown formatting.
User prompt files can now be synced across multiple devices with [Settings Sync](https://code.visualstudio.com/docs/configure/settings-sync). Make sure to enable support for prompt files in your Settings Sync configuration. Select **Settings Sync: Configure** from the Command Palette, and make sure **Prompts** is selected.
#### Attach a prompt file to a chat request
1. Select the **Attach Context** icon (Ctrl+/), and then select **Prompt...**.
Alternatively, use the **Chat: Use Prompt** command from the Command Palette (Ctrl+Shift+P).
2. Choose a prompt file from the Quick Pick to attach it to your chat request.
You can use prompt files in both Copilot Chat and Copilot Edits.
3. Optionally, attach additional context files required for the task.
For reusable tasks, send the prompt without any additional instructions.
To further refine a reusable prompt, include additional instructions to provide more context for the task at hand.
Tip
Reference additional context files like API specs or documentation by using Markdown links to provide Copilot with more complete information.
## Settings
### Custom instructions settings
- [github.copilot.chat.codeGeneration.useInstructionFiles](https://code.visualstudio.com/docs/copilot/github.copilot.chat.codeGeneration.useInstructionFiles): controls whether code instructions from `.github/copilot-instructions.md` are added to Copilot requests.
- [github.copilot.chat.codeGeneration.instructions](https://code.visualstudio.com/docs/copilot/github.copilot.chat.codeGeneration.instructions) *(Experimental)*: set of instructions that will be added to Copilot requests that generate code.
- [github.copilot.chat.testGeneration.instructions](https://code.visualstudio.com/docs/copilot/github.copilot.chat.testGeneration.instructions) *(Experimental)*: set of instructions that will be added to Copilot requests that generate tests.
- [github.copilot.chat.reviewSelection.instructions](https://code.visualstudio.com/docs/copilot/github.copilot.chat.reviewSelection.instructions) *(Preview)*: set of instructions that will be added to Copilot requests for reviewing the current editor selection.
- [github.copilot.chat.commitMessageGeneration.instructions](https://code.visualstudio.com/docs/copilot/github.copilot.chat.commitMessageGeneration.instructions) *(Experimental)*: set of instructions that will be added to Copilot requests that generate commit messages.
- [github.copilot.chat.pullRequestDescriptionGeneration.instructions](https://code.visualstudio.com/docs/copilot/github.copilot.chat.pullRequestDescriptionGeneration.instructions) *(Experimental)*: set of instructions that will be added to Copilot requests that generate pull request titles and descriptions.
### Prompt files (experimental) settings
- [chat.promptFiles](https://code.visualstudio.com/docs/copilot/chat.promptFiles) *(Experimental)*: enable reusable prompt files.
- [chat.promptFilesLocations](https://code.visualstudio.com/docs/copilot/chat.promptFilesLocations) *(Experimental)*: a list of folders where prompt files are located. You can specify one or more folders where prompt files are located. Relative paths are resolved from the root folder(s) of your workspace. Supports glob patterns for file paths.
| Setting value | Description |
| --- | --- |
| `["/path/to/folder"]` | Enable prompt files for a specific path. Specify one or more folders where prompt files are located. Relative paths are resolved from the root folder(s) of your workspace. By default, `.github/prompts` is added but disabled. |
- Start AI chat conversations with [Copilot Chat](https://code.visualstudio.com/docs/copilot/chat/copilot-chat).
- Start an AI-powered editing session with [Copilot Edits](https://code.visualstudio.com/docs/copilot/chat/copilot-edits).
# 參考來源
- [Custom instructions for GitHub Copilot in VS Code](https://code.visualstudio.com/docs/copilot/copilot-customization#_reusable-prompt-files-experimental)

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,13 @@
# Set donation to 0
Open `xmrig/src/donate.h`, set `kDefaultDonateLevel` to 0, and set `kMinimumDonateLevel` to 0.
# Build
```bash
git clone https://github.com/xmrig/xmrig.git
mkdir xmrig\build && cd xmrig\build
cmake .. -G "Visual Studio 17 2022" -A x64 -DXMRIG_DEPS=c:\xmrig-deps\msvc2019\x64
cmake --build . --config Release
```
# 參考
- [Windows build - XMRig](https://xmrig.com/docs/miner/build/windows)

View File

@@ -0,0 +1,17 @@
{
"nodes":[
{"id":"9d207efca8e39cd4","type":"text","text":"Zephyr","x":-407,"y":58,"width":125,"height":60,"color":"3"},
{"id":"cbead737c83840bd","type":"text","text":"## 錢包\n[zephyrprotocol](https://wallet.zephyrprotocol.com/)","x":-441,"y":-180,"width":194,"height":90},
{"id":"e96c80e8aad5e6bc","type":"text","text":"## 教學\n[# ZEPH挖矿教程 CPU挖矿 全流程讲解 算力低解决方法](https://www.youtube.com/watch?v=Ro8XNMlAtrM)","x":-554,"y":262,"width":421,"height":92},
{"id":"c06fb876aad6755a","type":"text","text":"## 挖礦工具\n- [xmrig](https://github.com/xmrig/xmrig)\n\n### Set donate to 0\n[[Build xmrig with Visual Studio 2022]]","x":0,"y":-260,"width":355,"height":185},
{"id":"fa19a71efffddcb1","type":"text","text":"## 輔助工具\n### 選礦池\n[zephyr.miningocean.org](https://zephyr.miningocean.org/worker_stats)\n\n### 查CPU/GPU 算力\n- [XMRig](https://xmrig.com/benchmark)\n- https://www.hashrate.no/cpus\n\n### 算收益\n[Zephyr 挖矿收益计算器](https://minerstat.com/coin/ZEPH?lang=zh)","x":0,"y":-60,"width":355,"height":357},
{"id":"9bb4b7969d5cf3e8","type":"text","text":"## 設定\n- [Windows 11 算力最大化](https://www.youtube.com/watch?v=vUbjxpBc9N8)","x":0,"y":310,"width":355,"height":89}
],
"edges":[
{"id":"fda9bf543a8846de","fromNode":"9d207efca8e39cd4","fromSide":"top","toNode":"cbead737c83840bd","toSide":"bottom"},
{"id":"dea21c3da2418bf6","fromNode":"9d207efca8e39cd4","fromSide":"right","toNode":"c06fb876aad6755a","toSide":"left"},
{"id":"108524e502ec98a1","fromNode":"9d207efca8e39cd4","fromSide":"right","toNode":"fa19a71efffddcb1","toSide":"left"},
{"id":"c272278ac173632a","fromNode":"9d207efca8e39cd4","fromSide":"bottom","toNode":"e96c80e8aad5e6bc","toSide":"top"},
{"id":"b3999d558fa417e8","fromNode":"9d207efca8e39cd4","fromSide":"right","toNode":"9bb4b7969d5cf3e8","toSide":"left"}
]
}