Skip to content

Instantly share code, notes, and snippets.

View massahud's full-sized avatar

Geraldo Massahud massahud

View GitHub Profile
@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>>
{
@massahud
massahud / bitmask.go
Last active May 3, 2021 10:17
Bitmask using iota in go. Playground link: https://play.golang.org/p/jKuDcNVt-iK
package main
import "fmt"
const (
A int8 = 1 << iota
B
C
)