Skip to content

Instantly share code, notes, and snippets.

@MaxMartin
MaxMartin / gist:7535694
Last active December 28, 2015 17:28
Peanut Cilantro Sauce
Ingredients
0.5 cup peanut butter ("natural" hippie kind, chunky, preferably unsalted & unsweetened)
0.5 cup soy sauce (+/- a Tbsp, based on how dark/strong it is. less if PB is salted)
2 packed Tbsp minced garlic
3 packed Tbsp minced cilantro
1/4-1/2 tsp rice wine or sherry
1-2 Tbsp hot chili oil (depending on desired spice level, see below)
5 Tbsp sugar (less if PB is sweetened)
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Aliases
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY
alias leftthird move screenOriginX;screenOriginY screenSizeX/3;screenSizeY
alias righthalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY
alias rightthird move screenOriginX+screenSizeX/3+screenSizeX/3;screenOriginY screenSizeX/3;screenSizeY
@MaxMartin
MaxMartin / gist:5272354
Created March 29, 2013 17:44
Using Zweikopf to invoke mcollective from Clojure
root@master:/home/vagrant/zweikopf# lein repl
REPL started; server listening on localhost port 24747
user=> (require '(zweikopf [core :as zc]))
nil
user=> (zc/init-ruby-context)
#'zweikopf.core/ruby-runtime
user=> (zc/ruby-eval "$: << '/usr/lib/ruby/vendor_ruby'")
#<RubyArray ["/home/vagrant/zweikopf/test", "/home/vagrant/zweikopf/test-resources", "/home/vagrant/zweikopf/src", "/home/vagrant/zweikopf/classes", "/home/vagrant/zweikopf/resources", "/home/vagrant/zweikopf/lib/jruby-complete-1.7.1.jar", "/home/vagrant/zweikopf/lib/clojure-1.4.0.jar", "file:/home/vagrant/zweikopf/lib/jruby-complete-1.7.1.jar!/META-INF/jruby.home/lib/ruby/site_ruby", "file:/home/vagrant/zweikopf/lib/jruby-complete-1.7.1.jar!/META-INF/jruby.home/lib/ruby/shared", "file:/home/vagrant/zweikopf/lib/jruby-complete-1.7.1.jar!/META-INF/jruby.home/lib/ruby/1.9", "/usr/lib/ruby/vendor_ruby"]>
user=> (zc/ruby-require "mcollective")