Skip to content

Instantly share code, notes, and snippets.

Avatar
👋
Hello!

James Mills prologic

👋
Hello!
View GitHub Profile
@prologic
prologic / weed.yml
Created May 25, 2021
SeaweedFS Docker Swarm Stack
View weed.yml
---
version: "3.8"
services:
master:
image: chrislusf/seaweedfs:latest
command: master -mdir=/data
networks:
- weed
@prologic
prologic / hello.yml
Created Jan 12, 2021
Hello Docker Stack
View hello.yml
---
version: "3.8"
services:
hello:
image: prologic/hello-go
networks:
- traefik
deploy:
mode: replicated
@prologic
prologic / go.mod
Created Jan 11, 2021
Twtxt Search Engine Crawler proof-of-concept
View go.mod
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 Jan 9, 2021
Traefik v2 Docker Swarm Stack
View traefik.yml
---
version: "3.8"
services:
traefik:
image: traefik:latest
ports:
- target: 80
published: 80
protocol: tcp
@prologic
prologic / hello.yml
Created Jan 9, 2021
"Hello World" Go service with Tradfik as Ingress Load Balancer
View hello.yml
---
version: "3.8"
services:
hello:
image: r.mills.io/prologic/hello-go
networks:
- traefik
deploy:
mode: replicated
View LearnGoIn5mins.md
@prologic
prologic / main.go
Created Dec 15, 2020
Twtxt SMTP Server for Private Messaging delivery
View main.go
package main
import (
"bytes"
"crypto/hmac"
"crypto/md5"
"encoding/hex"
"fmt"
"hash"
"net"
@prologic
prologic / figure.xml
Created Aug 11, 2020
XML vs. YAML 🤷‍♂️ Why does everyone hate on XML?! 🤣
View figure.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 Apr 9, 2020
NetData v1.21.0 ChangeLog
View CHANGELOG.md

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)
@prologic
prologic / test.sh
Created Apr 9, 2020
Minimal working Container Sandboxing on uLinux with POSIX Shell scripts
View test.sh
# ./congine /bin/sh
# hostname
container
# id
uid=0(root) gid=0(root) groups=0(root),0(root),65534,65534,65534,65534,65534,65534
# ps aux
PID USER TIME COMMAND
1 root 0:00 /bin/sh
4 root 0:00 ps aux
# Container Terminated