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
# Set the variable value in *.tfvars file | |
# or using the -var="hcloud_token=..." CLI option | |
variable "hcloud_token" { | |
type = string | |
default = "" | |
} | |
# Set the path to your SSH key | |
variable "ssh_key" { | |
type = string |
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
import pkg from 'pg'; | |
const { Pool, Client } = pkg; | |
const DATABASE_NAME = 'queue_demo'; | |
const QUEUE_NAME = 'my_simple_queue'; | |
const DEFAULT_DB = 'postgres'; | |
const dbConfig = { | |
user: 'postgres', | |
host: 'localhost', |
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
# psql Cheatsheet | |
# Connect to a specific database as a specific user | |
psql -d mydatabase -U myuser -h localhost -p 5432 | |
# Connect using defaults | |
psql | |
# List all psql meta-commands | |
\? |
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 | |
# The URL to which the curl requests will be sent | |
URL="http://localhost:5173/api/healthz" | |
# The total duration to run the script in seconds (10 minutes) | |
END_TIME=$((SECONDS + 600)) | |
# The target number of concurrent curl processes | |
CONCURRENCY=400 |
OlderNewer