This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # replace me | |
| repo := 'git@github.com:USERNAME/REPO' | |
| # replace with whereever your package version lives | |
| version := `jq .version package.json | tr -d '"'` | |
| [no-exit-message] | |
| recipes: | |
| @just --choose | |
| # Ensures you have Homebrew installed, and installs it if needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env zsh | |
| # © 2026 Konstantin Gredeskoul, MIT License. | |
| # starship ZSH preset chooser and palette helper script, interactive. | |
| # | |
| # WHY this script? | |
| # | |
| # Starship povides one of the best prompts I've ever seen, it's super fast, colorful and | |
| # very customizable. Once you install it from https://starship.rs it will also install | |
| # a couple of presets. Some presets (such as catppuccin) have multiple palletes to choose | |
| # from. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # vim: ft=bash | |
| gwt() { | |
| local sel dir esc=$'\033' | |
| sel=$(git worktree list --porcelain | awk -v home="$HOME" -v esc="$esc" ' | |
| /^worktree / { wt = $2; sub("^" home, "~", wt) } | |
| /^branch / { sub(/^refs\/heads\//, "", $2) | |
| printf "%s[1;33m%s%s[0m (%s[1;32m%s%s[0m)\n", esc, wt, esc, esc, $2, esc } | |
| /^detached$/ { printf "%s[1;33m%s%s[0m (detached)\n", esc, wt, esc } | |
| ' | fzf --ansi \ | |
| --prompt='worktree > ' --height=40% --reverse --no-multi \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # install-rust-cli.sh — opinionated installer for modern Rust CLI/TUI tools. | |
| # Skips anything already installed; for the rest, prints a colorful h2bg | |
| # banner describing the tool, then installs it via cargo-binstall. | |
| # | |
| # USAGE: | |
| # # We need BASH version 4+ | |
| # brew install bash # MacOS only | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # frozen_string_literal: true | |
| # vim: ft=ruby | |
| # © 2026 Konstantin Gredeskoul | |
| # This is the "minimum" development tooling list of Brew Packages | |
| # that every developer should have on their MacOS system. It's | |
| # nowhere near complete, and is minimal for a reason (for those | |
| # that prefer minimalistic approach). | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'benchmark' | |
| require 'etc' | |
| require 'parallel' | |
| input = ('a'..'z').map { |letter| [letter, letter] }.to_h | |
| index = 0 | |
| N = 5_000_000 | |
| cpu_count = Etc.nprocessors.to_i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # shellcheck disable=SC2154,SC1091,SC1090 | |
| # vim: ft=bash | |
| # | |
| # AUTHOR: | |
| # © 2025 Konstantin Gredeskoul, All rights reserved. | |
| # LICENSE: | |
| # MIT | |
| # USAGE: | |
| # Download the script to a local file called "install-claude-app-cli" and then: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module A | |
| def foo | |
| "A" | |
| end | |
| end | |
| module Z | |
| include A | |
| def foo | |
| "Z" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # © 2025 Konstantin Gredeskoul, All rights reserved. | |
| # | |
| # This script is a proof of concept to show how to use ActiveSupport::Concern | |
| # to manage dependencies between modules and classes. The main idea is to use | |
| # the included block to include the dependencies of a module, and the | |
| # class_methods block to define class methods. | |
| # | |
| # Ultimately, the script prints all of the the methods of the Host, Bar, and | |
| # Foo classes and modules to show the result of the concern implementation. |
NewerOlder