Skip to content

Instantly share code, notes, and snippets.

View macodesh's full-sized avatar
🏠
Working from home

Marlon Couto macodesh

🏠
Working from home
View GitHub Profile
@macodesh
macodesh / motion_utils.md
Last active September 26, 2023 19:10
Motion Utils

Funções Auxiliares para Animações com Framer Motion

Neste Gist, apresento algumas funções auxiliares que podem ser usadas com a biblioteca Framer Motion para criar animações pré-definidas, como fade in e slide. Você pode importar essas funções em seu projeto Framer Motion e usá-las para criar animações de forma mais fácil e rápida.

Observação: Certifique-se de importar a biblioteca Framer Motion em seu projeto antes de usar essas funções.

export const textVariant = (delay = 0) => {
  return {
@macodesh
macodesh / prompt_colors.md
Created September 7, 2023 18:06
Prompt Colors

Prompt Colors

Reset

  • Color_Off='\033[0m'

Regular Colors

  • Black='\033[0;30m'
  • Red='\033[0;31m'
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active August 28, 2025 10:58
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@andersevenrud
andersevenrud / alacritty-tmux-vim_truecolor.md
Last active August 22, 2025 16:38
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
@lisawolderiksen
lisawolderiksen / git-commit-template.md
Last active August 25, 2025 01:09
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the

@milanboers
milanboers / clone.bash
Last active April 24, 2025 16:49
Clone all repositories of a Github user
curl -s https://api.github.com/users/milanboers/repos | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone
@lmcneel
lmcneel / remove-node-modules.md
Last active July 31, 2025 14:34
How to remove node_modules after they have been added to a repo

How to remove node_modules

Create a .gitignore file

  1. Check for an existing .gitignore file in the project directory
ls -a
@clemtibs
clemtibs / Commit Formatting.md
Last active July 6, 2025 15:32
Angular Commit Format Reference Sheet

Commit Message Format

This specification is inspired by and supersedes the [AngularJS commit message format][commit-message-format].

We have very precise rules over how our Git commit messages must be formatted. This format leads to easier to read commit history.

Each commit message consists of a header, a body, and a footer.

@subfuzion
subfuzion / global-gitignore.md
Last active August 27, 2025 16:43
Global gitignore

There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process.

All other files should be in your own global gitignore file:

  • Create a file called .gitignore in your home directory and add any filepath patterns you want to ignore.
  • Tell git where your global gitignore file is.

Note: The specific name and path you choose aren't important as long as you configure git to find it, as shown below. You could substitute .config/git/ignore for .gitignore in your home directory, if you prefer.