Instantly share code, notes, and snippets.

Joe DeVivo joedevivo

View GitHub Profile
@joedevivo
joedevivo / Left.scad
Created Jun 23, 2017
EasyDactyl v0.2 scad
View Left.scad
module Left(){
board_thickness = 1.600000;
eta = 0.1;
board_size = [17.450000,48.250000,board_thickness];
fn = 18;
board_origin = [1.270000,1.270000];
union(){
color("red")difference(){
translate(board_origin)cube(board_size); //Board
translate([16.510,27.940,-eta])cylinder(r=0.508000, h=board_thickness+eta*2,$fn=fn); //1X06 1
View Makefile
REBAR3_URL=https://s3.amazonaws.com/rebar3/rebar3
# If there is a rebar in the current directory, use it
ifeq ($(wildcard rebar3),rebar3)
REBAR3 = $(CURDIR)/rebar3
endif
# Fallback to rebar on PATH
REBAR3 ?= $(shell test -e `which rebar3` 2>/dev/null && which rebar3 || echo "./rebar3")
@joedevivo
joedevivo / gist:7436363
Created Nov 12, 2013
Fat finger a config line? Now we're making suggestions!
View gist:7436363
➜ riak git:(develop) ✗ ./rel/riak/bin/riak config generate
11:19:50.527 [warning] You've tried to set anti_entrophy, but there is no setting with that name.
11:19:50.527 [warning] it could be a typo. Did you mean one of these?
11:19:50.545 [warning] anti_entropy
11:19:50.545 [warning] anti_entropy.tick
11:19:50.545 [warning] anti_entropy.expire
@joedevivo
joedevivo / generated.app.config
Created Nov 5, 2013
Here's the app.config generated by the same run I used to create this: https://gist.github.com/joedevivo/7305410
View generated.app.config
[{riak_sysmon,
[{process_limit,30},
{port_limit,2},
{gc_ms_limit,0},
{heap_word_limit,40111000},
{busy_port,true},
{busy_dist_port,true}]},
{yokozuna,
[{solr_port,8093},
{solr_jmx_port,8985},
@joedevivo
joedevivo / gist:7305410
Created Nov 4, 2013
Mapping of riak configuration values from app.config to riak.conf current as of November 4, 2013
View gist:7305410
app.config field riak.conf variable
-------------------------------------------------------------------------------------------
yokozuna.enabled yokozuna
yokozuna.solr_port yokozuna.solr_port
yokozuna.solr_jmx_port yokozuna.solr_jmx_port
yokozuna.solr_jvm_args yokozuna.solr_jvm_args
yokozuna.yz_dir yokozuna.data_dir
riak_repl.data_root mdc.data_root
riak_core.cluster_mgr mdc.cluster_manager
riak_repl.max_fssource_cluster mdc.max_fssource_cluster
View gist:5389301
*Window A*
➜ ~ erl -name node@127.0.0.1 -setcookie joe
*Window B*
# 1, try starting erl with -remsh via open_port
➜ ~ erl
Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:4:4] [async-threads:0] [kernel-poll:false]
Eshell V5.9.3.1 (abort with ^G)
1> P = open_port({spawn, "erl -name local@127.0.0.1 -hidden -remsh node@127.0.0.1 -setcookie joe"},
View gist:4758637
Download EasySIMBL: https://github.com/norio-nomura/EasySIMBL
Download Maximizer: http://chpwn.com/apps/maximizer.html
EasySIMBL is SIMBL with some added compatibility for OS X Lion / Mount'n Lion.
Drag the app to your applications folder, open it up and check the box that says "Use SIMBL".
Then click the button that says "Show Plugin Folder" and drag the Maximizer into that folder.
Close EasySIMBL and Emacs.
When you reopen emacs, you'll be able to go into fullscreen emacs by clicking the arrows on the top right corner.
The end.