👌1
👍1
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
🤯1
Get Your JetBrains IDEs
#JetBrains #ide
sudo cat ~/.local/share/JetBrains/Toolbox/state.json | jq .
{
"version": 1,
"appVersion": "3.0.1.59888",
"tools": [
...
{
"channelId": "PhpStorm-cf47a5cd-3dd5-43d2-8616-f4b00efe4ffe",
"toolId": "PhpStorm",
"productCode": "PS",
"tag": "php-storm",
"displayName": "PhpStorm",
"displayVersion": "2025.1.1",
"buildNumber": "251.25410.148",
"installLocation": "/home/romaxa/.local/share/JetBrains/Toolbox/apps/phpstorm",
"launchCommand": "/home/romaxa/.local/share/JetBrains/Toolbox/apps/phpstorm/bin/phpstorm"
},
...
]
}#JetBrains #ide
Git Post Push Emulation
#git #hook #prepush #postpush
nano .git/hooks/pre-push
#!/bin/bash
# .git/hooks/pre-push
unset SSH_ASKPASS
unset SSH_ASKPASS_REQUIRE
notify-send \
--urgency=normal \
--expire-time=8000 \
--icon=emblem-ok \
--category=transfer.complete \
"Git Push Started"
remote="$1"
url="$2"
while read local_ref local_sha remote_ref remote_sha
do
branch=$(basename "$local_ref")
(
start_time=$(date +%s)
# Ждём завершения push
while pgrep -P $PPID "git" >/dev/null 2>&1; do
sleep 0.3
done
sleep 1.5
end_time=$(date +%s)
duration=$((end_time - start_time))
commits_count=$(git rev-list --count "$remote_sha..$local_sha" 2>/dev/null || echo "unknown")
details="Branch: $branch\nRemote: $remote\nCommits: $commits_count\nDuration: ${duration}s"
notify-send \
--urgency=normal \
--expire-time=8000 \
--icon=emblem-ok \
--category=transfer.complete \
"Git Push Complete" \
"$details"
sshpass -p 123Pass ssh root@8.8.8.8 "cd /var/www/portfolio/ && git pull"
status=$?
if [ $status -eq 0 ]; then
notify-send \
--urgency=normal \
--icon=emblem-default \
"Git: Деплой успешен" \
"Коммиты отправлены и pull успешно выполнен."
else
notify-send \
--urgency=critical \
--icon=dialog-error \
"Git: Ошибка деплоя" \
"ssh завершился с кодом $status.\nПроверь соединение или пароль."
fi
) 2>/dev/null &
disown
done
exit 0
chmod +x .git/hooks/pre-push
#git #hook #prepush #postpush
https://docs.anthropic.com/en/docs/claude-code/hooks
There is an idea to make automatic generation of commit messages)
There is an idea to make automatic generation of commit messages)
Claude Code Docs
Hooks reference - Claude Code Docs
Reference for Claude Code hook events, configuration schema, JSON input/output formats, exit codes, async hooks, HTTP hooks, prompt hooks, and MCP tool hooks.
Smart 🧠 Fullstack
Temporary Disable CORS in Google Chrome google-chrome --disable-web-security --user-data-dir="/tmp/chrome_dev_session" alias no-cors='google-chrome --disable-web-security --user-data-dir="/tmp/chrome_dev_session"' #cors
Claude
Customize Claude Code with plugins | Claude
Claude Code now supports plugins: custom collections of slash commands, agents, MCP servers, and hooks that install with a single command. Share your Claude Code setup with plugins Slash commands, agents, MCP servers, and hooks are all extension points you…