Skip to content

Instantly share code, notes, and snippets.

View holtbp's full-sized avatar
💻
We're hiring!

Brett Holt holtbp

💻
We're hiring!
View GitHub Profile
@holtbp
holtbp / ejabberd.yml
Last active May 11, 2016 22:48
Development Ejabberd Configuration
###
###' ejabberd configuration file
###
###
### The parameters used in this configuration file are explained in more detail
### in the ejabberd Installation and Operation Guide.
### Please consult the Guide in case of doubts, it is included with
### your copy of ejabberd, and is also available online at
### http://www.process-one.net/en/ejabberd/docs/
@holtbp
holtbp / .README.md
Last active September 7, 2017 19:24
Setup Ejabberd on Amazon EC2, CentOS 7

Introduction

This guide will walk through installing and configuring Ejabberd on CentOS 7 to use Riak KV, Redis, and MySQL.

Steps

I have provided an example ejabberd.yml to help.

@holtbp
holtbp / RiakSearchIntro.md
Last active May 18, 2016 23:18
Intro to Using Riak Search 2.0

Intro

This guide assumes you have Riak KV installed and running on port 8087. This guide walks through enabling Riak Search, enabling bucket-types, creating indices, inserting data, and searching data.

Enable Riak Search

To enable Riak Search, which uses Solr, you will need to install Java.

To install Java:

@holtbp
holtbp / scatterplot.rb
Created June 15, 2020 22:14
ASCII scatterplot from coordinates
coords = [
Coordinate.new(x=0.0, y=1.8),
Coordinate.new(x=1.5, y=2.2),
Coordinate.new(x=2.8, y=3.5),
Coordinate.new(x=5.0, y=4.2),
Coordinate.new(x=2.0, y=4.2),
]
class Coordinate
attr_reader :x, :y
@holtbp
holtbp / rebase.sh
Created July 20, 2021 21:12
Quick helper for rebasing branch on latest master
#!/bin/bash
git checkout master && git fetch && git rebase origin/master
git checkout - && git rebase master