Skip to content

Instantly share code, notes, and snippets.

View lajlev's full-sized avatar

Michael Lajlev lajlev

View GitHub Profile
@lajlev
lajlev / worktree-publish-to-gh-pages.md
Created March 23, 2020 11:48 — forked from ErickPetru/worktree-publish-to-gh-pages.md
Publishing a `dist` folder from `master` branch using **worktree** feature to `gh-pages` branch.

Setup

First of all, you need to have a gh-pages. If you don't have, create:

git branch gh-pages

This makes a branch based on the master HEAD. It would be okay but the files and the git history of master branch are not meaningful on gh-pages branch.

@lajlev
lajlev / espanso-password-expander.me
Last active May 12, 2025 15:06
Use Espanso as password expander
## Steps
1. Add password to keychain (Screenshot: https://u.lillefar.dk/q2BI5m)
2. Add snippet to espanso config file (default.yml) where some-password i identical to account name for your keychain.
```
- triggers: [":pass:"]
replace: "{{output}}"
vars:
- name: output
@lajlev
lajlev / howto.md
Created November 28, 2024 08:44
How to import Secrets.app password manager into Apple Passwords
  1. Export passwords from secrets as CSV file PixelSnap 2024-11-28 at 09 41 51
  2. Install brew install csvkit
  3. Reorder columns csvcut -c name,website,identifier,secret,notes,oneTimePassword credentials.csv > reordered.csv
  4. Rename columns sed '1s/.*/Title,URL,Username,Password,Notes,OTPAuth/' reordered.csv > credentials-ready-for-apple-passwords.csv

Git and Version Control (Claude Code & Antigravity)

Compatibility Note: The slash commands below (/branch, /m, /merge, /pr) are optimized for Claude Code and Antigravity.

Branch Management

  • Trigger with /branch.
  • Check the current branch and git status.
  • Use an LLM to suggest feature branch names based on the task.
  • Create and checkout new feature branches using the suggested names.
  • Push new branches to the remote repository; instructions can be provided by the LLM.