Skip to content

Instantly share code, notes, and snippets.

View mafrosis's full-sized avatar
🍳

Matt Black mafrosis

🍳
  • MACHIN SHIN
  • Melbourne, Australia
View GitHub Profile
@mafrosis
mafrosis / rethinkdb_setup_osx.md
Last active January 30, 2018 01:31
RethinkDB Setup on OSX

RethinkDB Setup on OSX

This guide will get RethinkDB setup and running with a default configuration on OSX. There is also an option for setting RethinkDB to start at boot time on OSX, and a note on upgrading to a more recent RethinkDB version.

First Installation

Install Homebrew if you don't already have it:

@mafrosis
mafrosis / gist:7456240
Created November 13, 2013 20:55
config.log from failed ncmpcpp install
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/ncmpcpp/0.5.10 --with-taglib --with-curl --enable-unicode
## --------- ##
## Platform. ##
@mafrosis
mafrosis / serial_mon.py
Created May 17, 2013 21:41
Arduino serial port monitor
#! /usr/bin/env python
import serial
import time
PORT = "/dev/tty.usbmodemfd1121"
RECONNECT_SLEEP = 5
MONITOR_SLEEP = 0.2
@mafrosis
mafrosis / Screenshot_2013-05-02-18-05-21.jpg
Last active December 16, 2015 21:39
MPDroid Album Grid Library view
Screenshot_2013-05-02-18-05-21.jpg
#!/usr/bin/ruby
#
# This script fixes /usr/local only.
#
# 6th January 2010:
# Modified the script to just fix, rather than install. - rpavlik
#
# 30th March 2010:
# Added a check to make sure user is in the staff group. This was a problem
# for me, and I think it was due to me migrating my account over several
@mafrosis
mafrosis / EC2.py
Created July 17, 2012 02:46
Draft of changes to salt-cloud EC2.py
'''
The generic libcloud template used to create the connections and deploy the
cloud virtual machines
'''
# Import python libs
import os
import sys
import subprocess