Skip to content

Instantly share code, notes, and snippets.

View benabraham's full-sized avatar

Daniel Srb benabraham

View GitHub Profile
@benabraham
benabraham / README.md
Created October 26, 2026 09:43
Gmail dark userstyle for Stylus in the Nordarker palette (Nord, darker)

Gmail Nordarker (Stylus userstyle)

Dark Gmail theme in the Nordarker palette: Nord's 16 slots (nord0-nord15), but darker than stock Nord.

Built on the Catppuccin Gmail userstyle (selectors and mixins), with the palette swapped and extra Gmail fixes added. It uses the LESS preprocessor.

Install

  1. Install the Stylus browser extension.
  2. Open the raw file URL of gmail.user.css from this gist. Stylus offers to install it.
@benabraham
benabraham / simple-statusline.py
Last active January 26, 2026 21:05
Simple Claude Code status line with context usage progress bar (dark/light themes, truecolor/256 fallback)
#!/usr/bin/env python3
"""
This script has moved to GitHub:
https://github.com/benabraham/claude-code-status-line
Please download the latest version from the repo:
curl -o ~/.claude/claude-code-status-line.py https://raw.githubusercontent.com/benabraham/claude-code-status-line/main/claude-code-status-line.py
"""
print("\033[1m\033[38;5;220mThis statusline script has moved to GitHub:\033[0m")
print("\033[1m https://github.com/benabraham/claude-code-status-line\033[0m")
@benabraham
benabraham / simple-statusline.py
Last active January 26, 2026 21:15
Simple Claude Code status line with context usage progress bar (dark/light themes, truecolor/256 fallback)
#!/usr/bin/env python3
"""
This script has moved to GitHub:
https://github.com/benabraham/claude-code-status-line
Please download the latest version from the repo:
curl -o ~/.claude/claude-code-status-line.py https://raw.githubusercontent.com/benabraham/claude-code-status-line/main/claude-code-status-line.py
"""
print("\033[1m\033[38;5;220mThis statusline script has moved to GitHub:\033[0m")
print("\033[1m https://github.com/benabraham/claude-code-status-line\033[0m")
@benabraham
benabraham / clamp-dimension.scss
Last active December 9, 2024 20:51
clampDimension
@use "sass:math";
@function clampDimension(
$minViewportWidthPx,
$minDimensionRem,
$maxViewportWidthPx,
$maxDimensionRem,
$remSize: 16px
) {
$minWidth: math.div($minViewportWidthPx, $remSize);
@benabraham
benabraham / solidpixels-admin.css
Created February 27, 2023 11:29
Solidpixels admin custom CSS for better image previews.
.upload-detail-preview,
.upload-dialog-thumbnail:has(.img),
.FilePreview {
background: repeating-conic-gradient(hsl(0 0% 60%) 0% 25%, hsl(0 0% 70%) 0% 50%) 50% / 20px 20px;
}
.info-filesize {
color: white;
}