Skip to content

Instantly share code, notes, and snippets.

@QINGCHARLES
QINGCHARLES / agents.md
Last active November 24, 2025 10:36
My agents.md/copilot-instructions.md for .Net 10 coding

What AI agents should know about me

C# / ASP.NET Core developer (Razor Pages + Windows Forms) targeting .NET 8–10.

Coding standards & conventions

  • Strong explicit typing; avoid var unless the type is truly obvious or required.
  • PascalCase every identifier (types, members, variables, parameters, generics, Razor artifacts, generated names like App/Builder).
  • Exception: simple loop counters (i, j, k, w, h, x, y, z).
  • Tabs for indentation; opening brace on its own line.
@ThioJoe
ThioJoe / CombineTextFiles.ps1
Created September 9, 2024 17:48
PowerShell Script to combine files in a directory into a single text file
param(
[string]$FolderPath,
[string]$Extension = "txt",
[ValidateSet("name", "date", "name-reverse", "date-reverse")]
[string]$Sort = "name",
[switch]$Recursive
)
Write-Host "------------------------------------------------------------------------------------------------"
Write-Host ""
@AgainPsychoX
AgainPsychoX / .ps1
Last active October 8, 2024 13:54
Sorting the same way Windows Explorer does
$array = @('1a2a5773', '0fe68296', '01b7f045')
$expected = @('0fe68296', '01b7f045', '1a2a5773')
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Write-Host 'Bad:' # from https://stackoverflow.com/a/5429048/4880243
$array | Sort-Object { [regex]::Replace($_, '\d+', { $args[0].Value.PadLeft(20) }) }
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
@mjdargen
mjdargen / retrieve_nasdaq_securities.py
Last active August 13, 2024 19:44
Retrieves NASDAQ listed securities from NASDAQ ftp server updated nightly.
# http://www.nasdaqtrader.com/trader.aspx?id=symboldirdefs
# NASDAQ-Listed Securities
# File Name: nasdaqlisted.txt
# FTP Directory: ftp://ftp.nasdaqtrader.com/symboldirectory
# Field Name Definition
# Symbol The one to four or five character identifier for each
# NASDAQ-listed security.
# Security Name Company issuing the security.
# Market Category The category assigned to the issue by NASDAQ based on
@limitedeternity
limitedeternity / BruteZIP.py
Created July 28, 2020 22:23
Zip file bruteforce utility
import argparse
import os
import shutil
import tempfile
from zipfile import ZipInfo, ZipFile
parser = argparse.ArgumentParser(description="Unzips a password protected .zip by performing a brute-force attack "
"using either a word list, password list or a dictionary.",
usage="BruteZIP.py -z zip.zip -d dict.txt")
parser.add_argument("-z", "--zip", metavar="", required=True, help="Path to the .zip file.")
@Eseperio
Eseperio / all-file-extensions.json
Created July 16, 2019 09:50
List of all file extensions with description (listed on wikipedia) in JSON format.
{
"0": {
"descriptions": [
"Compressed harddisk data"
]
},
"1": {
"descriptions": [
"Fax",
"Roff/nroff/troff/groff source for manual page"
@Eseperio
Eseperio / extract-file-extensions-from-wikipedia.js
Last active January 17, 2025 15:45
A snippet to extract all file extension names from wikipedia pages.
/**
* This snippet is used to extract all file extension names from wikipedia pages.
*
* Usage: Copy this snippet and paste on Chrome console. Do it for each extensions page available.
* After that, get the json using `localStorage.getItem('extensions')`
* @see https://en.wikipedia.org/wiki/List_of_filename_extensions
* @type {string}
*/
var memorySlot='extensions';
@ernestkamara
ernestkamara / AdbCommands
Created June 26, 2018 08:42 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@reg2k
reg2k / Fallout 4 All Console Commands.txt
Created March 4, 2018 16:29
Dump of all Fallout 4 console commands (with description)
-----------------------------------------------------------------------------------------
ID Full Name Short Name Description
-----------------------------------------------------------------------------------------
256: Show TST Show global scripts and variables.
257: ShowVars SV Show variables on object. You can optionally specified a papyrus variable or script to filter with [player->sv]
258: ShowGlobalVars SGLV Show all global variables.
259: ShowQuestVars SQV Show quest variables. You can optionally specified a papyrus variable or script to filter with [svq QuestID]
260: ShowQuests SQ List quests.
261: ShowQuestAliases Show quest aliases. [ShowQuestAliases QuestID]
262:
@qti3e
qti3e / README.md
Last active December 2, 2025 15:50
List of file signatures and mime types based on file extensions