Skip to content

Instantly share code, notes, and snippets.

View electrocucaracha's full-sized avatar

Victor Morales electrocucaracha

View GitHub Profile
@electrocucaracha
electrocucaracha / Vagrantfile
Last active July 22, 2021 23:33
E2E Tizen Build
# -*- mode: ruby -*-
# vi: set ft=ruby :
##############################################################################
# Copyright (c)
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
@electrocucaracha
electrocucaracha / Vagrantfile
Created December 16, 2021 21:19
Deploy Distributed Compliance Ledger locally
# -*- mode: ruby -*-
# vi: set ft=ruby :
##############################################################################
# Copyright (c)
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
@electrocucaracha
electrocucaracha / Vagrantfile
Last active January 14, 2022 17:12
Bash script for testing changes on build Matter images
# frozen_string_literal: true
# -*- mode: ruby -*-
# vi: set ft=ruby :
##############################################################################
# Copyright (c)
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
@electrocucaracha
electrocucaracha / create_github_issue_for_kubernetes_website.js
Last active July 4, 2023 17:05 — forked from ramrodo/create_github_issue_for_kubernetes_website.js
Create GitHub Issue in kubernetes/website repo using GitHub API for Spanish localizations
// https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#create-an-issue
import { Octokit } from "octokit";
const GITHUB_TOKEN = process.env.GITHUB_TOKEN
const octokit = new Octokit({
auth: GITHUB_TOKEN
});
@electrocucaracha
electrocucaracha / calculator.py
Last active January 22, 2025 21:21
Llama Index Local RAG learning
def add_numbers(a, b):
return a + b
def subtract_numbers(a, b):
return a - b
def multiply_numbers(a, b):
return a * b
def divide_numbers(a, b):
@electrocucaracha
electrocucaracha / main.py
Created April 5, 2025 04:02
Summarizer app
import pydub
import queue
import whisperx
import json
from langchain_ollama import ChatOllama
TMP_DIR = Path('temp')