Skip to content

Instantly share code, notes, and snippets.

View luizeboli's full-sized avatar
🌎
🌞 🌴 🌊 πŸ„ Let's do this!

Luiz Felicio luizeboli

🌎
🌞 🌴 🌊 πŸ„ Let's do this!
View GitHub Profile
@luizeboli
luizeboli / 00 - Cursor AI Prompting Rules.md
Created April 28, 2025 14:08 — forked from aashari/00 - Cursor AI Prompting Rules.md
Cursor AI Prompting Rules - This gist provides structured prompting rules for optimizing Cursor AI interactions. It includes three key files to streamline AI behavior for different tasks.

Cursor AI Prompting Framework Usage Guide

This guide explains how to use the structured prompting files (core.md, refresh.md, request.md) to optimize your interactions with Cursor AI, leading to more reliable, safe, and effective coding assistance.

Core Components

  1. core.md (Foundational Rules)
    • Purpose: Establishes the fundamental operating principles, safety protocols, tool usage guidelines, and validation requirements for Cursor AI. It ensures consistent and cautious behavior across all interactions.
    • Usage: This file's content should be persistently active during your Cursor sessions.
@luizeboli
luizeboli / Dropdown.md
Last active July 12, 2023 11:47
Dropdown Exercise

Dropdown

This is a dropdown component built using the composition pattern. The idea behind using composition is to provide a reusable interface and flexibility so consumers can implement their logic outside the original component, avoiding increasing it's complexity overtime. From an account picker to a settings menu, the final result is up to you.

You can see a live example in this CodeSandbox

Usage

import * as Dropdown from 'src/Dropdown'
@luizeboli
luizeboli / virtualized-list.js
Created July 11, 2022 13:25
A virtualized list component
import React, { useEffect, useReducer, memo, useRef } from "react";
import debounce from "lodash.debounce";
const VirtualizedList = ({
itemHeight,
getItemsToRender,
overscan,
renderItem,
totalItems,
parentRef,
@luizeboli
luizeboli / multiple_ssh_setting.md
Created February 5, 2021 18:22 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
Backup specifc database
docker exec -i database pg_dump --u postgres DATABASE_NAME_HERE > DUMP_`date +%d-%m-%Y"_"%H_%M_%S`.sql
Backup all databases
docker exec -t -u postgres CONTAINER_NAME_HERE pg_dumpall -c > DUMP_`date +%d-%m-%Y"_"%H_%M_%S`.sql
to restore:
cat YOUR_FILE.sql | docker exec -i CONTAINER_NAME_HERE psql -U USER_NAME_HERE -d DATABASE_NAME_HERE
@luizeboli
luizeboli / gist:2456f294aaaf2eacfff3c245238e6053
Created March 11, 2020 10:44 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: