a rough script that helps to block rogue like client to your postfix server
Anyway you should chmod +x and check behavior first.
# chmod +x ./postfix-scanner-block.sh
from(bookshelf in Bookshelf, | |
join: book in Book, on bookshelf.id == book.bookshelf_id, | |
group_by: bookshelf.id, | |
select: %{bookshelf_id: bookshelf.id, books_count: count(book.id)} | |
) |> Repo.all() |
package main | |
import ( | |
"database/sql" | |
_ "github.com/go-sql-driver/mysql" | |
"github.com/ytnobody/gomysqlerror" | |
"github.com/volatiletech/sqlboiler/boil" | |
) |
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | |
// README at: https://github.com/devcontainers/templates/tree/main/src/debian | |
{ | |
"name": "Debian", | |
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | |
"image": "mcr.microsoft.com/devcontainers/base:bullseye", | |
"features": { | |
"ghcr.io/devcontainers/features/node:1": {}, | |
"ghcr.io/swift-server-community/swift-devcontainer-features/sqlite:1": {} | |
}, |