====================[ LOG SAMPLE ]====================
2025-08-08 15:32:55 [INFO] Server started at http://localhost:8080
2025-08-08 15:33:10 [ERROR] syntax error at line 23
2025-08-08 15:33:12 [WARN] Deprecated API usage
192.168.1.10 GET /index.html 200
8.8.8.8 GET /malicious.php?id=19 404
172.20.0.5 POST /api/data 500
http://example.com?param=1234567890123456789012345678901234567890
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
| program demo_oneapi | |
| implicit none | |
| integer, parameter :: n = 500 | |
| real(8), dimension(n,n) :: A, B, C | |
| integer :: i, j, k | |
| real(8) :: start_time, end_time | |
| ! Khởi tạo ma trận A, B | |
| do i = 1, n | |
| do j = 1, n |
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 cài đặt Intel Fortran Compiler (ifort/ifx) trên Linux | |
| # Hỗ trợ: Ubuntu/Debian, CentOS/RHEL/Fedora, Arch (AUR) | |
| set -e | |
| echo "🔎 Phát hiện hệ điều hành..." | |
| if [ -f /etc/os-release ]; then | |
| . /etc/os-release | |
| DISTRO=$ID |
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
| program hello_mpi | |
| use mpi | |
| implicit none | |
| integer :: rank, size, ierr | |
| call MPI_Init(ierr) | |
| call MPI_Comm_rank(MPI_COMM_WORLD, rank, ierr) | |
| call MPI_Comm_size(MPI_COMM_WORLD, size, ierr) |
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 cài MPI (OpenMPI hoặc MPICH) trên mọi distro Linux | |
| # Dùng: ./mpi.sh [openmpi|mpich] | |
| # Nếu không truyền tham số => mặc định cài OpenMPI | |
| set -e | |
| MPI_IMPL=${1:-openmpi} # openmpi hoặc mpich | |
| echo "🔍 Phát hiện distro Linux..." |
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 python3 | |
| # Yêu cầu: Python3, rich, subprocess, perf | |
| import subprocess, sys, os, time, sqlite3 | |
| from rich.console import Console | |
| from rich.table import Table | |
| from rich.panel import Panel | |
| from rich.live import Live | |
| from rich.prompt import Prompt |
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
| def generate_scylla_yaml(n_cpu, ram_gb, n_nvme, numa_nodes, use_row_cache=True): | |
| ram_mb = ram_gb * 1024 | |
| memory = int(ram_mb * 0.7) | |
| memtable_heap = int(memory * 0.25) | |
| row_cache = 8192 if use_row_cache else 0 | |
| num_io_queues = n_nvme * numa_nodes | |
| compaction_throughput = 256 | |
| yaml = f"""\ | |
| # Generated ScyllaDB configuration sample |
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 | |
| set -e | |
| DATA_PATH="${1:-/var/lib/scylla}" | |
| echo "=== [1/6] Phát hiện thiết bị chứa dữ liệu ScyllaDB ($DATA_PATH) ===" | |
| DEVICE=$(df "$DATA_PATH" | tail -1 | awk '{print $1}' | sed 's/[0-9]*$//') | |
| DEVICE_NAME=$(basename "$DEVICE") | |
| if [ -z "$DEVICE" ]; then |
The error message NETSDK1209 indicates that your current version of Visual Studio does not support targeting .NET 8.0:
- Update the .csproj file to target a supported version of .NET, such as .NET 7.0.
-
Open the
.csprojfile. -
Find the
<TargetFramework>element. -
Change the value to
net7.0 or a lowerversion.<TargetFramework>net7.0</TargetFramework>
-
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 | |
| sudo apt-get install -y \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo apt-key fingerprint 0EBFCD88 | |
| sudo add-apt-repository \ | |
| "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ |
NewerOlder