Skip to content

Instantly share code, notes, and snippets.

View jorgecolonconsulting's full-sized avatar

Jorge Colon jorgecolonconsulting

View GitHub Profile
@jorgecolonconsulting
jorgecolonconsulting / git-analyze-history.md
Last active March 7, 2025 21:10
Include as context along with your prompt in agent mode (cascade/builder mode) `@git-analyze-history.md give me a summary of the past 3 commits`

Task

Analyze git commit history

Usage Instructions

  1. Specify the number of commits to analyze (default: 2)
  2. Execute the analysis command:
    git diff HEAD~[N] HEAD -- . ':(exclude)*.lock' | cat
@jorgecolonconsulting
jorgecolonconsulting / SketchSystems.spec
Last active January 6, 2020 05:40
# context: customers.<int>successful
# context: customers.<int>successful
# context: customers.<int>errored
# context: customers.<int>total
idle
START_SYNC -> batch_started
INCREMENTAL_SYNC -> incremental_sync
complete
RETRY_CUSTOMERS -> retrying_customers
Customer Sync
Idle
start sync -> In Progress
Complete
Complete No Errors
Complete Errors
retry errored customers -> Retrying Errored Customers
In Progress&
@jorgecolonconsulting
jorgecolonconsulting / SketchSystems.spec
Last active September 11, 2019 01:48
Mobile App Auth
Mobile App Auth
Logged Out*
authentication method -> Authentication Method?
Logged In
log out -> Logging Out
Logging Out
done -> Logged Out
failed -> Logging Out Error
@jorgecolonconsulting
jorgecolonconsulting / logging.php
Last active June 5, 2020 02:29
Laravel 5.6: Logging to console
<?php
return [
'default' => env('LOG_CHANNEL', 'stack'),
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => array_merge(['single'], php_sapi_name() === 'cli' ? ['stdout'] : []),
],
@jorgecolonconsulting
jorgecolonconsulting / 1-ref.cs
Last active January 22, 2020 11:18
C# ref vs out in function/method parameter
string message = "hello";
public void SayMessage(ref string message) {
Console.WriteLine(message);
message = "hello in here";
}
SayMessage(ref message); // "hello"
<?php
return call_user_func(array($this->provider, $operations[0])) ? success() : error() ;