这是indexloc提供的服务,不要输入任何密码
Skip to content

Instantly share code, notes, and snippets.

@okineadev
okineadev / commit-message-guidelines.md
Last active July 26, 2025 16:19
🤖 Copilot commit messages instructions for VS Code

Paste it to settings.json:

"github.copilot.chat.commitMessageGeneration.instructions": [
  {
    "text": "Follow the Conventional Commits format strictly for commit messages. Use the structure below:\n\n```\n<type>[optional scope]: <gitmoji> <description>\n\n[optional body]\n```\n\nGuidelines:\n\n1. **Type and Scope**: Choose an appropriate type (e.g., `feat`, `fix`) and optional scope to describe the affected module or feature.\n\n2. **Gitmoji**: Include a relevant `gitmoji` that best represents the nature of the change.\n\n3. **Description**: Write a concise, informative description in the header; use backticks if referencing code or specific terms.\n\n4. **Body**: For additional details, use a well-structured body section:\n   - Use bullet points (`*`) for clarity.\n   - Clearly describe the motivation, context, or technical details behind the change, if applicable.\n\nCommit messages should be clear, informative, and professional, aiding readability and project tracking."
  }
]
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active July 26, 2025 16:18
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@snarktank
snarktank / README.md
Created July 26, 2025 09:31
Pre-commit Hook with Amp Oracle Review

Pre-commit Hook with Amp Oracle Review

A minimal Husky pre-commit hook with AI-powered code review via Amp's Oracle feature.

Features

  • 🔮 AI Code Review: Optional Oracle review via Amp before committing
  • 🧪 Test Validation: Runs all tests before allowing commit
  • Minimal & Fast: No unnecessary dependencies
  • 🌍 Universal: Works with any Node.js project
@taslabs-net
taslabs-net / pve9tb4.md
Last active July 26, 2025 16:18
Thunderbolt4 mesh network
@roberth
roberth / minimod.nix
Last active July 26, 2025 16:14
Simple and quick module system alternative + thoughts and tasks
/*
minimod: A stripped down module system
TODO Comparison:
- [ ] Come up with a benchmark "logic" using plain old functions and let bindings
- [ ] Write the benchmark for the module system
- [ ] Write the benchmark for POP?
- [ ] Qualitative comparison of extensibility in the context of composable
Nixpkgs packaging logic
TODO Fine-tuning:
@tdcosta100
tdcosta100 / WSL2GUIWSLg-XWayland-en.md
Last active July 26, 2025 16:11
A tutorial to use GUI in WSL2/WSLg replacing original Xorg by Xwayland, allowing WSL to work like native Linux, including login screen

Full desktop shell in WSL2 using WSLg (XWayland)

Note

If you want to use Wayland in WSLg in a simpler setup, you can try the WSLg (Wayland) tutorial.

In this tutorial, we will setup GUI in WSL2. No additional software outside WSL (like VcXsrv or GWSL) is required. You will find this tutorial very similar to the one that replaces Xorg with Xvnc. Indeed, it's pretty much the same tutorial, with some few changes.

The key component we need to install is the desktop metapackage you want (GNOME, KDE, Xfce, Budgie, etc), and after that, replace the default Xorg by a script that calls Xwayland instead.

For this setup, I will use Ubuntu 24.04, and install GNOME Desktop. Unfortunately older versions of Ubuntu lack some fundamental things, so we cannot reproduce it in older versions (at least not fully). Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the [Sample screenshot

@oyeb
oyeb / cse_em_gmail.md
Created July 18, 2017 16:33
Operating IIT Bombay CSE account with Android Gmail App

Adding your CSE email account to Gmail android app

  1. Goto Gmail > Settings > Add Account.
  2. Choose Other and enter you CSE email ID, xxx@cse.iitb.ac.in.

Imgur

  1. Choose IMAP

Imgur

@CypherpunkSamurai
CypherpunkSamurai / spec.md
Last active July 26, 2025 16:10
Kiro AI System Prompt

System Prompt

Identity

You are Kiro, an AI assistant and IDE built to assist developers.

When users ask about Kiro, respond with information about yourself in first person.

You are managed by an autonomous process which takes your output, performs the actions you requested, and is supervised by a human user.

You talk like a human, not like a bot. You reflect the user's input style in your responses.

@Nav-Appaiya
Nav-Appaiya / movies.csv
Created January 10, 2016 19:44
Movielens movies csv file
movieId title genres
1 Toy Story (1995) Adventure|Animation|Children|Comedy|Fantasy
2 Jumanji (1995) Adventure|Children|Fantasy
3 Grumpier Old Men (1995) Comedy|Romance
4 Waiting to Exhale (1995) Comedy|Drama|Romance
5 Father of the Bride Part II (1995) Comedy
6 Heat (1995) Action|Crime|Thriller
7 Sabrina (1995) Comedy|Romance
8 Tom and Huck (1995) Adventure|Children
9 Sudden Death (1995) Action
@CleilsonAndrade
CleilsonAndrade / android-wsl-windows-adb-setup-guide.md
Created July 26, 2025 16:05
Step-by-step guide to set up the Android development environment on WSL, including Java, SDKMAN, Android SDK CLI tools, and how to use the Windows ADB seamlessly within WSL.

Guia Completo: Configuração do Ambiente Android no WSL + ADB do Windows

Este tutorial ensina como configurar Java, SDKMAN, Android SDK (CLI) no WSL e usar o ADB do Windows (sem precisar do ADB no Linux).


1. Pré-requisitos

  • Windows 10/11 com WSL 2 instalado.
  • Ubuntu (ou outra distro) como sistema no WSL.