Skip to content

Instantly share code, notes, and snippets.

View prologic's full-sized avatar
👋
Principal SRE, Founder of Yarn.social and Salty.im

James Mills prologic

👋
Principal SRE, Founder of Yarn.social and Salty.im
View GitHub Profile
@prologic
prologic / consul.yml
Created October 11, 2021 07:21
Consul Stack (Docker Swarm)
---
version: "3.8"
services:
seed:
image: consul:latest
environment:
- "CONSUL_LOCAL_CONFIG={\"disable_update_check\": true}"
- "CONSUL_BIND_INTERFACE=eth0"
entrypoint:
@prologic
prologic / weed.yml
Created May 25, 2021 03:07
SeaweedFS Docker Swarm Stack
---
version: "3.8"
services:
master:
image: chrislusf/seaweedfs:latest
command: master -mdir=/data
networks:
- weed
@prologic
prologic / hello.yml
Created January 12, 2021 06:03
Hello Docker Stack
---
version: "3.8"
services:
hello:
image: prologic/hello-go
networks:
- traefik
deploy:
mode: replicated
@prologic
prologic / go.mod
Created January 11, 2021 23:07
Twtxt Search Engine Crawler proof-of-concept
module twtxt-search-engine
go 1.14
require (
github.com/gocolly/colly/v2 v2.1.0
github.com/jointwt/twtxt v0.0.0-20210108082814-7098fcfa49df
github.com/prologic/read-file-last-line v0.0.0-20200806014221-326f63458987
github.com/sirupsen/logrus v1.7.0
)
@prologic
prologic / traefik.yml
Created January 9, 2021 05:46
Traefik v2 Docker Swarm Stack
---
version: "3.8"
services:
traefik:
image: traefik:latest
ports:
- target: 80
published: 80
protocol: tcp
@prologic
prologic / hello.yml
Created January 9, 2021 03:20
"Hello World" Go service with Tradfik as Ingress Load Balancer
---
version: "3.8"
services:
hello:
image: r.mills.io/prologic/hello-go
networks:
- traefik
deploy:
mode: replicated
@prologic
prologic / LearnGoIn5mins.md
Last active April 22, 2024 13:28
Learn Go in ~5mins
@prologic
prologic / main.go
Created December 15, 2020 13:52
Twtxt SMTP Server for Private Messaging delivery
package main
import (
"bytes"
"crypto/hmac"
"crypto/md5"
"encoding/hex"
"fmt"
"hash"
"net"
@prologic
prologic / figure.xml
Created August 11, 2020 08:15
XML vs. YAML 🤷‍♂️ Why does everyone hate on XML?! 🤣
<figure>
<a href="pics/earth2150/lc-combat-ucs.jpg">
<img src="pics/earth2150/lc-combat-ucs.jpg" />
</a>
<figcaption>
<abbr title="Lunar Corporation">LC</abbr>hovertanks battle mechs guarding a
<abbr title="United Civilized States">UCS</abbr>base. A large mech is shooting rockets at a hovertank, while its shields protect it from an electro cannon attack. Two repairers fix a visibly damaged nuclear power plant.</figcaption>
</figure>
@prologic
prologic / CHANGELOG.md
Last active April 9, 2020 14:51
NetData v1.21.0 ChangeLog

v1.21.0 (2020-04-06)

Bug Fixes

  • Fix Coverity Defect CID-349684 (#8586)
  • Fix Coverity defects (#8579)
  • Fix compiler warnings in the claiming code (#8567)
  • Fix Debian 8 (jessie) support (#8590)