python -m pip install wsgidav cheroot lxml
python -m wsgidav.server.server_cli -p60012 --root=/ --auth=anonymous -Hlocalhost
| # 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 |
| #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 { |
| #!/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 {} \; | |
| [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", | |
| ] |
| %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 |
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/
Then the model is goign to ask you the template questions to help you build the final prompt based on the template.
| 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 |
| #!/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). | |
| # |
Content :