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
| #!/usr/bin/env bash | |
| # | |
| # Script to change underscan/overscan value of a monitor on OS-X. | |
| # © 2016-2019 Konstantin Gredeskoul, distributed under the MIT License. | |
| # | |
| #——————————————————————————————————————————————————————————————————————————————————————————— | |
| # EXCEPT AS REPRESENTED IN THIS AGREEMENT, ALL WORK PRODUCT BY DEVELOPER IS PROVIDED "AS IS". | |
| # OTHER THAN AS PROVIDED IN THIS AGREEMENT, DEVELOPER MAKES NO OTHER WARRANTIES, EXPRESS OR | |
| # IMPLIED, AND HEREBY DISCLAIMS ALL IMPLIED WARRANTIES, INCLUDING ANY WARRANTY OF | |
| # MERCHANTABILITY AND WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE. |
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
| #!/usr/bin/env bash | |
| # vim: ft=bash | |
| # | |
| # © 2025 Konstantin Gredeskoul | |
| # http://github.com/kigster | https://kig.re | |
| # | |
| # This script allows you to export the list of your VSCode | |
| # extensions and import them into, eg. Cursor IDE. Or the | |
| # other way around. By the default the script continues on | |
| # import errors because there are typically quite a few. |
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 | |
| if [[ ! -L lib || ! -L bootstrap ]]; then | |
| [[ -z $(which curl) ]] && { | |
| printf "Curl is required for this operation. Please install it with\n" | |
| printf "brew install curl\n" | |
| exit 1 | |
| } | |
| curl -fsSL "http://bit.ly/bashmatic-bootstrap" | /usr/bin/env bash | |
| fi |
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" |
NewerOlder