Skip to content

Instantly share code, notes, and snippets.

View massahud's full-sized avatar

Geraldo Massahud massahud

View GitHub Profile
@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
)
@massahud
massahud / README.MD
Last active September 22, 2020 21:05
Minecraft bedrock server on aws lightsail
  1. create an lightsail OS Only Ubuntu instance
  2. turn on port forwarding of UDP
  3. set static ip
  4. ssh into the instance
  5. create and cd to /minecraft directory
  6. wget and unzip the latest bedrock server for ubuntu (https://www.minecraft.net/en-us/download/server/bedrock)
  7. create a run.sh (chmod 755) script with the following code:
#!/bin/bash
LD_LIBRARY_PATH=. ./bedrock_server