Skip to content

Instantly share code, notes, and snippets.

View dragonde's full-sized avatar
💭
Ready, Steady & Go!

dragonde

💭
Ready, Steady & Go!
View GitHub Profile
@dragonde
dragonde / ubuntu-install.md
Last active May 18, 2024 08:38
ubuntu install

apt update && upgrade flatpak install vim curl htop

sudo snap refresh

flatpak brave vscode edge mpv spotify slack zoom

@dragonde
dragonde / conda-install.md
Last active May 2, 2024 08:56
conda-install
@dragonde
dragonde / ollama-test.py
Last active May 1, 2024 17:20
ollama test
import os
from langchain_community.llms import Ollama
llm = Ollama(model="solar")
project = 'auth-service'
directory = '/home/alber/repo/apps/' + project + '/kubernetes/chart/templates'
prompt = "given these helm templates make a values.yaml file with all the variables that appears in the templates. Output just the yaml file : \n"
@dragonde
dragonde / yq.md
Last active April 25, 2024 19:27
yq cheat sheet

curl http://plytix-charts.core.private-plytix.com:8080/api/charts -o charts.json

cat charts.json | yq e -P ' .[].[] | select(.name =="mongo*") | (.name + "," + .version)'

merges f2.yml into f1.yml (inplace)

yq eval-all --inplace 'select(fileIndex == 0) * select(fileIndex == 1)' f1.yml f2.yml

you can merge into a file, piping from STDIN

@dragonde
dragonde / palimdro.md
Last active April 25, 2024 11:59
palimdro

palimdro

abanonplytix hub.docker.com dckr_pat_Wy0hAKBYVT2JBvJyvi44EqJjt-s

@dragonde
dragonde / little-program.md
Last active April 24, 2024 17:41
little-program

hazme un pequeño programa que use rust, svelte y tailwind css ¡Vamos a crear algo emocionante!

Aquí te presento un ejemplo de aplicación simple que utiliza Rust como backend, Svelte como frontend y Tailwind CSS para estilizar la interfaz de usuario.

Backend (Rust)

use actix_web::{web, App, HttpResponse};
@dragonde
dragonde / fiz-zsh-history-corrupt.md
Last active April 22, 2024 07:31
fix zsh_history corrupt

Fix zsh history corrupt

To fix it run the following commands:

cd ~
mv .zsh_history .zsh_history_bad
strings .zsh_history_bad > .zsh_history
fc -R .zsh_history
@dragonde
dragonde / change-default-browser.md
Last active April 8, 2024 12:50
Change Default browser Manjaro

xdg-mime default firefox.desktop x-scheme-handler/http xdg-mime default firefox.desktop x-scheme-handler/https

xdg-mime default brave.desktop x-scheme-handler/http xdg-mime default brave.desktop x-scheme-handler/https

xdg-mime default microsoft-edge.desktop x-scheme-handler/http xdg-mime default microsoft-edge.desktop x-scheme-handler/https

@dragonde
dragonde / homogeneo.md
Last active February 13, 2024 05:41
homogeniezar
  • live probe path
  • command
  • path montado
  • librerias - requisitos
  • sistema alpine-
  • versiones 3...x
  • Dockerfile
  • pipeline unificado
  • estructura de carpetas y ficheros
  • Helm repositories
@dragonde
dragonde / plytix-kind-notes.md
Created February 2, 2024 14:32
Notes Plytix Kind

if ! docker ps -a --format json | jq -r .Names | grep kind-control-plane ; then # if kind-control-plane dont exists! bin/kind-create-cluster.sh fi

git config empty=> en el check

&& newgrp docker