Skip to content

Instantly share code, notes, and snippets.

View alexg0's full-sized avatar

Alexander Goldstein alexg0

  • Eligo Energy, LLC
  • Miami, FL
View GitHub Profile
@alexg0
alexg0 / installing_jruby_on_ubuntu.sh
Created November 27, 2009 19:18
Installing jruby on ubuntu
# get current jruby
wget http://jruby.kenai.com/downloads/1.4.0/jruby-bin-1.4.0.tar.gz
tar xzvf jruby-bin-1.4.0.tar.gz
sudo mv jruby-1.4.0/ /opt
# link executables in /usr/local/bin
sudo ln -s /opt/jruby-1.4.0/bin/{jgem,jirb,jruby} /usr/local/bin
@alexg0
alexg0 / mongo_template.rb
Created November 28, 2009 14:57 — forked from bawNg/mongo_template.rb
mongo_template.rb
# mongo_template.rb
# fork of a fork of Ben Scofield's Rails MongoMapper Template (http://gist.github.com/181842)
#
# To use:
# rails project_name -m template.file
# remove unneeded defaults
run "rm public/index.html"
run "rm public/images/rails.png"
run "rm public/javascripts/controls.js"
# build chef
echo 'Acquire::http { Proxy "http://rocky:3142"; } ;' | sudo tee /etc/apt/apt.conf.d/02proxy
sudo sed -i 's/universe/multiverse universe/' /etc/apt/sources.list
sudo apt-get update
sudo apt-get install -y ruby ruby1.8-dev libopenssl-ruby1.8 rdoc ri irb build-essential wget ssl-cert rubygems git-core rake librspec-ruby libxml-ruby thin couchdb zlib1g-dev libxml2-dev
sudo gem sources -a http://gems.opscode.com
sudo gem install cucumber merb-core jeweler uuidtools json libxml-ruby --no-ri --no-rdoc
@alexg0
alexg0 / Rakefile
Created April 16, 2010 18:02
for chef-repo - load and dump data bags
# ...
# append following lines
Dir[ File.join(File.dirname(__FILE__), 'tasks', '*.rake') ].sort.each do |f|
load f
end
# Generate tags
require 'rubygems'
module Tags
# TODO: add gem dirs
RUBY_DIRS = %w( lib vendor/gems )
GEM_PATHS = Gem.path
def ruby_paths
(RUBY_DIRS + GEM_PATHS).find_all{|d| File.exists? d }
# standard rails .gitignore file
# .gitignore
# bundler recomended lines
vendor/gems/*
!vendor/gems/cache/
.bundle/
# generated tags
tags
@alexg0
alexg0 / node.rb
Created February 25, 2011 20:31 — forked from superfeedr/node.rb
require 'nokogiri'
module Nokogiri
module XML
class Node
##
# Returns true of the argument is semantically equivalent to self
# Equivalent is defined as follows :
# - same name
@alexg0
alexg0 / .slate
Last active December 26, 2015 14:19
#! slate
# install with following command:
# cd /Applications && curl http://www.ninjamonkeysoftware.com/slate/versions/slate-latest.tar.gz | tar -xz
# GLOBAL CONFIGURATIONS
# -------------------------------------------------------------------
# See https://github.com/jigish/slate/wiki/Global-Configs
config defaultToCurrentScreen true
@alexg0
alexg0 / gist:7394549
Created November 10, 2013 06:21
Airmail Beta 1.3 (214) crash
Process: AirMail Beta [17994]
Path: /opt/homebrew-cask/*/AirMail Beta.app/Contents/MacOS/AirMail Beta
Identifier: it.bloop.airmail.beta8
Version: 1.3 (214)
Code Type: X86-64 (Native)
Parent Process: launchd [334]
Responsible: AirMail Beta [17994]
User ID: 501
Date/Time: 2013-11-10 00:20:27.527 -0600

Keybase proof

I hereby claim:

  • I am alexg0 on github.
  • I am alexg0 (https://keybase.io/alexg0) on keybase.
  • I have a public key ASCGqvHNgpLgzSv7vuHciExPTTigv9MZuMLRcjw6Z-VSWAo

To claim this, I am signing this object: