Skip to content

Instantly share code, notes, and snippets.

View chihebnabil's full-sized avatar
🎯
Focusing

Nabil CHIHEB chihebnabil

🎯
Focusing
View GitHub Profile
@chihebnabil
chihebnabil / token_analysis.py
Created April 6, 2026 22:51 — forked from kieranklaassen/token_analysis.py
Claude Code token usage analyzer - breaks down usage by project, session, and subagent
#!/usr/bin/env python3
"""
Claude Code token usage analyzer.
Analyzes ~/.claude/projects/ JSONL files for token usage patterns.
"""
import json
import os
import sys
from pathlib import Path
@chihebnabil
chihebnabil / Foo.php
Created April 21, 2020 17:27 — forked from h-collector/Foo.php
Standalone Laravel Queue + Redis example
<?php
namespace Jobs;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Redis\Database as Redis;
class Foo extends Job
{
use InteractsWithQueue;
@chihebnabil
chihebnabil / Foo.php
Created April 21, 2020 17:27 — forked from h-collector/Foo.php
Standalone Laravel Queue + Redis example
<?php
namespace Jobs;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Redis\Database as Redis;
class Foo extends Job
{
use InteractsWithQueue;