Skip to content

Instantly share code, notes, and snippets.

@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
@moisoto
moisoto / git_workflow-simplified.md
Last active May 15, 2024 18:01
GIT - Workflow Simplified

Git Workflow Simplified

Create a local Repository

If you want to work on your machine and don't need a remote repository, or you want to upload your repository at a later time, you can create a local repository:

# Initialize a new repository
git init
@moisoto
moisoto / Git_private-repositories.md
Created November 16, 2023 17:44
GIT - Working with Private Repositories

Working with Private Repositories

Using SSH Authorization Key on Github

The first step will be to add your public key to github:

  • Go to Settings -> SSH and GPG Keys (currently https://github.com/settings/keys).
  • Create a SSH Authentication Key, you can use your current id_rsa public key (you should have the private key loaded on ~/.ssh/id_rsa).
  • You can clone your private repository by using the git clone command like this:
git clone [email protected]/your_user/some_private_repo.git

Undo Branch Changes

This article will show you how to revert changes in your current branch to a previous state.

Going to a previous commit

The most simple scenario is when you want to go back to a previous commit for all files.

A simple way to do this is use the checkout command.

Mounting AWS Volumes on Ubuntu Servers

Checking for the new Volume

After attaching the volume to the instance, you can check the device list. The new device will be listed as created recently:

$ ls -l /dev | grep xvd
brw-rw---- 1 root disk    202,   0 Jul 13  2020 xvda
brw-rw---- 1 root disk    202,   1 Jul 13  2020 xvda1

Markdown for the footnote link1:

Markdown for the footnote link<sup id="a1">[1](#f1)</sup>:

1 This is the footnote markdown:

<b id="f1">1</b> This is the footnote markdown:[](#a1)