Skip to content

Instantly share code, notes, and snippets.

View geetarista's full-sized avatar

Robby Colvin geetarista

View GitHub Profile

Keybase proof

I hereby claim:

  • I am geetarista on github.
  • I am geetarista (https://keybase.io/geetarista) on keybase.
  • I have a public key ASCMPjd6ds3jrN2soBh2ncpUuchmO_I5Hcqikex4kD40Ego

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am geetarista on github.
  • I am geetarista (https://keybase.io/geetarista) on keybase.
  • I have a public key whose fingerprint is 91D2 4370 77EC E149 0E8C 1734 8392 F906 5C07 199D

To claim this, I am signing this object:

finder = Application("Finder")
bounds = finder.desktop.window.bounds()
width = bounds["width"]
height = bounds["height"]
query = "{query}"
boundsMap = {
"f": {"x":0, "y":0, "width":width, "height":height},
"m": {"x":width/8, "y":height/8,
"width":width/1.125, "height":height/1.125},
"tr": {"x":width/2, "y":0, "width":width, "height":height/2},
tell application "Finder"
set b to bounds of window of desktop
set width to item 3 of b
set height to item 4 of b
end tell
set name to name of (info for (path to frontmost application))
set q to "{query}"
tell application name
@geetarista
geetarista / vagrant_global_status.sh
Created August 29, 2013 21:54
Global status for all Vagrant boxes.
#!/usr/bin/env bash
echo "Searching for Vagrant boxes..."
for file in $(find / -type f -name Vagrantfile 2>/dev/null); do
dir=$(dirname $file)
echo "Status for ${dir}:"
pushd $dir > /dev/null
out="$(vagrant status)"
popd > /dev/null
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ft=erlang ts=4 sw=4 et
[
%% Riak Client APIs config
{riak_api, [
%% pb_backlog is the maximum length to which the queue of pending
%% connections may grow. If set, it must be an integer >= 0.
%% By default the value is 5. If you anticipate a huge number of
%% connections being initialised *simultaneously*, set this number
%% higher.
info: Welcome to Nodejitsu nko3-la-salsa-picante
info: jitsu v0.11.0, node v0.8.14
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node server.js
info: Creating snapshot 0.0.1
info Uploading: [ ] 1%
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: npm http GET http://nj-npm.irisnpm.com/connect/1.8.5
@geetarista
geetarista / blank.html
Created November 6, 2012 00:19
Blank favicon
<link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII=" rel="icon" type="image/x-icon" />
@geetarista
geetarista / .cook.json
Created February 16, 2012 23:30
Settings for chef recipes
{
"imagemagick": { "ghostscript": true },
"npm": {
"packages": [
"batman",
"chai",
"changelog",
"coffee-script",
"colors",
"ctags",