This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
import { IncomingMessage } from 'http' | |
import { NextRequest } from 'next/server' | |
import { ClientConfig, AuthenticationResponse, APIError, Hit } from 'pirsch-sdk/types' | |
const referrerQueryParams = ['ref', 'referer', 'referrer', 'source', 'utm_source'] | |
const defaultBaseURL = 'https://api.pirsch.io' | |
const defaultTimeout = 5000 | |
const defaultProtocol = 'http' | |
const authenticationEndpoint = '/api/v1/token' |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
SELECT table, | |
formatReadableSize(sum(bytes)) as size, | |
min(min_date) as min_date, | |
max(max_date) as max_date | |
FROM system.parts | |
WHERE active | |
GROUP BY table |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |