Inspired By: grafana/loki#333
- docker-compose.yml
version: "3"
networks:
loki:
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. | |
*/ |
enum CarType { | |
Big(i32), | |
Med(i32), | |
Small(i32) | |
} | |
struct ParkingSystem { | |
big: CarType, | |
medium: CarType, | |
small: CarType |
impl Solution { | |
pub fn is_palindrome(x: i32) -> bool { | |
let y = x.to_string(); | |
let rev = y.chars().rev().collect::<String>(); | |
y == rev | |
} | |
} |