Skip to content

Instantly share code, notes, and snippets.

View jbenner-radham's full-sized avatar

James Benner jbenner-radham

View GitHub Profile
# EZA Theme: ~/.config/eza/theme.yml
# Powershell:
# Set-Item -Path Env:\EZA_CONFIG_DIR C:\Users\wyatt\.config\eza
colourful: true
filekinds:
normal: { foreground: "#ABB2BF" }
directory: { foreground: "#61AFEF" }
symlink: { foreground: "#56B6C2" }
@Hotrod369
Hotrod369 / 1_Sieve_Script_Cheatsheet.md
Last active September 25, 2025 14:08
This Gist provides a comprehensive cheatsheet for Sieve scripts, covering various objects, attributes, parameters, and their possible values. Sieve is a powerful scripting language for filtering and organizing emails, commonly used with email clients and servers. This cheatsheet includes tests, actions, comparators, and extensions to help you cr…
@amitmerchant1990
amitmerchant1990 / console.js
Created January 24, 2025 08:07
Calculate used localStorage size for a website
let totalSize = 0;
for (let key in localStorage) {
if (localStorage.hasOwnProperty(key)) {
let keySize = new Blob([key]).size; // Size of the key
let valueSize = new Blob([localStorage[key]]).size; // Size of the value
totalSize += keySize + valueSize;
}
}
@kesor
kesor / eza-wrapper.sh
Last active September 20, 2025 19:04
Wrapper around `eza` to make it have `ls`-like arguments, especially `-t`
#!/bin/bash
# CHANGE THIS
ACTUAL_EZA=/usr/local/bin/_eza
display_time="modified"
sort_time=""
args=()
while [ "$#" -gt 0 ]; do
@ChristopherA
ChristopherA / zsh_opinionated_best_practices.md
Last active August 15, 2025 09:22
Zsh - Opinionated Best Practices

Zsh Opinionated - A Guide to Best Practices

  • Abstract: This guide provides best practices for writing clear, maintainable, and robust Zsh scripts. Aimed at helping developers transition from Bash to Zsh, particularly on macOS, this guide offers practical advice and examples for creating standardized and efficient scripts.

  • Copyright This text of this guide is Copyright ©️2024 by Christopher Allen, and is shared under spdx:CC-BY-SA-4.0 open-source license. All the example code is relenquished to the public domain under spx:CC0-1.0.

  • Tags: #zsh #scripting #cli #opinionated

@khalidx
khalidx / node-typescript-esm.md
Last active September 9, 2025 17:04
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json

@NorbiPeti
NorbiPeti / IntelliJFlatpak.md
Last active June 3, 2025 15:28
IntelliJ IDEA Flatpak Setup Guide

IntelliJ IDEA Flatpak Setup Guide

In this guide I collect all the things I had to manually set up after installing IntelliJ using Flatpak on Linux. Also mostly applicable to other JetBrains IDEs like PHPStorm, WebStorm, Rider, PyCharm etc.

Java versions

Flatpak uses an isolated environment to install the latest version of (usually graphical) applications without having to rely on installed system libraries and such with varying versions.

@ConnerWill
ConnerWill / ANSI-escape-sequences.md
Last active September 27, 2025 01:58
ANSI Escape Sequences cheatsheet

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@Myndex
Myndex / GitHubFlavoredMarkdown.md
Last active August 12, 2025 07:53 — forked from joshuapekera/markdown
GitHub Flavored Markdown Cheat Sheet
@sts10
sts10 / rust-command-line-utilities.markdown
Last active September 23, 2025 06:18
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool