Skip to content

Instantly share code, notes, and snippets.

View cleberjamaral's full-sized avatar
🎯

Cleber Jorge Amaral cleberjamaral

🎯
View GitHub Profile
@cleberjamaral
cleberjamaral / MyLLM.md
Last active October 9, 2025 16:37
MyLLM: Launches an LLM model and chat interface in my private machine using docker-compose

My Large Language Model

This project provides a local LLM setup using Docker Compose with Ollama and Open WebUI.

Overview

The docker-compose.yaml file defines a complete LLM and chat interface stack with two main services:

Services

@cleberjamaral
cleberjamaral / create-user-on-sudoers-add-key-linux.md
Created April 12, 2020 23:53
Create user on sudoers and add key on Linux

Create a local user on sudoers

  1. $ sudo adduser username
  2. Set a local password and user info
  3. $ usermod -aG sudo username
  4. Test the user $ su - username

Send a key from a machine to another and add it on authorized keys

  1. Still logged as 'username', create .ssh folder for 'username' $ mkdir ~/.ssh
@cleberjamaral
cleberjamaral / kubernetes-useful-commands.md
Last active April 18, 2020 06:12
Kubernetes useful commands

Useful commands for microk8s

  • List resources $ microk8s.kubectl get
  • Show detailed information about a resource $ microk8s.kubectl describe
  • Print the logs from a container in a pod $ microk8s.kubectl logs
  • Execute a command on a container in a pod $ microk8s.kubectl exec
  • Get all info from all namespaces $ microk8s.kubectl get all --all-namespaces
  • Get node log $ microk8s.kubectl describe nodes

Sources:

@cleberjamaral
cleberjamaral / Signpost-correlative-conjunctions.md
Created March 30, 2020 00:20
Signpost of correlative conjunctions

Correlative conjunctions

@cleberjamaral
cleberjamaral / Git-undo-local-changes.md
Last active February 25, 2020 03:21
Git-undo-local-changes

Git undoing local changes

  • Undoing git add / Unstaging changes git reset

  • Undoing a git reset git reset 'HEAD@{1}'

  • Undoing a git commit git reset HEAD^

Ignoring files which names matches the given pattern

# specific file
given_name

# files with extension "ext"
*.ext

# files with extension "ext" only in root folder

Editing checklist

Spelling

Have you checked all words you’re unsure of in a dictionary (especially commonly confused words such as: all right, all together, definitely, persuade).

Grammar

Are sentences grammatical? Does every sentence have at least a subject and a verb? Are there any comma splices or sentence fragments? Do nouns and verbs agree (e.g., singular with singular, plural with plural)?

Tense

Are tenses consistent (e.g., present or past, not inappropriately mixed)?

Punctuation

Are commas correctly placed? Have you used too many? Have you used apostrophes correctly? Have you used a semi-colon instead of a colon, or vice versa? Have you divided a sentence with a semi-colon instead of a comma?

@cleberjamaral
cleberjamaral / creating-a-HTML-from-a-markdown-file.md
Last active February 10, 2020 07:46
Creating a HTML from this markdown file

Creating a HTML from this markdown file

  1. Open the md file in atom editor
  2. Check its preview in Packages > Markdown Preview
  3. Right click on the preview selecting "Copy As HTML"
  4. Paste in the html the content

more details are given by Ian Lurie

@cleberjamaral
cleberjamaral / Merging-branch-into-master.md
Last active February 9, 2020 23:42
Merging git branch into master

Merging git branch into master

  1. go to master git checkout master

  2. make sure it is updated solving conflicts if they exist git pull origin master

  3. merge with the branch (list of branchs can be obtained by git branch) git merge branch_name