Inspired By: grafana/loki#333
- docker-compose.yml
version: "3"
networks:
loki:
find ./src/lib/components/Icons/ -type f -not -name "index.ts" -exec sh -c 'cat "$0" > "./static/icons/$(basename "$0".svg)"' {} \; |
import { v4 as uuidv4 } from 'uuid'; | |
type METHODS = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'; | |
const baseUrl = "http://localhost:3000"; | |
export async function baseFetch<T = Record<string, string>>(method: METHODS, path?: string, body?: T, url: string = baseUrl) { | |
return fetch(url + path, { | |
method, | |
headers: { |
FROM postgres:latest | |
# FROM debian:latest | |
# libpq-dev make gcc postgresql postgresql-dev-all | |
RUN apt-get update && \ | |
apt-get install -y \ | |
python3 \ | |
pipx \ | |
make \ |
#!/bin/bash | |
clone_repos_by_org() { | |
local orgName="$1" | |
local numRepos="$2" | |
local name=$(getReposByOrg "$orgName" "$numRepos" | jq "{nodes: .data.organization.repositories.nodes}") | |
cd ./repos | |
Number of platforms 3 | |
Platform Name Clover | |
Platform Vendor Mesa | |
Platform Version OpenCL 1.1 Mesa 23.1.5 | |
Platform Profile FULL_PROFILE | |
Platform Extensions cl_khr_icd | |
Platform Extensions function suffix MESA | |
Platform Name AMD Accelerated Parallel Processing | |
Platform Vendor Advanced Micro Devices, Inc. |
# Declare the associative array for existing files | |
declare -A existing_files_map | |
# Generate log filenames based on the current date and time | |
skipped_log="logs/skipped_$(date +'%d-%m-%y %H:%M:%S').txt" | |
uploaded_log="logs/uploaded_$(date +'%d-%m-%y %H:%M:%S').txt" | |
# Fetch the list of files already present on the EC2 server using find with null delimiter | |
# and populate the associative array |
Computer Information: | |
Manufacturer: Micro-Star International Co., Ltd. | |
Model: MPG X570 GAMING EDGE WIFI (MS-7C37) | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: AuthenticAMD | |
CPU Brand: AMD Ryzen 7 3800X 8-Core Processor | |
CPU Family: 0x17 | |
CPU Model: 0x71 |
#!/bin/bash | |
# Check if directory argument is provided | |
if [ -z "$1" ]; then | |
echo "Please provide a directory as an argument." | |
exit 1 | |
fi | |
# Create an array of directories | |
dirs=($(ls -d "$1"/*)) |
Inspired By: grafana/loki#333
version: "3"
networks:
loki:
struct MyHashSet { | |
buckets: Vec<Vec<i32>>, | |
} | |
/** | |
* `&self` means the method takes an immutable reference. | |
* If you need a mutable reference, change it to `&mut self` instead. | |
*/ |