Claude Code 2.1.27 occasionally drops long-running chats from /resume even though
the per-session .jsonl files still exist. This script rescans a given ~/.claude/ projects/<project> directory, re-derives every entry’s metadata, and rewrites
sessions-index.json so /resume can list every session again.
| # gtr ─ Git worktree helper | |
| # | |
| # Examples | |
| # -------- | |
| # gtr create feature0 # add ~/code/worktrees/feature0 (branch claude/feature0) | |
| # gtr create feat1 feat2 # add two worktrees at once | |
| # gtr rm feature0 # remove the worktree directory | |
| # gtr cd feature0 # jump into the worktree directory | |
| # gtr claude feature0 # run `claude` while inside that worktree | |
| # |
I just implemented a simple but really powerful user command suggested by romainl in lua, running asynchronously using vim.uv API.
In short, this is a command named Redir, which redirect ex command or shell commands stdin/sterr to neovim buffers. So you can view them in split window on the fly.
With Redir, you can do:
- A good way to inspect your neovim.
" show all your messages in split, I love this one and make it defaultJenv is great, but the JDKs have to be manually installed. If you need more than just a couple of them, you'll want to be able to install them via command line, and sdkman provides this capability very cleanly for java. So... is it possible to work with both sdkman and jenv? Yes and no. Some tricks will allow you to tell jenv about the java versions that are managed by sdkman, but setting defaults (using jenv local 17.0 for instance) does not work very well. Time for a cleaner solution. Sdkman provides all of the same functionality, with more power and a slightly different (but equally simple) syntax. I've switched from jenv to sdkman. Here's my cheat sheet.
Download and install sdkman. Follow the required instructions after installing. Then, run the config command to enable auto_env support.
echo “Installing SDKMAN"
curl -s https://get.sdkman.io | bash
NOTE: Kafkacat is renamed to kcat recently and the config variable should be KCAT_CONFIG for version 1.7 onwards.
# you can export the variable or present the config with -F parameter for kafkacat
export KAFKACAT_CONFIG=/home/tools/persistent/kcat/kafkacat_config$ apt update
$ apt search awscli
$ apt install curl wget unzip -y
$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
$ unzip awscliv2.zip
$ ./aws/install
$ aws --version
aws-cli/2.1.28 Python/3.8.8 Linux/4.19.121-linuxkit exe/x86_64.ubuntu.20 prompt/off
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
| # MIT No Attribution | |
| # | |
| # Copyright 2022 Ben Kehoe | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
| # software and associated documentation files (the "Software"), to deal in the Software | |
| # without restriction, including without limitation the rights to use, copy, modify, | |
| # merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
| # permit persons to whom the Software is furnished to do so. | |
| # |
| #!/bin/bash -xe | |
| ## Create a VPC Peering connection between EKS and RDS Postgres | |
| echo """ run this script as: | |
| ./eks-rds-peering.sh | |
| + read -p 'Enter name of EKS Cluster: ' EKS_CLUSTER | |
| Enter name of EKS Cluster: xolv-dev-cluster | |
| + EKS_VPC=eksctl-xolv-dev-cluster-cluster/VPC | |
| + EKS_PUBLIC_ROUTING_TABLE=eksctl-xolv-dev-cluster-cluster/PublicRouteTable | |
| + read -p 'Enter name of RDS: ' RDS_DB_NAME | |
| Enter name of RDS: sfstackuat |
| # the `update-function-configuration` overwrites the existing set envars. | |
| # In order to *ADD* variables we need to read the existing envars and add to that. | |
| # This command uses `jq` to read and transform the json result to an envar then update the lambda configuration | |
| # create the updated envar set | |
| export YOUR_FUNCTION_NAME={populate this} | |
| export UPDATED_ENVIRONMNET_VARIABLES=$(aws lambda get-function-configuration --function-name ${YOUR_FUNCTION_NAME} | \ | |
| jq --compact-output ".Environment + {\"Variables\": (.Environment.Variables + {\"NEW_ENVAR_NAME\": \"NEW_ENVAR_VALUE\"})}") | |
| # check |