Skip to content

Instantly share code, notes, and snippets.

View Dgzt's full-sized avatar

Zsuró Tibor Dgzt

  • Hungary, Budapest
View GitHub Profile
@Dgzt
Dgzt / docker-compose.yml
Created November 17, 2021 11:59
Docker compose file for maildev
version: "3.8"
services:
maildev:
image: maildev/maildev:1.1.0
restart: always
ports:
- "1080:80"
- "1025:25"
@Dgzt
Dgzt / show-temperatures
Created November 1, 2021 18:11
Show temperatures in one line with optitonal counter
#!/bin/bash
if [[ "$1" ]]; then
num="$1"
else
num="1"
fi
if [[ ! $num == ?(-)+([0-9]) ]]; then
echo "The given value is not integer!" >&2; exit 1