| name | description |
|---|---|
view-screen |
Use this skill when you need to inspect what is on the user's screen.
This skill will provide you with an image file for further analysis that
you can then analyze using the built-in look_at tool.
|
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 | |
| describe() { | |
| printf "name: dev-server\n" | |
| printf "description: %s\n" \ | |
| "Use this tool to run the development server." \ | |
| "The development server is a persistent process and automatically reloads when code changes are made." \ | |
| "Use the tail action to retrieve recent log lines." | |
| printf "action: string the action to take, one of start, stop or tail." | |
| } |
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 | |
| # lessopen - LESSOPEN preprocessor for JSON files | |
| # Usage: Set LESSOPEN="|lessopen %s" in your shell | |
| set -euo pipefail | |
| # Check if jq is available | |
| if ! command -v jq >/dev/null 2>&1; then | |
| exit 1 |
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 tclsh | |
| proc every {interval body} { | |
| while {true} { | |
| uplevel 1 $body | |
| after $interval set every_timer done | |
| vwait every_timer | |
| } | |
| } |
The existing form system has several design issues that create unnecessary complexity:
- Field names are auto-generated using
strings.ToLower(fieldType.Name) - Creates mismatches:
CurrencyCode→currencycodebut users expectcurrency_code - No control over field naming, leading to confusing APIs
texted is a scriptable, headless text editor intended to be used for
making automated edits to files on disk.
A texted program is a series of instructions.
No means of abstraction are provided by texted,
these are to be implemented at a higher level, by the application using texted.
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 | |
| [[ -v REPL_FILES ]] || declare -a REPL_FILES=() | |
| [[ -v REPL_CHECKSUM ]] || declare REPL_CHECKSUM | |
| repl.install() { | |
| local command | |
| declare -ga PROMPT_COMMAND | |
| for command in "${PROMPT_COMMAND[@]}"; do | |
| if [[ "$command" == "repl.load_if_changed" ]]; 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
| #!/usr/bin/env zsh | |
| # zsh uses its own line editor instead of readline: zle. | |
| # | |
| # keys are bound to zle widgets | |
| # | |
| # Plan: create a widget, bind it to a key | |
| # our custom zle widget for selecting a git branch using fzf | |
| yank_git_branch() { | |
| local branch=$(git branch | awk '{print $NF}' | fzf) |
I hereby claim:
- I am dhamidi on github.
- I am dhamidi (https://keybase.io/dhamidi) on keybase.
- I have a public key ASAcRDRzUZF29ScaAUK9d5sX1Qk1VFnYkk9LBxbfOgiW1wo
To claim this, I am signing this object:
Flattens YAML files to make them greppable
$ yq docker-compose.yml
version 3.3
services.redis.image redis:latest
services.redis.deploy.replicas 1
services.redis.ports.0.published 6379
services.redis.ports.0.target 6379
services.redis.ports.0.mode host
NewerOlder