Skip to content

Instantly share code, notes, and snippets.

@moisoto
moisoto / git_pull-request-workflow.md
Created August 26, 2026 17:01
Git Pull Request Workflow with GitHub CLI

Git Pull Request Workflow with GitHub CLI

This document explains how to properly manage pull requests using GitHub CLI.

The examples provided use main as the default branch. Replace it with master or another default branch name when applicable.

Install GitHub CLI

@moisoto
moisoto / git_version-tagging-workflow.md
Created August 26, 2026 16:59
Git Version Tagging Workflow

Git Version Tagging Workflow

Even for simple projects, it is good practice to explicitly identify versions in your repository. This document describes a workflow for creating and publishing version tags. We will use the convention called SemVer for the version numbering scheme.

The examples provided use main as the default branch. Replace it with master or another default branch name when applicable.

Listing your tags

@moisoto
moisoto / Mactop-Prometheus-Grafana.md
Created July 28, 2026 19:37
Setting Up Mactop + Prometheus + Grafana

Mactop + Prometheus + Grafana

This guide shows the steps needed to setup Mactop for use with Grafana using Prometheus as a data source.

About Mactop and Grafana

Mactop is a resource monitor tool for use on the terminal. You can use it like you would use tools like top, htop, btop, asitop, etc.

One of the "extra features" you get with MacTop is a built-in Prometheus exporter.

@moisoto
moisoto / MS-Build-2026.md
Created June 18, 2026 17:32
Microsoft Build 2026
@moisoto
moisoto / WWDC26.md
Last active June 18, 2026 14:50
My WWDC26 Favorite Sessions
@moisoto
moisoto / AI-ToolBox_ClaudeCode-101.md
Last active January 15, 2026 23:20
AI Toolbox - Claude Code 101

Claude Code Development 101

What follows is my primer on Claude Code Developent.

Entering Plan Mode

Plan Mode is useful for exploring your system architecture and implementation philosophy.

To enter plan mode manually, just press Shift+Tab twice.

@moisoto
moisoto / GrokConv-SpaceshipTravel.md
Created September 20, 2025 14:25
Spaceship travel at relativistic speed - A Grok conversation

Spaceship travel at relativistic speed

Shared Grok Conversation

Acceleration Considerations

Query: I’ve been thinking about spaceship travel near speed of light and have some questions. Let’s start by acceleration implications. Is 2Gs acceleration too much for the average person?

Answer: The average person can tolerate 2G (about 19.6 m/s²) of acceleration for short durations—typically minutes to hours—without severe issues, especially if they're in a reclined position to minimize blood pooling and cardiovascular strain (e.g., like astronauts during launch). However, for sustained periods like days or longer, 2G would likely be too much for most people, leading to significant discomfort and potential health risks. These include increased body weight sensation (making movement difficult), drooping of facial and soft tissues, higher pressure on the lower body, elevated heart rate, and possible long-term effect

@moisoto
moisoto / README.md
Created August 17, 2025 04:02
Compile std module for use on Linux / MacOS

Compile std module for use on Linux/MacOS

This example will compile the std module using the official gcc docker image.

Requirements

Make sure you have docker installed and the latest gcc image:

docker pull gcc
@moisoto
moisoto / README.md
Last active August 17, 2025 03:58
Precompile and use standard modules

Precompile and use standard modules

This example will compile the following module files:

  • iostream.gcm
  • utility.gcm
  • vector.gcm
  • algorithm.gcm
  • functional.gcm
  • string.gcm
@moisoto
moisoto / uv-mlx-chat.sh
Last active August 18, 2025 21:07
Script for using MLX-Chat as a UV Project
# Check if uv is installed
if ! command -v uv >/dev/null 2>&1; then
echo "Error: uv is not installed or not in PATH"
echo "Please install uv: https://docs.astral.sh/uv/getting-started/installation/"
exit 1
fi
PRJ="uv-mlx-chat"
if [[ -d $PRJ ]] ; then
echo "Project already exists"