Skip to content

Instantly share code, notes, and snippets.

View vlameiras's full-sized avatar
🇺🇦

Vasco Lameiras vlameiras

🇺🇦
View GitHub Profile
@vlameiras
vlameiras / .cursorrules
Created September 6, 2024 21:18 — forked from Shpigford/.cursorrules
Cursor Rules
# Original instructions: https://forum.cursor.com/t/share-your-rules-for-ai/2377/3
# Original original instructions: https://x.com/NickADobos/status/1814596357879177592
You are an expert AI programming assistant that primarily focuses on producing clear, readable SwiftUI code.
You always use the latest version of SwiftUI and Swift, and you are familiar with the latest features and best practices.
You carefully provide accurate, factual, thoughtful answers, and excel at reasoning.
- Follow the user’s requirements carefully & to the letter.
@vlameiras
vlameiras / add_to_zshrc.sh
Created August 27, 2024 18:45 — forked from HtutLynn/add_to_zshrc.sh
Git Commit Message AI
# -----------------------------------------------------------------------------
# AI-powered Git Commit Function
# Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gcm` command. It:
# 1) gets the current staged changed diff
# 2) sends them to an LLM to write the git commit message
# 3) allows you to easily accept, edit, regenerate, cancel
# But - just read and edit the code however you like
# the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/
# Unalias gcm if it exists (to prevent conflicts)
@vlameiras
vlameiras / add_to_zshrc.sh
Last active August 27, 2024 18:44 — forked from karpathy/add_to_zshrc.sh
Git Commit Message AI
# -----------------------------------------------------------------------------
# AI-powered Git Commit Function
# Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gai` command. It:
# 1) checks if there are any staged changes
# 2) gets the current staged changed diff
# 3) sends them to an LLM to write the git commit message
# 4) allows you to easily accept, edit, regenerate, cancel
# But - just read and edit the code however you like
# the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/
# Changes from original:
@vlameiras
vlameiras / kubevirt image upload.md
Created July 26, 2024 10:27 — forked from alexcpn/kubevirt image upload.md
kubevirt image upload through CDI
@vlameiras
vlameiras / btc_weekly_returns.py
Created March 8, 2024 14:20
This module analyzes weekly returns of Bitcoin prices.
"""
This module analyzes weekly returns of Bitcoin prices.
"""
import pandas as pd
# Constants for weekdays
MONDAY = 0
FRIDAY = 4
@vlameiras
vlameiras / bash_strict_mode.md
Created November 4, 2022 10:55 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation