Skip to content

Instantly share code, notes, and snippets.

View melonamin's full-sized avatar
🦄
magic

Alex Mazanov melonamin

🦄
magic
View GitHub Profile
@melonamin
melonamin / calude.md
Created June 12, 2025 19:38
Claude Code usage tips and tricks
  • Write ultra-precise prompts — state edge cases, implicit assumptions, and concrete examples; Claude can’t guess them.
  • Ask Claude to “ultrathink” when deeper multi-step reasoning is needed.
  • Use planning mode (Shift+Tab twice) or another model for high-level design before coding.
  • Delegate with the Task tool — spawn specialist sub-agents (design, research, etc.) to tackle parts in parallel.
  • Make Claude RTFM first — link docs or start a research Task so it learns the latest best practices before scaffolding.
  • Start new threads often — run /clear to reset context and cut drift when you switch topics.
  • Restart with --resume to branch without losing work.
  • Use claude --dangerously-skip-permissions" to avoid constant prompts, but 1) it's probably better run in a container 2) mind the limits, it will eat them fast
  • Dictate long prompts with voice-to-text; Claude copes well with messy transcripts.
  • Stage early, stage often — git add after each good turn to simplify rollbacks.
@melonamin
melonamin / GetFavoritePhotos.swift
Created September 21, 2024 01:20
Script to get filenames of Favorite photos from Photos.app
import Foundation
import Photos
func requestPhotoLibraryAccess(completion: @escaping (Bool) -> Void) {
PHPhotoLibrary.requestAuthorization { status in
completion(status == .authorized)
}
}
func fetchFavoritePhotos(startDate: Date) -> PHFetchResult<PHAsset> {
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title FSNotes Create New Note
# @raycast.mode silent
# Optional parameters:
# @raycast.icon ./images/fsnotes-icon.png
# @raycast.packageName FSNotes
@melonamin
melonamin / init.sh
Created September 1, 2022 23:24
dotfiles git stepup
git init --bare $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc
- Haken
- Flying Colors
- John Petrucci
- The Dear hunter
- The Winery Dogs
- Lunatica
- Devin Townsend
- Therion (Beloved Antichrist)
- Toehider
- Aurora

Keybase proof

I hereby claim:

  • I am melonamin on github.
  • I am melonamin (https://keybase.io/melonamin) on keybase.
  • I have a public key whose fingerprint is 0A39 2EAC 485F 8A9B 7446 75D9 F99F 0A92 2E8C 58EE

To claim this, I am signing this object: