Skip to content

Instantly share code, notes, and snippets.

View ssplatt's full-sized avatar

Brett Taylor ssplatt

  • Picwell
  • Philadelphia, PA
View GitHub Profile
@ssplatt
ssplatt / docker-compose.yml
Created October 19, 2017 03:00
znc and eggdrop bot, for irc
version: "3"
services:
znc:
image: znc
volumes:
- /opt/docker-persist/znc:/znc-data
ports:
- 5678:5678
restart: always
@ssplatt
ssplatt / common.yaml
Created November 1, 2017 13:35
puppet nodejs module hiera data
nodejs::repo_url_suffix: 6.x
nodejs::npm:
my-custom-app:
ensure: "present"
user: www
target: "/var/www/apps/my-custom-app"
use_package_json: true
Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Nodejs::Npm[my-app] is already declared in file /tmp/kitchen/modules/my-app/manifests/init.pp:106; cannot redeclare at /tmp/kitchen/manifests/site.pp:18 at /tmp/kitchen/manifests/site.pp:18:3 on node 61adc4cc8c42
@ssplatt
ssplatt / init.pp
Last active November 1, 2017 17:42
class myapp (){
file { '/opt/serverapp':
ensure => 'directory',
owner => 'myuser',
group => 'myuser'
}
nodejs::npm { 'express from the npm registry':
ensure => 'present',
package => 'express',
context 'create npm resources' do
let(:facts) do
facts
end
let('nodejs::npm') do
{
'myapp' => {
'ensure' => "present",
'target' => "/var/www/apps/myapp",
'use_package_json' => true
@ssplatt
ssplatt / kube-proxy-amd64.yml
Created December 5, 2017 04:11
mixed arch (arm and amd64, raspberry pi and pc) kubernetes cluster kube-proxy daemonset configs
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
creationTimestamp: null
generation: 1
labels:
k8s-app: kube-proxy-amd64
name: kube-proxy-amd64
selfLink: /apis/extensions/v1beta1/namespaces/kube-system/daemonsets/kube-proxy-amd64
namespace: kube-system
@ssplatt
ssplatt / README.md
Last active October 30, 2018 13:34
Docker-CE for Odroid. aarch64 (arm64) is not a supported arch for Docker-CE yet, but the things to build the packages already exist.
@ssplatt
ssplatt / cpu.log
Last active January 11, 2018 02:18
odroid c2, samsung sd xc u3
sysbench --test=cpu --cpu-max-prime=20000 --num-threads=$(cat /proc/cpuinfo | grep processor | wc -l) run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 4
Doing CPU performance benchmark
Threads started!
Done.
@ssplatt
ssplatt / kube-flannel.yml
Created July 23, 2018 23:41
flannel for arm64 (odroid) - kubernetes
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: flannel
rules:
- apiGroups:
- ""
resources:
- pods
@ssplatt
ssplatt / superalgos-docker-intro.md
Last active August 3, 2025 06:23
An introduction to running Superalgos in Docker. Some Docker best practices included as well.

Superalgos Docker Basics

Introduction

This walkthrough is broken up into to parts: a quick-start guide to running Superalgos with Docker and a deeper, more theoretical dive into containers with the hopes of explaining some of the design decisions.

Superalgos, at its core, is a web application which also means it can be deployed inside a container like many other web applications. One of the leading platforms for operating containers is Docker. Docker can run on many different operatng systems and compute platforms. The containers provide an easy, fast, repeatable, and secure way to deploy and distribute applications. While it doesn't take much experience to run containers or Docker, there are some basics that any user should learn in order to use the technology effectively.

Before getting started, be aware that Docker is not the originally intended method of running the [Superalgos](https://github.com/Superalgos/S