If your deployment does not use TLS connections
mongod --config /opt/homebrew/etc/mongod.conf --fork
# You can optionally specify the db path
#!/bin/bash | |
echo "=== Xcode Cleanup Script ===" | |
# 1. Clean old iOS DeviceSupport (keep latest 2) | |
echo "Cleaning old iOS DeviceSupport files..." | |
DEVICE_SUPPORT_DIR="$HOME/Library/Developer/Xcode/iOS DeviceSupport" | |
if [ -d "$DEVICE_SUPPORT_DIR" ]; then | |
cd "$DEVICE_SUPPORT_DIR" || exit | |
echo "Keeping latest 2 versions..." |
To determine the size of a file at a remote URL without downloading it, you can use an HTTP HEAD request.
This type of request retrieves only the HTTP headers, which often include the Content-Length
header that
indicates the file size in bytes.
curl -sI https://datasets-documentation.s3.eu-west-3.amazonaws.com/uk-house-prices/postgres/uk_prices.sql.tar.gz | awk '/Content-Length/ {
size=$2;
split("B KB MB GB TB", unit);
Create a new DuckDB in-memory connection using DBeaver, specifying the path as :memory:
Create a new script to run your query with, using the connection created
SELECT * FROM parquet_schema('/path/to/parquet/file.parquet');
SELECT * FROM read_parquet('/path/to/parquet/file.parquet');
Here we want to scrape product name, price and rating from ebay product pages:
url = 'https://www.ebay.com/itm/Sony-PlayStation-4-PS4-Pro-1TB-4K-Console-Black/203084236670'
wanted_list = ['Sony PlayStation 4 PS4 Pro 1TB 4K Console - Black', 'US $349.99', '4.8']
scraper.build(url, wanted_list)