one
some text two
three
$ APP_LISTEN=cli.cmd.two ./wrapper -stdin -- grep "some text"
#!/usr/bin/env python3 | |
events = [ | |
{ | |
"id" : 1, | |
"name" : "user.created", | |
"payload" : "name: labas, email:krabas", | |
"created" : "2024-01-01 12:13:14" | |
}, |
package main | |
import ( | |
"log" | |
"net/http" | |
"time" | |
"github.com/go-chi/chi/v5" | |
) |
{{ define "htmlbody" }} | |
<h1>Page 1</h1> | |
{{ range .Items }} | |
{{ block "item-row" . }} | |
<div> | |
your page content {{ . }} | |
</div> | |
{{ end }} | |
{{ end }} | |
{{ end }} |
I largely followed Florin's blog post, but have a few notes to add regarding issues I encountered:
gpg-agent
only automatically starts when gpg is used; for ssh, you'll need to ensure it's running.list
command inside gpg --edit-card
, look for the Key attributes
line to see what is currently selected. On my YubiKey 4, it defaulted to 2048 bits for all keys:Key attributes ...: rsa2048 rsa2048 rsa2048
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine |
{{- range services -}} | |
{{- if .Name | contains "sidecar" | not -}} | |
{{- $groupedServices := (service .Name | byMeta "caddy_enable") -}} | |
{{- $enabledServices := (index $groupedServices "true" ) -}} | |
{{- range $enabledServices -}} | |
{{- $vhost := index .ServiceMeta "caddy_vhost" -}} | |
{{- scratch.MapSetX "vhosts" $vhost . -}} | |
{{- end -}} | |
{{- end -}} | |
{{- end -}} |
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"golang.org/x/net/webdav" |
job web { | |
datacenters = ["dc1"] | |
type = "service" | |
priority = 70 | |
group app { | |
count = 1 | |
task env { | |
driver = "exec" |
So, with credit to the Factorio wiki and cbednarski's helpful gist, I managed to eventually setup a Factorio headless server. Although, I thought the process could be nailed down/simplified to be a bit more 'tutorialised' and also to document how I got it all working for my future records.
The specific distro/version I'm using for this guide being Ubuntu Server 16.04.1 LTS
. Although, that shouldn't matter, as long as your distro supports systemd
(just for this guide, not a Factorio headless requirement, although most distros use it as standard now).
The version of Factorio I shall be using is 0.14.20
, although should work for any version of Factorio 0.14.12
and higher.
Just a note to newcomers: If there are any issues with the installation steps, people in the comments are doing a good job