This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This requires tmux 2.1. a lot of these settings will error on anything earlier. | |
# Act like Vim; use h,j,k,l to select panes and move the cursor | |
set-window-option -g mode-keys vi | |
bind-key h select-pane -L | |
bind-key j select-pane -D | |
bind-key k select-pane -U | |
bind-key l select-pane -R | |
# Look good |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'rspec' | |
gem 'pry' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git submodule add -b master https://github.com/elixir-lang/vim-elixir.git bundle/vim-elixir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule MessageBus do | |
# call any function that matches the listener | |
# type is atom (eg: :hello) | |
# message is string | |
# listeners is list of tuples of functions | |
# [ hello: fn(m) -> IO.puts m end, bye: fn(m) -> IO.puts m end, hello: fn(m) -> IO.puts "I will also do this crap" end ]""] | |
def publish(type, message, listeners) do | |
_publish(type, message, listeners) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Math do | |
def pow( num, power ) do | |
_pow num, power, 1 | |
end | |
def _pow( num, 0, acc ) do | |
acc | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
$if Bash | |
Space: magic-space | |
$endif | |
"\M-o": "\C-p\C-a\M-f " | |
set visible-stats on | |
set show-all-if-ambiguous on | |
"\M-s": menu-complete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example configuration for mcwrapper: mcwrapper.conf | |
# this file can live in any of the following places (in order of priority): | |
# - the value of MCWRAPPER_CONFIG_PATH env variable | |
# - the current working directory as "mcwrapper.conf" | |
# - ~/.mcwrapper.conf | |
# - /etc/mcwrapper.conf | |
# | |
# Configuration is actual Bash. You can use conditionals... not that you would. | |
. "/root/minecraft/minecraft-docker" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./configure --prefix=$HOME/.local --enable-rubyinterp=yes --with-features=big |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
require 'nokogiri' | |
require 'faraday' | |
host = 'http://plex.example.com:32400' | |
uri = '/status/sessions' | |
f = Faraday.new( host ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'faraday' | |
require 'oj' | |
require 'openssl' | |
require 'base64' | |
require 'digest/md5' | |
require 'ostruct' | |
require 'pry' | |
API_HOST = 'https://bittrex.com' |