Memory Type | NVIDIA GeForce RTX 3090 | NVIDIA RTX A5000 | NVIDIA GeForce RTX 2080 Ti |
---|---|---|---|
Global Memory | 24 GB GDDR6X | 24 GB GDDR6 | 11 GB GDDR6 |
Memory Interface | 384-bit | 384-bit | 352-bit |
Memory Bandwidth | 936 GB/s | 768 GB/s | 616 GB/s |
L2 Cache | 6 MB | Not specified | 5.5 MB |
Shared Memory | 164 KB per SM | 164 KB per SM | 64 KB per SM |
Constant Memory | 64 KB | 64 KB | 64 KB |
Texture Memory | Part of global memory | Part of global memory | Part of global memory |
Local Memory | Part of global memory | Part of global memory | Part of global memory |
When generating the shell script, please ensure it adheres to the following best practices to provide a robust and user-friendly experience on Unix/BSD systems:
-
Comprehensive Error Handling and Input Validation:
- Use
set -euo pipefail
at the beginning of the script to catch errors, unset variables, and failed pipes. - Validate all input arguments and provide meaningful error messages to guide the user.
- Use
-
Clear and Colorful Output:
- Implement clear, user-friendly messages.
- Use color coding (e.g., bold yellow for warnings) to enhance readability and draw attention to important information.
- The problem is easy to solve
- I don't need to do any math beyond simple addition or multiplication
- I don't need concurrency
- I don't need data structures
- I don't need functional programming code style
- I don't need to work on Windows
- I don't care about performance
This file contains 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 | |
# Color definitions | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
YELLOW='\033[0;33m' | |
BLUE='\033[0;34m' | |
NC='\033[0m' # No Color | |
# Function to print colored output |
This file contains 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
pages: | |
- name: Home | |
columns: | |
- size: small | |
widgets: | |
- type: calendar | |
- type: rss | |
limit: 10 | |
collapse-after: 3 |
This file contains 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 | |
# Access the LXC container | |
pct enter <container_id> | |
# Navigate to the Homarr installation directory | |
cd /opt/homarr | |
# Access the SQLite database | |
sqlite3 /opt/homarr/database |
This file contains 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 | |
set -e | |
# Function to log errors | |
log_error() { | |
echo "ERROR: $1" >&2 | |
} | |
# Function to log info |
This file contains 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 | |
# Define variables | |
DOWNLOAD_URL="https://downloads.1password.com/linux/tar/stable/aarch64/1password-latest.tar.gz" | |
INSTALL_DIR="/opt/1Password" | |
DESKTOP_FILE="~/.local/share/applications/1password.desktop" | |
ICON_PATH="$INSTALL_DIR/resources/icons/1password.png" | |
# Function to print status messages |
Add these two lines to ~/.zshrc
autoload -U +X compinit && compinit
autoload -U +X bashcompinit && bashcompinit
This file contains 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
// ==UserScript== | |
// @name Claude AI MathJax Renderer | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Render LaTeX math formulas on the page using MathJax | |
// @match https://claude.ai/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
NewerOlder