Skip to content

Instantly share code, notes, and snippets.

View BorisAnthony's full-sized avatar

Boris Anthony BorisAnthony

View GitHub Profile
@BorisAnthony
BorisAnthony / workbench.colorCustomizations.json
Created January 17, 2025 05:07 — forked from dcts/workbench.colorCustomizations.json
A list of all Visual Studio Code customizable colors, grouped by UI region. Copy and paste into User Settings (comments are allowed) to tweak an existing theme or work on your own.
"workbench.colorCustomizations": {
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast.
"contrastActiveBorder": "",
"contrastBorder": "",
// Base Colors
"focusBorder": "",
"foreground": "",
"widget.shadow": "",
"selection.background": "",
"descriptionForeground": "",
@BorisAnthony
BorisAnthony / Emitter.php
Last active November 15, 2025 10:26
Extend Laminas SapiEmitter to allow sending just body when headers or other output already sent
<?php
declare(strict_types=1);
namespace MyFramework\Emitter;
/**
* Extend Laminas SapiEmitter
* https://github.com/laminas/laminas-httphandlerrunner/blob/2.14.x/src/Emitter/SapiEmitter.php
* to add ability to emit body only, if headers or other output have already been sent.
@BorisAnthony
BorisAnthony / fuzzy_command_search.sh
Last active May 24, 2026 12:06
Fuzzy Command Search
# Fuzzy Command Search
# ---
# Add to your .zshrc or whatever
# NB: Requires `fzf` be installed
# ---
# Usage: `cc` or `cc <search string>` to pre-populate the search query.
# ---
# https://gist.github.com/BorisAnthony/160a441c5e34897527d58c0964b97b74
# ---
command_search_fzf() {
@BorisAnthony
BorisAnthony / fuzzy_command_search_run_list.sh
Last active May 24, 2026 15:34
Fuzzy-search for launching a command, or listing its source.
# Fuzzy Command Search:
# Fuzzy-search for a command, to run it or get info about it
# ---
# Add to your .zshrc or whatever
# Requirements:
# - `fzf` be installed
# - `ZSH_CONFIG_DIRS` var be set
# e.g.: export ZSH_CONFIG_DIRS="${HOME}/.zsh_configs/"
# ---
# Usage: