Skip to content

Instantly share code, notes, and snippets.

View rossedman's full-sized avatar
🚀
COMPUTERS IN SPACE.

Ross Edman rossedman

🚀
COMPUTERS IN SPACE.
View GitHub Profile
@rossedman
rossedman / groupcache.go
Created November 15, 2018 17:54 — forked from fiorix/groupcache.go
Simple groupcache example
// Simple groupcache example: https://github.com/golang/groupcache
// Running 3 instances:
// go run groupcache.go -addr=:8080 -pool=http://127.0.0.1:8080,http://127.0.0.1:8081,http://127.0.0.1:8082
// go run groupcache.go -addr=:8081 -pool=http://127.0.0.1:8081,http://127.0.0.1:8080,http://127.0.0.1:8082
// go run groupcache.go -addr=:8082 -pool=http://127.0.0.1:8082,http://127.0.0.1:8080,http://127.0.0.1:8081
// Testing:
// curl localhost:8080/color?name=red
package main
import (
@rossedman
rossedman / consul.service
Last active July 24, 2017 19:30 — forked from yunano/consul.service
Consul Installation
#
# This needs to be installed here:
# /etc/systemd/system/consul.service
#
[Unit]
Description=consul
Requires=network-online.target
After=network-online.target
@rossedman
rossedman / dynmotd
Created January 23, 2016 13:29 — forked from cha55son/dynmotd
RHEL (Centos/Fedora) dynamic motd
#!/bin/bash
# Installation:
#
# 1. vim /etc/ssh/sshd_config
# PrintMotd no
#
# 2. vim /etc/pam.d/login
# # session optional pam_motd.so
#