Creates a Raspberry Pi image using Packer and using QEMU to test it.
Tested with Raspberry Pi OS Lite 5.10 (March 4th 2021).
yay -S curl go packer qemu qemu-arch-extra qemu-user-static-bin
| #!/bin/bash | |
| readonly UNIT_NAME="antigravity-$(basename "$1")-$(date +%s)" | |
| readonly APP_BIN="/usr/bin/antigravity --verbose" | |
| readonly TRIGGER="Lifecycle#onWillShutdown - end 'antigravityAnalytics'" | |
| # Run the application using systemd-run in the background | |
| systemd-run --user \ | |
| --scope \ | |
| --unit="$UNIT_NAME" \ |
| package main | |
| import ( | |
| "log" | |
| "os" | |
| "strings" | |
| tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5" | |
| ) |
| package main | |
| import ( | |
| "log" | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/aws/session" | |
| "github.com/aws/aws-sdk-go/service/dynamodb" | |
| ) |