Skip to content

Instantly share code, notes, and snippets.

View cebreus's full-sized avatar

Jaroslav Vrána cebreus

View GitHub Profile
@cebreus
cebreus / gcm.js
Last active November 8, 2025 20:38
AI-powered CLI for conventional commits, PRs & branch names from git diff
#!/usr/bin/env node
/*
gcm.js — Generate conventional commit messages, branch names and PR
descriptions using Google Gemini (Generative Language API).
Usage:
- Default (staged changes):
./gcm.js
- For a specific commit (SHA):
@cebreus
cebreus / seo-tags.js
Created January 31, 2023 04:08
Extract SEO meta data -- Chrome DevConsole snippet
const metatags = document.querySelectorAll("meta[name], meta[property]");
const seometatags = {};
for (const meta of metatags) {
const key = meta.getAttribute("name") || meta.getAttribute("property");
const value = meta.getAttribute("content");
seometatags[key] = value;
}
const orderedMetatags = {
title: seometatags.title,
# Project Title
One Paragraph of project description goes here
## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and production build purposes.
### Prerequisites