Skip to content

Instantly share code, notes, and snippets.

-- NOTE: IN order to move around windows mjolnir must have access to Accessibility
-- This can be set in Security & Privacy properties
-- local files
dofile(package.searchpath("utils", package.path))
-- adds some functionality to bg.grid
dofile(package.searchpath("grid", package.path))
local log = hs.logger.new('jjr-init','info')
#!/bin/bash
# If called with no args, just find an open emacs window and bring it
# to the current desktop.
# If called with a file, try to open the file with emacsclient which
# will reuse an open emacs window if emacsserver is running. Then
# it will bring that window to the current desktop.
shopt -s execfail
#############################################################
##
## tmux plugins
##
#############################################################
# plugin options

This is how I ruby on Emacs. This is all based on top of the the built in ruby-mode. I’m using emacs 25 built by homebrew on OSX.

##ELPA Packages##

  • rspec-mode - Enhance ruby-mode for RSpec
  • ruby-block - highlight matching block
  • ruby-compilation - run a ruby process in a compilation buffer
  • ruby-end - Automatic insertion of end blocks for Ruby
  • ruby-interpolation - Ruby string interpolation helpers
  • ruby-tools - Collection of handy functions for ruby-mode
#!/usr/bin/env ruby
require 'rubygems'
require 'mixlib/cli'
require 'json'
class Aws
include Mixlib::CLI
banner "Usage: #{File.basename($0)} (options) [ssh|scp|find|as|cssh]"
#!/usr/bin/env ruby
require 'rubygems'
require 'mixlib/cli'
require 'json'
class Aws
include Mixlib::CLI
banner "Usage: #{File.basename($0)} (options) [ssh|scp|find|as|cssh]"
# /etc/rsyslog.conf Configuration file for rsyslog.
#
# For more information see
# /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
#
# Default logging rules can be found in /etc/rsyslog.d/50-default.conf
#if $syslogtag == "tjs-rails" then {