Skip to content

Instantly share code, notes, and snippets.

@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"
@moisoto
moisoto / HUGO_Restricted-Website.md
Last active June 17, 2025 17:44
Installing an Oauth2-Proxy Restricted Hugo Website

Installing an Oauth2-Proxy Restricted Hugo Website

The purpose of this document is to detail the installation procedure for a Hugo Website with restricted access via Google's Oauth2-Proxy.

Such installation will be performed on a Debian OS, however it should apply with minor modifications to any Linux server.

Preparing the Server

Upgrade Debian Packages

@moisoto
moisoto / 7etsuo-X-articles.md
Created March 21, 2025 22:29
Tetsuo X Articles

Tetsuo X Articles

An organized list of interesting article from Tetsuo

ML in C

  • Article 0/4: Classification, Regression, and Feed-Forward Neural Networks.
  • Article 1/4: Introduction to Machine Learning in C With TensorFlow C API.
@moisoto
moisoto / t2c.zsh
Last active December 11, 2024 03:32 — forked from nachoal/t2c.zsh
Text-to-Command (t2c): Convert natural language to shell commands using Ollama LLMs A zsh function that converts natural language queries into shell commands using Ollama's local API. Ask for commands in plain English, review them before execution. Customizable to use any Ollama model. Example: t2c list all python files modified in the last week
#!/bin/zsh
# Function to convert natural language queries into Unix commands using Ollama's API
# Usage: t2c list files in current folder
# Requirements: curl, jq, and Ollama running locally on port 11434
# Remember to run the command: source t2c.zsh
# in order for the command t2c to be available in your current shell session
t2c() {
@moisoto
moisoto / macOS_oh-my-zsh_plugins.md
Created April 22, 2024 21:31
macOS: Oh-My-ZSH Plugins

Oh-My-ZSH Plugins

These plugins will work standalone on many Linux OS, or directly on your ~/.zshrc I'll list here the way to install them on Oh-My-ZSH but will list the repositories in case you want to install them in other fashion.

zsh-autosuggestions

To install on Oh-My-ZSH run the following:

@moisoto
moisoto / GitHub_Publishing_GO_Package.md
Created December 7, 2023 23:12
GitHub - Publishing you Go Package

Publishing your Package

Go Module!

If you haven't already go and make your package a module:

# This assumes you have your package located at ~/go/src/github.com/your_account/your_package
go mod init github.com/your_account/your_package
go mod tidy