Skip to content

Instantly share code, notes, and snippets.

View Red-Eyed's full-sized avatar

Vadym Stupakov Red-Eyed

View GitHub Profile
@Red-Eyed
Red-Eyed / langgraph-financial-agent.ipynb
Created October 9, 2025 05:13 — forked from virattt/langgraph-financial-agent.ipynb
LangGraph-financial-agent.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Red-Eyed
Red-Eyed / install_nvidia_driver.sh
Created September 15, 2025 09:18
Script to install NVIDIA drivers for 50XX series on Ubuntu 24.04
#!/usr/bin/env bash
# Script to install NVIDIA drivers for 50XX series on Ubuntu 24.04
#
# Why use the `-open` driver?
# ----------------------------
# - NVIDIA 50XX (Blackwell) GPUs are only supported by the open kernel modules.
# - The traditional proprietary DKMS-based drivers do not support this series.
# - `nvidia-driver-<version>-open` is still maintained by NVIDIA and provides
# full CUDA support (unlike Nouveau).
#
@Red-Eyed
Red-Eyed / grub_efi_loader.sh
Created September 15, 2025 03:53 — forked from rakeshtembhurne/grub_efi_loader.sh
Reinstall the GRUB boot loader to your Ubuntu installation in EFI mode this way (From live CD)
sudo mount /dev/sdXXX /mnt
sudo mount /dev/sdXX /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sdX
update-grub
# Note : sdX = disk | sdXX = efi partition | sdXXX = system partition
# 'Fixed' by replacing /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi with /boot/efi/EFI/arch/grubx64.efi
@Red-Eyed
Red-Eyed / prompt-builder-template.md
Created August 27, 2025 10:56 — forked from skozz/prompt-builder-template.md
Prompt builder to force IAs to help you improve your own prompts before starting

What is this?

It is a simple MD to force LLMs to help you build your own prompts following Anthropic'sinternal prompt engineering template Inspired by https://www.reddit.com/r/PromptEngineering/comments/1n08dpp/anthropic_just_revealed_their_internal_prompt/

How to use

  • Add this file to your proyect
  • Invoke this MD in the LLM context
  • Ask to model: "help me write a prompt following this process" + draft of your prompt

Then the model is goign to ask you the template questions to help you build the final prompt based on the template.

@Red-Eyed
Red-Eyed / first_cell.py
Last active May 3, 2025 10:31
notebook header
%load_ext autoreload
%autoreload 2
import os
import sys
from pathlib import Path
NOTEBOOK_DIR: Path = globals().get("NOTEBOOK_DIR", Path.cwd())
REPO_DIR = NOTEBOOK_DIR.parent
@Red-Eyed
Red-Eyed / pyproject.toml
Last active April 7, 2025 14:42
pyproject.toml hatch template
[project]
name = "project_name"
version = "0.1.0"
authors = [{name = "Full Name", email = "[email protected]"}]
requires-python = ">=3.12"
dependencies = [
"pip>=24.2",
"expression>=5.1.0",
]
@Red-Eyed
Red-Eyed / set_ssh_perm.sh
Created February 11, 2024 09:32
set right ssh permissions
#!/bin/bash
SSH_DIR="${HOME}/.ssh"
chmod 700 "${SSH_DIR}"
find "${SSH_DIR}" -type f \( -name 'id_rsa' -o -name 'id_dsa' -o -name 'id_ecdsa' -o -name 'id_ed25519' \) -exec chmod 600 {} \;
find "${SSH_DIR}" -type f \( -name '*.pub' -o -name 'known_hosts' -o -name 'authorized_keys' \) -exec chmod 644 {} \;
@Red-Eyed
Red-Eyed / lru_cache.cpp
Last active November 2, 2023 06:58
C++ lru cache like in python
#include <iostream>
#include <functional>
#include <unordered_map>
#include <tuple>
// Define a hash function for std::tuple so that it can be used as a key in std::unordered_map
namespace std {
template <typename... T>
struct hash<std::tuple<T...>> {
size_t operator()(const std::tuple<T...>& t) const {
@Red-Eyed
Red-Eyed / flask_webapp_segmentation.py
Created July 18, 2023 11:06 — forked from deepak-karkala/flask_webapp_segmentation.py
FLASK Webapp for Image Segmentation Model
# FLASK Webapp for Image Segmentation Model
import os, sys, io
sys.path.append(".")
import webapp
from flask import Flask
import flask
import numpy as np
import pandas as pd