Skip to content

Instantly share code, notes, and snippets.

View joshuarubin's full-sized avatar
🏠
Working from home

Joshua Rubin joshuarubin

🏠
Working from home
View GitHub Profile
@joshuarubin
joshuarubin / OpenBSD53XFiles.txt
Last active August 29, 2015 14:03
OpenBSD X Files
/usr/X11R6/lib/libFS.so.9.0
/usr/X11R6/lib/libGL.so.13.0
/usr/X11R6/lib/libGLU.so.7.0
/usr/X11R6/lib/libGLw.so.5.1
/usr/X11R6/lib/libI810XvMC.so.1.0
/usr/X11R6/lib/libICE.so.9.0
/usr/X11R6/lib/libIntelXvMC.so.1.0
/usr/X11R6/lib/libSM.so.8.0
/usr/X11R6/lib/libX11-xcb.so.1.0
/usr/X11R6/lib/libX11.so.15.1
@joshuarubin
joshuarubin / index.html
Created July 31, 2014 22:55
User Experience Designer | zVelo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>User Experience Designer | zVelo</title>
<!-- <link rel="stylesheet" href="https://stackedit.io/res-min/themes/base.css" /> -->
<link rel="stylesheet" href="https://rawgit.com/joshuarubin/rubix-marked-style/master/Rubix.css" />
<script type="text/javascript" src="https://stackedit.io/libs/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>
</head>
<body class="normal"><div class="container"><p><img src="https://zvelo.com/images/stories/zvelo-logo-we-categorize-the-web.png" alt="zVelo — We categorize the Web" title=""></p>
@joshuarubin
joshuarubin / example.go
Created December 10, 2014 07:52
redis cluster golang
// example program
package main
import (
"fmt"
"os"
"time"
"github.com/fzzy/radix/extra/cluster"
@joshuarubin
joshuarubin / etcd.service
Last active August 29, 2015 14:17
etcd 2.0 systemd unit file
[Unit]
Description=etcd
After=docker.service
[Service]
User=core
PermissionsStartOnly=true
EnvironmentFile=/etc/environment
Restart=always
RestartSec=10s
@joshuarubin
joshuarubin / .vimrc
Last active July 25, 2016 03:01
Minimal Vim Configuration for Go (Golang)
" Note: first install neobundle with this command:
" curl https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh | sh
"
" Note: It is imperative that your version of vim has lua support
" for the autocompletion engine to work
"
" Note: you will need gocode, godef, goimports, etc. installed
" You can also run :GoInstallBinaries to do it for you
" Note: Skip initialization for vim-tiny or vim-small.
@joshuarubin
joshuarubin / docker-registry-mirror.service
Last active August 29, 2015 14:19
Docker Registry Mirror Unit File
[Unit]
Description=Docker Registry Mirror
[Service]
Restart=always
RestartSec=10
ExecStartPre=-/usr/bin/docker kill %p
ExecStartPre=-/usr/bin/docker rm %p
ExecStartPre=/usr/bin/docker pull registry
ExecStartPre=/usr/bin/sudo /usr/bin/mkdir -p /home/core/data/%p
@joshuarubin
joshuarubin / config.rb
Last active August 29, 2015 14:19
Joshua's CoreOS Vagrant Configuration
# To automatically replace the discovery token on 'vagrant up', uncomment
# the lines below:
#
#if File.exists?('user-data') && ARGV[0].eql?('up')
# require 'open-uri'
# require 'yaml'
#
# token = open('https://discovery.etcd.io/new').read
#
# data = YAML.load(IO.readlines('user-data')[1..-1].join)
@joshuarubin
joshuarubin / Dockerfile
Last active August 29, 2015 14:20
Hystrix Dashboard Dockerfile
FROM java
WORKDIR /app
ENV HYSTRIX_DASHBOARD_VERSION 1.4.5
ENV JETTY_RUNNER_VERSION 9.2.9.v20150224
ADD http://central.maven.org/maven2/com/netflix/hystrix/hystrix-dashboard/${HYSTRIX_DASHBOARD_VERSION}/hystrix-dashboard-${HYSTRIX_DASHBOARD_VERSION}.war /app/hystrix-dashboard.war
ADD http://central.maven.org/maven2/org/eclipse/jetty/jetty-runner/${JETTY_RUNNER_VERSION}/jetty-runner-${JETTY_RUNNER_VERSION}.jar /app/jetty-runner.jar
EXPOSE 5406
ENTRYPOINT ["java", "-jar", "jetty-runner.jar", "--port", "5406"]
CMD ["hystrix-dashboard.war"]
@joshuarubin
joshuarubin / keybase.md
Created September 24, 2015 20:22
keybase.md

Keybase proof

I hereby claim:

  • I am joshuarubin on github.
  • I am joshuarubin (https://keybase.io/joshuarubin) on keybase.
  • I have a public key whose fingerprint is 75ED 503B 11DB C36E D330 13E2 7EA9 C821 BFD6 4727

To claim this, I am signing this object:

@joshuarubin
joshuarubin / tmux.rb
Last active May 27, 2016 06:23
tmux 2.2 homebrew
class Tmux < Formula
desc "Terminal multiplexer"
homepage "https://tmux.github.io/"
url "https://github.com/tmux/tmux/releases/download/2.2/tmux-2.2.tar.gz"
sha256 "bc28541b64f99929fe8e3ae7a02291263f3c97730781201824c0f05d7c8e19e4"
head do
url "https://github.com/tmux/tmux.git"
depends_on "autoconf" => :build