Skip to content

Instantly share code, notes, and snippets.

View taylor's full-sized avatar
🐢
🌊

Taylor Carpenter taylor

🐢
🌊
View GitHub Profile
#!/bin/bash
# uses scrot for capture
# and imgur for posting
post=0
scrotargs=""
selectopt="-s"
filename='%Y-%m-%d-%H%M_$wx$h.png'
execcmd="imgur"
@taylor
taylor / .vimrc
Last active August 29, 2015 13:56
super minimal vimrc
set ts=2
set sw=2
set et
set nocompatible
syntax on
filetype on
filetype indent on
filetype plugin on
defmodule StringIO do
def new(string) when is_binary(string) do
spawn_link(fn -> string_io_process(string) end)
end
def string_io_process(string) do
loop(:infinity, String.to_char_list!(string))
end
def loop(wait, buf) do
@taylor
taylor / Dockerfile
Created January 29, 2014 05:21 — forked from henrik-muehe/Dockerfile
Fake Fuse build for Docker to get around /dev/fuse not being available
...
# Fake a fuse install
RUN apt-get install libfuse2
RUN cd /tmp ; apt-get download fuse
RUN cd /tmp ; dpkg-deb -x fuse_* .
RUN cd /tmp ; dpkg-deb -e fuse_*
RUN cd /tmp ; rm fuse_*.deb
RUN cd /tmp ; echo -en '#!/bin/bash\nexit 0\n' > DEBIAN/postinst
RUN cd /tmp ; dpkg-deb -b . /fuse.deb
sudo dpkg --purge nano
sudo apt-get -y install software-properties-common python-software-properties
sudo add-apt-repository -y ppa:nviennot/tmate
sudo add-apt-repository -y ppa:pi-rho/dev # tmux 1.8
sudo add-apt-repository -y ppa:keithw/mosh
sudo apt-get update
sudo apt-get install -y build-essential checkinstall
sudo apt-get install -y vim unzip git ctags pwgen tmate tmux mosh
@taylor
taylor / riak2-build.mkd
Last active December 31, 2015 04:59
Riak 2 setup from source

Riak 2.0 Build Instructions with real SOLR searching

These instructions currently target a source build from http://github.com/basho/riak on Ubuntu 12.04 LTS

The configuration shows how to enable the new searching and such.

Prereqs

#!/bin/bash
osdistro=""
function determine_distro() {
if [ -f /etc/lsb-release ] ; then
DISTRO=$(grep DISTRIB_ID /etc/lsb-release | awk -F= '{print $2}')
elif [ -f /etc/redhat-release ] ; then
if [ $(grep -qi centos /etc/yum.conf ; echo $?) ] ; then
DISTRO="centos"
else

Austin Elixir Meetup 2013/12/05

Elixir GitHub repository activity for the last 30 days

As of December 5th, 2013 when searching for the term "elixir" github finds 644 repositories.

#!/bin/bash
testbucket="testhistories$RANDOM"
#testfile1=mockquote$RANDOM
#testfile2=mockquote$RANDOM
echo "Test bucket: $testbucket"
#echo "Creating test files: $testfile1 $testfile2"
echo "Installing post commit hook on bucket $testbucket"
set -g default-terminal "screen-256color"
## OLD
#set -g prefix DC,C-b
#bind-key b send-keys C-b
#bind-key b send-keys C-b
## NEW
#set -g prefix2 C-b
#bind-key b send-prefix -2