Content :
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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). | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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/
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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", | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 {} \; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
NewerOlder