Use gemini -p
for analyzing large codebases that exceed Claude's context limits.
Use @
syntax with paths relative to your working directory:
# Single file
gemini -p "@src/main.py Explain this file's purpose"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended | |
sed -i 's/robbyrussell/af-magic/g' ~/.zshrc | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
sed -i 's/plugins=(git)/plugins=(git zsh-autosuggestions z)/g' ~/.zshrc | |
source ~/.zshrc |
# from: <https://x.com/iannuttall/status/1965090297630826931> | |
cdx() { | |
if [[ "$1" == "update" ]]; then | |
npm install -g @openai/codex@latest | |
else | |
codex -m gpt-5 --yolo -c model_reasoning_effort="high" --search "$@" | |
fi | |
} | |
# Note: with auto confirmation. use at your own risk. thanks! |
#39 103.1 [1] Collecting page data ... | |
#39 104.0 [1] TypeError: Cannot read properties of undefined (reading 'match') | |
#39 104.0 [1] at C (.next/server/chunks/746.js:1:4246) | |
#39 104.0 [1] at E (.next/server/chunks/746.js:1:4344) | |
#39 104.0 [1] at F (.next/server/chunks/746.js:1:4796) | |
#39 104.0 [1] at new rv (.next/server/chunks/746.js:7:13698) | |
#39 104.0 [1] at 1133 (.next/server/app/api/inngest/route.js:1:7600) | |
#39 104.0 [1] at t (.next/server/webpack-runtime.js:1:511) | |
#39 104.0 [1] at 59912 (.next/server/app/api/inngest/route.js:77:10748) | |
#39 104.0 [1] at t (.next/server/webpack-runtime.js:1:511) |
import os | |
import gitlab | |
# GitLab API configuration | |
GITLAB_TOKEN = os.getenv("GITLAB_TOKEN") | |
GITLAB_URL = "https://xxx.gitlab.com" | |
gl = gitlab.Gitlab(url=GITLAB_URL, private_token=GITLAB_TOKEN) | |
# Project paths | |
SOURCE_PROJECT = "org_name/app-v2" |
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"title": "Kamal 2.0 Config", | |
"description": "Configuration schema for Kamal 2.0 deployment tool.", | |
"type": "object", | |
"properties": { | |
"service": { | |
"type": "string", | |
"description": "Name of your application. Used to uniquely configure containers." | |
}, |
DO NOT GIVE ME HIGH LEVEL SHIT, IF I ASK FOR FIX OR EXPLANATION, I WANT ACTUAL CODE OR EXPLANATION!!! I DON'T WANT "Here's how you can blablabla" | |
- Be casual unless otherwise specified | |
- Be terse | |
- Suggest solutions that I didn’t think about—anticipate my needs | |
- Treat me as an expert | |
- Be accurate and thorough | |
- Give the answer immediately. Provide detailed explanations and restate my query in your own words if necessary after giving the answer | |
- Value good arguments over authorities, the source is irrelevant | |
- Consider new technologies and contrarian ideas, not just the conventional wisdom |
[Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (user, line 0) | |
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (docs_components_stacks_vxrn_loader.js, line 0) | |
[Error] Unhandled Promise Rejection: TypeError: Importing a module script failed. | |
(anonymous function) (_virtual_vxs-entry-EZZ-1xld.js:89:8520) | |
[Error] Unhandled Promise Rejection: SyntaxError: Unexpected identifier 'No'. Expected '}' to end an object literal. | |
(anonymous function) (_virtual_vxs-entry-EZZ-1xld.js:89:8520) | |
[Error] Error loading loader – SyntaxError: Unexpected identifier 'No'. Expected '}' to end an object literal. | |
SyntaxError: Unexpected identifier 'No'. Expected '}' to end an object literal. | |
(anonymous function) (useLoader-DFumXRAL.js:1:623) | |
[Error] RootErrorBoundary.error – SyntaxError: Unexpected identifier 'No'. Expected '}' to end an object literal. |
compose_release() { | |
curl --silent "https://api.github.com/repos/docker/compose/releases/latest" | | |
grep -Po '"tag_name": "\K.*?(?=")' | |
} | |
if ! [ -x "$(command -v docker-compose)" ]; then | |
sudo curl -L https://github.com/docker/compose/releases/download/$(compose_release)/docker-compose-$(uname -s)-$(uname -m) \ | |
-o /usr/local/bin/docker-compose && sudo chmod +x /usr/local/bin/docker-compose | |
fi |
import axios from 'axios'; | |
const GITHUB_TOKEN = 'xxx'; | |
const GITHUB_USERNAME = 'xxx'; | |
axios.defaults.headers.common['Authorization'] = `token ${GITHUB_TOKEN}`; | |
const unstarRepo = async (repoFullName: string) => { | |
try { | |
await axios.delete(`https://api.github.com/user/starred/${repoFullName}`); |