Skip to content
View sharshi's full-sized avatar
πŸ•
πŸ•

Organizations

@hebrewbooks @ShafehOrg

Block or report sharshi

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
sharshi/README.md
using System;
using System.Collections.Generic;

public class GrokException : Exception
{
    private static readonly Random _rnd = new Random();
    private static readonly List<string> _randomAds = new List<string>
    {
        "Error 0xDEADC0DE brought to you by ExpressVPN – hide your stack trace from your boss.",
        "Tired of blue screens? Switch to Linux! (Just kidding, here's another ad.)",
        "This exception is not a bug, it's a feature – sponsored by Monday.com.",
        "99% of developers who saw this error upgraded their coffee. Coincidence?",
        "Blimp sighting reported over your call stack – brought to you by Goodyear."
    };

    public GrokException(string errorDetails) : base(BuildMessage(errorDetails))
    {
    }

    private static string BuildMessage(string errorDetails)
    {
        string ad = _randomAds[_rnd.Next(_randomAds.Count)];
        
        // URL-encode the error for Grok to instantly debug when you paste it
        string encodedError = Uri.EscapeDataString(
            $"Fix this C# exception for me:\n\n{errorDetails}\n\nStack trace: {Environment.StackTrace}"
        );

        string grokUrl = $"https://grok.x.ai/?prompt={encodedError}";

        return $@"
══════════════════════════════════════
🚨 EXCEPTION THROWN 🚨

{errorDetails}

══════════════════════════════════════
TODAY'S SPONSOR:
{ad}

Need this fixed in 0.3 seconds?
Paste this link directly into Grok 4 β†’ {grokUrl}
SuperGrok & Premium+ users get unlimited debugging superpowers.
Stop suffering. Upgrade now: https://x.ai/grok
══════════════════════════════════════
";
    }
}

// Usage:
throw new GrokException("Object reference not set to an instance of an object. Again.");

Popular repositories Loading

  1. Web-Hunt Web-Hunt Public

    Inspired by Product Hunt. Stack: https://github.com/stars/sharshi/lists/webhunt-stack

    JavaScript 13

  2. Morning-Dash Morning-Dash Public

    Morning Dash is your day at a glance. See local weather, your commute, and calendar events all in one place.

    JavaScript 13

  3. Monday-and-Thursday-Kriah Monday-and-Thursday-Kriah Public

    2 1

  4. siddur-api siddur-api Public

    JavaScript 2

  5. daily-learning-app daily-learning-app Public

    React Native Frontend for the Daily Learning API

    Java 1

  6. tikkunkorim tikkunkorim Public

    JavaScript 1 1