Skip to content

Instantly share code, notes, and snippets.

View fdncred's full-sized avatar

Darren Schroeder fdncred

View GitHub Profile
@devyn
devyn / nushell-todos.md
Last active June 26, 2024 21:08
Nushell TODOs

@devyn's nushell TODOs

Commands

  • Remove register
  • Improve error record in try/catch and document with an example
    • Adding the code would be helpful
  • Add closure argument to append, prepend for adding another stream
  • run for running nushell scripts as if they were blocks
  • Make http commands accept and stream from pipeline input
https://github.com/qmacro/level-up-your-json-fu-with-jq/blob/main/talknotes.md
pbpaste | from json
pbpaste | save environment.json
# jq '.availableEnvironments|length' environments.json
open environment.json | get availableEnvironments | length
# jq -r '.[].name' offerings.json
@abel0b
abel0b / install-linux-perf-on-wsl2.sh
Last active December 8, 2025 05:29
Install perf on WSL 2
apt install flex bison
git clone https://github.com/microsoft/WSL2-Linux-Kernel --depth 1
cd WSL2-Linux-Kernel/tools/perf
make -j8
sudo cp perf /usr/local/bin
@fnky
fnky / ANSI.md
Last active December 8, 2025 01:00
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active November 7, 2025 14:12
Hyperlinks in Terminal Emulators
@bojanrajkovic
bojanrajkovic / option.cs
Last active March 14, 2024 20:13
Quick and dirty Rust-like Option<T> in C#. Basically untested, use at your own risk!
public static class Option
{
public static Option<T> None<T>() => new None<T>();
public static Option<T> Some<T>(T value) => new Some<T>(value);
}
public class Option<T> : IEquatable<Option<T>>
{
public static Option<T> None => new None<T>();
public bool IsNone => !hasValue;