|
7 | 7 | "source": [
|
8 | 8 | "# ShellSage\n",
|
9 | 9 | "\n",
|
10 |
| - "> ShellSage saves sysadmins’ sanity by solving shell script snafus super swiftly\n", |
| 10 | + "> ShellSage saves sysadmins' sanity by solving shell script snafus super swiftly\n", |
11 | 11 | "\n",
|
12 |
| - "ShellSage is an AI-powered command-line assistant that integrates seamlessly with your terminal workflow through tmux. It provides contextual help for shell operations, making it easier to navigate complex command-line tasks, debug scripts, and manage your system." |
| 12 | + "ShellSage is an AI-powered command-line assistant that integrates seamlessly with your terminal workflow through tmux. It provides contextual help for shell operations, making it easier to navigate complex command-line tasks, debug scripts, and manage your system.\n", |
| 13 | + "\n", |
| 14 | + "[](https://badge.fury.io/py/shell-sage)\n", |
| 15 | + "[](https://www.python.org/downloads/)\n", |
| 16 | + "[](https://opensource.org/licenses/MIT)\n", |
| 17 | + "[](https://answerdotai.github.io/shell_sage/)" |
13 | 18 | ]
|
14 | 19 | },
|
15 | 20 | {
|
|
192 | 197 | "```"
|
193 | 198 | ]
|
194 | 199 | },
|
| 200 | + { |
| 201 | + "cell_type": "markdown", |
| 202 | + "id": "47d6bfb8", |
| 203 | + "metadata": {}, |
| 204 | + "source": [ |
| 205 | + "### Advanced Use Cases\n", |
| 206 | + "\n", |
| 207 | + "#### Git Workflow Enhancement\n", |
| 208 | + "```sh\n", |
| 209 | + "# Review changes before commit\n", |
| 210 | + "git diff | ssage summarize these changes\n", |
| 211 | + "\n", |
| 212 | + "# Get commit message suggestions\n", |
| 213 | + "git diff --staged | ssage suggest a commit message\n", |
| 214 | + "\n", |
| 215 | + "# Analyze PR feedback\n", |
| 216 | + "gh pr view 123 | ssage summarize this PR feedback\n", |
| 217 | + "```\n", |
| 218 | + "\n", |
| 219 | + "#### Log Analysis\n", |
| 220 | + "```sh\n", |
| 221 | + "# Quick error investigation\n", |
| 222 | + "journalctl -xe | ssage what's causing these errors?\n", |
| 223 | + "\n", |
| 224 | + "# Apache/Nginx log analysis\n", |
| 225 | + "tail -n 100 /var/log/nginx/access.log | ssage analyze this traffic pattern\n", |
| 226 | + "\n", |
| 227 | + "# System performance investigation\n", |
| 228 | + "top -b -n 1 | ssage explain system resource usage\n", |
| 229 | + "```\n", |
| 230 | + "\n", |
| 231 | + "#### Docker Management\n", |
| 232 | + "```sh\n", |
| 233 | + "# Container troubleshooting\n", |
| 234 | + "docker logs my-container | ssage \"what is wrong with this container?\"\n", |
| 235 | + "\n", |
| 236 | + "# Image optimization\n", |
| 237 | + "docker history my-image | ssage suggest optimization improvements\n", |
| 238 | + "\n", |
| 239 | + "# Compose file analysis\n", |
| 240 | + "cat docker-compose.yml | ssage review this compose configuration\n", |
| 241 | + "```\n", |
| 242 | + "\n", |
| 243 | + "#### Database Operations\n", |
| 244 | + "```sh\n", |
| 245 | + "# Query optimization\n", |
| 246 | + "psql -c \"EXPLAIN ANALYZE SELECT...\" | ssage optimize this query\n", |
| 247 | + "\n", |
| 248 | + "# Schema review\n", |
| 249 | + "pg_dump --schema-only mydb | ssage review this database schema\n", |
| 250 | + "\n", |
| 251 | + "# Index suggestions\n", |
| 252 | + "psql -c \"\\di+\" | ssage suggest missing indexes\n", |
| 253 | + "```" |
| 254 | + ] |
| 255 | + }, |
195 | 256 | {
|
196 | 257 | "cell_type": "markdown",
|
197 | 258 | "id": "73adb8a7",
|
|
0 commit comments