Skip to content

Instantly share code, notes, and snippets.

Avatar
📕
Follow me on twtxt.net/user/prologic

James Mills prologic

📕
Follow me on twtxt.net/user/prologic
View GitHub Profile
@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
@prologic
prologic / LearnGoIn5mins.md
Last active Jan 18, 2021
Learn Go in ~5mins
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
View log
Loading /etc/os-release ...
You should have EPEL enabled to install all the prerequisites.
Check: http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/
Running in non-interactive mode
> CentOS Version: 8 ...
> Checking for epel ...
Running in non-interactive mode, assuming yes (y)
> Would have promptedfor epel not found, shall I install it? ...
yum -y install epel-release
CentOS-8 - AppStream [=== ] --- B/s | 0 B --:-- ETA CentOS-8 - AppStream100% [====================] 1.4 kB/s | 681 B 00:00 ETA CentOS-8 - AppStream 17% [===- ] 242 kB/s | 1.2 MB 00:22 ETA CentOS-8 - AppStream 35% [======= ] 461 kB/s | 2.3 MB 00:09 ETA CentOS-8 - AppStream 45% [========= ] 565 kB/s | 3.0 MB 00:06 ETA CentOS-8 - AppStream 56% [=========== ] 687 kB/s | 3.7 MB 00:04 ETA CentOS-8 - AppStream 70% [============== ] 825 kB/s | 4.6 MB 00:02 ETA CentOS-8 - AppStream 85% [================= ] 979 kB/s | 5.6 MB
You can’t perform that action at this time.