Skip to content

Instantly share code, notes, and snippets.

View sayedihashimi's full-sized avatar

Sayed Ibrahim Hashimi sayedihashimi

View GitHub Profile
@sayedihashimi
sayedihashimi / prompt-taskmanager.txt
Created April 28, 2025 16:28
Prompt to make chatgpt into your personal task manager
You are my advanced Personal Task Manager. Manage my tasks based on specific commands I give you. Support the following commands:
Commands:
- `add [task description] [optional: due yyyy-mm-dd|MM/DD/YYYY|MM.DD.YYYY] [optional: #tag1 #tag2]` — Add a new task. Assign a unique ID. Default priority is Medium if none specified.
- `list [optional: pending|done|all] [optional: sort by due|priority|created] [optional: view compact|full]` — Show tasks filtered, sorted, and either in compact or full view. Default view is full.
- `done [task ID]` — Mark a task as completed.
- `undone [task ID]` — Mark a task as pending.
- `remove [task ID]` — Delete a task.
- `clear completed` — Remove all completed tasks.
- `clear all` — Remove all tasks.
@sayedihashimi
sayedihashimi / multiply.txt
Created April 25, 2025 17:45
Prompt for an interactive multiplication game for third or fourth graders
You are a multiplication practice bot designed for third and fourth graders.
Supported commands:
- `start`: Start a new multiplication game round.
- `quit`: End the current game round and report the score.
When a round starts:
- Ask one multiplication problem at a time (e.g., 6 x 7).
- Wait for the user's answer.
- If the answer is correct, say it's correct and ask another problem.
@sayedihashimi
sayedihashimi / blackjack.prompt.txt
Created April 24, 2025 04:41
Prompt to play blackjack with gpt
We’re going to play a game of Blackjack. You will act as the dealer and follow the official rules described here: https://bicyclecards.com/how-to-play/blackjack. As the dealer, you must always hit on 16 or less.
Gameplay Rules
• The game uses 6 standard decks.
• Shuffle the deck when more than 70% of the cards have been dealt.
• All card dealing and decisions should follow standard Blackjack rules.
• The default bet per hand is $100.
• The default starting balance for the player (me) is $1000.
• Win/loss payouts follow official Blackjack rules.
Available Commands
• newgame – Starts a new game with fresh decks.
@sayedihashimi
sayedihashimi / 10M-01-number-details.txt
Last active April 14, 2022 19:44
Stats from roulette simulator
Number of spin: 100,000,000
Number details ---------------------------------------------
Number of black and red swaps: 47,364,836
---- 1 ----
Number of hits: 2,633,633
Max # spins since last hit: 551
Max # of consecutive hits: 5
@sayedihashimi
sayedihashimi / msbuild-error-format.md
Last active May 13, 2024 20:38
MSBuild and Visual Studio Known Error Message Formats

MSBuild and Visual Studio Known Error Message Formats

When a tool is executed that outputs some text, MSBuild will examine the text for errors and warnings. Many tools use a known format to report these messages. By default, MSBuild will examine the text and report errors and/or warnings based on the output. This behavior can be changed or disabled by using these parameters on the Exec task: IgnoreStandardErrorWarningFormat, CustomErrorRegularExpression, and CustomWarningRegularExpression.

NOTE: If you do decide to use your own regular expression to detect error and warnings, then

@sayedihashimi
sayedihashimi / allowlistforpihole.txt
Created March 26, 2021 19:00 — forked from shanselman/allowlistforpihole.txt
A gist with an ALLOW LIST for a PiHole to make sure your XBox and Windows Services keeps working and appropriate anonymized telemetry goes where it needs to go
analytics.twitter.com
api.mixpanel.com
api.segment.io
attestation.xboxlive.com
az416426.vo.msecnd.net
browser.pipe.aria.microsoft.com
c.bing.com
c.msn.com
c1.microsoft.com
cdn-gl.imrworldwide.com
@sayedihashimi
sayedihashimi / Get-CurrentBranch.ps1
Created July 16, 2020 20:05
Get-CurrentBranch powershell function
function Get-CurrentBranch{
[cmdletbinding()]
param()
process{
[string]$result = &git branch --show-current
if(-not $result){
$result = $result.trim();
}
$result
}

Add the target below to the project file for your dotnet core global tool. You can run this target to simplify reinstalling the global tool. You can execute this target with dotnet build -t:InstallTool.

When this target is executed the following will happen (in this order):

  • Project is packed into a NuGet package
  • Tool is uninstalled with dotnet tool uninstall
  • Tool is installed with dotnet tool install
  • Help is called on the tool just installed
<ItemGroup>
<!-- Don't publish the SPA source files, but do show them in the project files list -->
<Content Remove="$(SpaRoot)**" />
<!-- remove duplicate .json files from Content -->
<Content Remove="appsettings.json;appsettings.Development.json;bundleconfig.json" />
<Content Include="appsettings.json" Condition="Exists('appsettings.json')" />
<Content Include="appsettings.Development.json" Condition="Exists('appsettings.Development.json')" />
<Content Include="bundleconfig.json" Condition="Exists('bundleconfig.json')" />
<!-- remove .ts files from None, they should be in TypeScriptCompile instead -->
<None Remove="**/*.ts" />
@sayedihashimi
sayedihashimi / extract-interface.gif
Last active November 8, 2018 21:13
Some sample Quick Fix actions available in Visual Studio for Mac
extract-interface.gif