Skip to content

Instantly share code, notes, and snippets.

View massahud's full-sized avatar

Geraldo Massahud massahud

View GitHub Profile
@massahud
massahud / prepare-commit-msg
Created January 28, 2026 14:32
git: add ticket id from branch name as template commit message. Original from atlassian's https://github.com/atlassian/atlascode/blob/9cd9ae156dd7666c3b71b027afe7513a17c16b12/scripts/prepare-commit-jira.sh
#!/bin/sh
#
# Original from: https://github.com/atlassian/atlascode/blob/9cd9ae156dd7666c3b71b027afe7513a17c16b12/scripts/prepare-commit-jira.sh
#
# git prepare-commit-msg hook for automatically prepending an issue key
# from the start of the current branch name to commit messages.
# This commit hook will extract a Jira issue key from your branch name (you are naming your branches with issue key’s aren’t you?) and append it to all commit messages so that many places across our products can glue commits together with issues.
#
@massahud
massahud / readme.md
Created November 17, 2025 14:20
Fix Ctrl+Space suggestions in MacOS VSCode

Fix Ctrl+Space in MacOS VSCode

MacOS input source shortcuts started to conflict with vscode's CTRL+SPACE, making it stop to show suggestions. To fix disable these keyboard shortcuts in macos settings:

  • Select the previous input source
  • Select next source in Input menu
@massahud
massahud / gnupg-curses.md
Last active November 13, 2025 16:39
GnuPG curses prompt

GnuPG curses prompt

Install pinentry-curses.

brew install pinentry-curses

Configure the agent to use pinentry-curses

echo 'export GPG_TTY=$(tty)' >> ~/.zshrc
@massahud
massahud / keybindings.json
Created November 10, 2025 12:38
vscode keybindings
// Place your key bindings in this file to override the defaults
[
{
"key": "alt+cmd+u",
"command": "editor.action.transformToUppercase"
},
{
"key": "shift+alt+cmd+u",
"command": "editor.action.transformToLowercase"
},
@massahud
massahud / gemini generated table.md
Last active November 6, 2025 13:38
Illustrious modifiers

💎 Quality & Detail Modifiers (Positive Prompt)

These tags directly influence the perceived quality, detail, and "finish" of the image.

Modifier (Tag) Description
"Magic" Tags (Highest impact for Noobai/Illustrious)
very awa (Noobai Specific) The most powerful tag, trained on the top 5% of aesthetically-rated images.
masterpiece A classic, high-tier tag for high-quality, artistic output.
best quality Similar to masterpiece, strongly pushes for a clean, well-rendered image.
@massahud
massahud / PS5 video color correction for youtube.md
Created February 20, 2025 17:29
PS5 video color correction for youtube
@massahud
massahud / Remove date from jupyter exported pdf.md
Created December 2, 2022 14:31
Remove date from jupyter exported pdf

Remove date from jupyter exported pdf

Add \date{} to share/jupyter/nbconvert/templates/latex/base.text.j2 anywhere before /maketitle (e.g. before the title block)

If you want to control it using the notebook metadata, add this instead:

    ((* if nb.metadata.get('nodate', false) *))
    \date{}
    ((* endif *))
@massahud
massahud / CODE PUNS.md
Last active November 29, 2022 13:19
Code Puns

Code Puns

echo "export GPG_TTY=$(tty)" >> ~/.zshrc
echo "pinentry-program $(which pinentry-curses)" >> ~/.gnupg/gpg-agent.conf
killall gpg-agent
source ~/.zshrc
echo test | gpg --clearsign
@massahud
massahud / ChunkSpliterator.java
Created June 2, 2022 14:28
Chunk spliterator - transforms Stream<X> into Stream<List<X>>
import java.util.ArrayList;
import java.util.List;
import java.util.Spliterator;
import java.util.function.Consumer;
import java.util.stream.Stream;
import java.util.stream.StreamSupport;
public class ChunkSpliterator<T> implements Spliterator<List<T>>
{