Skip to content

Instantly share code, notes, and snippets.

View philipsoutham's full-sized avatar
🚀
I will be slow to respond.

Philip Southam philipsoutham

🚀
I will be slow to respond.
View GitHub Profile
@philipsoutham
philipsoutham / golucy_getting_started.go
Last active December 21, 2015 20:09
Simple test to check functionality of golucy binding.
package main
import (
"fmt"
"github.com/philipsoutham/golucy"
)
func main() {
ixLocation := "/tmp/lucy_index"
schema := &golucy.Schema{
@philipsoutham
philipsoutham / golucy_Dockerfile
Last active December 21, 2015 21:58
Afraid to build golucy and her requirements on your pristine box? Well if you're running docker you can use this Dockerfile to run the golucy_getting_started.go sample.
# golang & golucy
FROM ubuntu:latest
MAINTAINER Philip Southam "[email protected]"
# BUILD DEPS
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get install build-essential autoconf libtool git curl wget bzr openssh-client mercurial -y
@philipsoutham
philipsoutham / new_searcher.go
Created August 30, 2013 06:05
A reference for a question sent to the mailing list.
package golucy
// Copyright 2013 Philip Southam
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
@philipsoutham
philipsoutham / golucy_example1.go
Last active December 22, 2015 01:19
New example for new API design
package main
import (
"fmt"
golucy "github.com/philipsoutham/golucy/v0.0.1"
"io/ioutil"
"os"
)
func main() {
@philipsoutham
philipsoutham / clean.sh
Created August 29, 2014 05:33
docker cleanup
docker ps -a -q | xargs docker rm
docker images | grep -v "IMAGE ID" | awk '{ print $3}' | xargs docker rmi
@philipsoutham
philipsoutham / cloud-config.yaml
Last active July 25, 2016 21:14
cloud-config for provisioning MariaDB on CoreOS
#cloud-config
coreos:
etcd:
addr: $private_ipv4:4001
peer-addr: $private_ipv4:7001
discovery: https://discovery.etcd.io/<token>
fleet:
public-ip: $private_ipv4
units:
- name: format-ephemeral.service
@philipsoutham
philipsoutham / build-tmux.sh
Created September 16, 2014 21:40
Build static tmux
#!/usr/bin/env bash
pushd $(dirname $0) > /dev/null; CURRABSPATH=$(readlink -nf "$(pwd)"); popd > /dev/null; # Get the directory in which the script resides
set -x
MUSLPKG="musl:musl.tgz:http://www.musl-libc.org/releases/musl-1.1.4.tar.gz"
LEVTPKG="libevent:libevent2.tgz:https://cloud.github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz"
TMUXPKG="tmux:tmux.tgz:http://iweb.dl.sourceforge.net/project/tmux/tmux/tmux-1.9/tmux-1.9a.tar.gz"
NCRSPKG="ncurses:ncurses.tgz:http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz"
TEMPDIR="$CURRABSPATH/tmp"
TMPLIB="tempinstall/lib"
TMPINC="tempinstall/include"
@philipsoutham
philipsoutham / setup.sh
Last active August 29, 2015 14:11
NVidia on Fedora 21
#!/bin/sh
## Inspired by http://negativo17.org/nvidia-driver/
#
yum clean all
yum -y localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
yum-config-manager --add-repo=http://negativo17.org/repos/fedora-nvidia.repo
yum -y install nvidia-driver akmod-nvidia kernel-devel kernel-modules kernel-modules-extra

Keybase proof

I hereby claim:

  • I am philipsoutham on github.
  • I am philipsoutham (https://keybase.io/philipsoutham) on keybase.
  • I have a public key ASBpIYZhMQz4OGsmPR0YzkgOsGH0fRAfoYTgkFqJkU1ZxQo

To claim this, I am signing this object: