If you are like me and usually let Claude Code run while you do something else, you can use hooks to let you know when it needs your input.
The following hook will use your mac's text-to-speech CLI tool to hear when Claude is waiting for you.
If you are like me and usually let Claude Code run while you do something else, you can use hooks to let you know when it needs your input.
The following hook will use your mac's text-to-speech CLI tool to hear when Claude is waiting for you.
#!/usr/bin/env sh | |
set -e | |
current_branch=$(git rev-parse --abbrev-ref HEAD) | |
gt ls -s -r | rg '(?<branch>[^ ]+)$' -o | rg -v '^(main|master)$' | \ | |
while read -r branch; do | |
gt co "${branch}" | |
git push --force-with-lease | |
done |
Make sure you have python, OpenFace and dlib installed. You can either install them manually or use a preconfigured docker image that has everying already installed:
docker pull bamos/openface
docker run -p 9000:9000 -p 8000:8000 -t -i bamos/openface /bin/bash
cd /root/openface
I hereby claim:
To claim this, I am signing this object:
Quick list of gopher gala repos with .go files. No more going through empty repos for judging! :)
# Always use the same tmux session in directories with git | |
attach_tmux_for_dirs_with_repos() { | |
if [ "$TERM" != "screen-256color" ]; then | |
if [ -d .git ]; then | |
SESSION_NAME=$(echo -n ${PWD//*\//}-tmux | tr . -) | |
tmux attach -t $SESSION_NAME || tmux new -s $SESSION_NAME | |
fi | |
fi | |
} | |
add-zsh-hook precmd attach_tmux_for_dirs_with_repos |
package main | |
import ( | |
"fmt" | |
"net/http" | |
"sync" | |
) | |
type LimitedRoundTripper struct { | |
inflight chan interface{} |
Given an 3rd party integrated with outbound webhooks, when a client writes a message mentioning another user (@user
) or channel (#channel
). The 3rd party receives a message containing the usrer/channel ID but the payload doesn't specify what user/channel that message corresponds to.
E.g. from https://github.com/ernesto-jimenez/slackline/issues/2
The following message
@blanca_tp: check out #general
/Users/ernesto/webmob-reports/webdevdata-latest//00/goolive.de_00e1e029f6b66ee4d6c2d6cb20a3d4d0.html.txt,meta,apple-mobile-web-app-capable,yes | |
/Users/ernesto/webmob-reports/webdevdata-latest//00/spark.ru_006d396650a3d177698dfc83631c1cad.html.txt,meta,apple-mobile-web-app-capable,yes | |
/Users/ernesto/webmob-reports/webdevdata-latest//01/hubic.com_01a371682d84564071cc4ebb7dd7b90d.html.txt,meta,apple-mobile-web-app-capable,yes | |
/Users/ernesto/webmob-reports/webdevdata-latest//01/ostrovok.ru_011d92c671691eefc4b39bae360dd511.html.txt,meta,apple-mobile-web-app-capable,yes | |
/Users/ernesto/webmob-reports/webdevdata-latest//01/traffichaus.com_01589fbfece5140e342e8b0b48065e11.html.txt,meta,apple-mobile-web-app-capable,yes | |
/Users/ernesto/webmob-reports/webdevdata-latest//02/goldenmoustache.com_02eab7bc0923a014e9b39de9b024d2c8.html.txt,meta,apple-mobile-web-app-capable,yes | |
/Users/ernesto/webmob-reports/webdevdata-latest//02/jing.fm_02856bfc25fcb5195920e40a67244338.html.txt,meta,apple-mobile-web-app-capable,yes | |
/Users/ernesto |