This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg -i input.mov \ | |
| -vf "scale=1000:-2,fps=24" \ # Resize to 1000px wide (even height), reduce to 24fps | |
| -c:v libx264 \ # Encode video using H.264 (best web compatibility) | |
| -crf 26 \ # Quality setting (higher = smaller file, good for background videos) | |
| -preset slow \ # Better compression efficiency (smaller size, slower encode) | |
| -pix_fmt yuv420p \ # Use widely supported pixel format (Safari / mobile safe) | |
| -movflags +faststart \ # Move MP4 metadata to front for instant streaming playbac | |
| output.mp4 | |
| Optional |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gcloud compute instances create my-instance-name \ | |
| --zone=us-central1-a \ | |
| --machine-type=e2-micro \ | |
| --network-tier=STANDARD \ | |
| --image-family=debian-12 \ | |
| --image-project=debian-cloud \ | |
| --boot-disk-size=30GB \ | |
| --boot-disk-type=pd-balanced \ | |
| --tags=http-server,https-server \ | |
| --provisioning-model=STANDARD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This script was generated with Claude Code | |
| set -euo pipefail | |
| explain_command() { | |
| local command="$1" | |
| local api_key="${OPENAI_API_KEY:?Error: OPENAI_API_KEY not set}" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| terraform { | |
| required_providers { | |
| google = { | |
| source = "hashicorp/google" | |
| version = "~> 6.0" | |
| } | |
| } | |
| } | |
| provider "google" { |
OlderNewer