Skip to content

Instantly share code, notes, and snippets.

View Klaudioz's full-sized avatar

Claudio Canales Klaudioz

View GitHub Profile
const awsTool = new DynamicTool({
name: "aws-cli",
description:
"This is AWS CLI. You can call this to send commands to the AWS Cloud. Use AWS CLI format like `aws s3api list-buckets`",
async func(command) {
const args = command.split(" ").filter((x) => x !== "aws");
const result = spawnSync("aws", args, {
env: {
...process.env,
AWS_REGION: "eu-central-1",
@rain-1
rain-1 / LLM.md
Last active October 20, 2025 07:02
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@Christopher-Hayes
Christopher-Hayes / convertToCheckpoint.md
Last active June 2, 2024 14:56
Convert DreamBooth .bin files to a .ckpt file

Converting DreamBooth .bin files to a .ckpt model file.

These instructions are based on DreamBooth usage with the https://github.com/ShivamShrirao/diffusers repo.

1. Add the script files

Below are 2 files. "convertToCkpt.py" and "toCkpt.sh". Create those files inside the examples/dreambooth folder with the code provided.

1a. Python convert script (required)

javascript:(() => {
const requestURL = "http://127.0.0.1:8080/api/readingList";
const token = "dfgkjlhsdfgkljghklhj";
const pageTitle = document.title;
const pageURL = window.location.href;
let metaImage = "";
let metaDescription = "";
function getMetaValue(propName) {
<?
//
// AUTO KEYWORD-BASED FOLLOWER CURATION BOT (by @levelsio)
//
// File: twitterFollowerCuratorBot.php
//
// Created: May 2021
// License: MIT
//
@microbug
microbug / plots-pause.sh
Created May 14, 2021 21:28
Pause Chia plots (Linux)
#!/usr/bin/env bash
# Send SIGSTOP (pause) to all plot processes
ps aux | grep "[c]hia plots create" | awk '{print $2}' | xargs kill -STOP
@fillest
fillest / better-than-bash-scripts.py
Last active March 5, 2025 17:39
No more unmaintainable error-prone Bash scripts - use this instead
# Bash really should be avoided as much as possible (within reasonable limits, of course) even for one-liners which *seem* trivial.
# Bash is very error-prone by design. It's hard to comprehend all the pitfalls (e.g. https://mywiki.wooledge.org/BashFAQ/105)
# and it's a regrettable time-waste anyway.
#
# Modern Python is good for scripting the logic - keep Bash only for launching executables and most primitive
# pipes and redirections (avoid subshells, substitutions and so on). No need to install anything -
# just start your script with the following small self-contained helper function (check the examples for usage). Its features:
# * terminates on non-zero exit status by default
# * returns the output (combined - which usually should not be a problem - use e.g. '2>/dev/null' when it is)
# * prints commands and combined output

Upcoming Matches ⚽

This easy widget let's you see upcoming matches of your favourite football team.

Guide

  1. Copy this code in a new script in Scriptable app
  2. Find teamId here: https://site.api.espn.com/apis/site/v2/sports/soccer/:league/teams
  3. Find league id: some league abbreviation (EX: 'eng.1' for EPL, 'usa.1' for MLS, 'ned.1' for Dutch Eredivisie)
  4. Change competitionId variable (line 4) with your competition id
  5. Change teamId variable (line 5) with your favourite team id
Hey everybody, it's Eric Torbert, co founder partner, village global, a network driven venture firm. And this is venture stories, a podcast covering topics related to tech business with world leading experts.
Everybody, we're now accepting applications for a network catalyst accelerator program founders in our program have gone on to raise money from Lux spark a16z slow first, round Susa homebrew mavar on obvious and effects signifier and many more, Learn more at apply at village global.vc slash network catalyst. One note I wanted to add this podcast is since recording it, we've made an investment in Rowan researches seed round and are delighted to have them in the village global portfolio started from the podcast now we're here. Hey everybody, welcome to another episode of venture stories by building
Global here today joined by a very special guest Connor white Sullivan, CEO and co founder of Rome research, Connor. Welcome to the podcast. Thanks for having me. So kind of by way of introduction, you know, I