Skip to content

Instantly share code, notes, and snippets.

View erotte's full-sized avatar
🏡
Arbeit Arbeit Arbeit

Eckhard Rotte erotte

🏡
Arbeit Arbeit Arbeit
View GitHub Profile
Xms512m -Xmx512m -XX:MaxPermSize=256m -XX:+UseParallelGC -XX:ParallelGCThreads=4 -XX:+UseAdaptiveSizePolicy -Xbootclasspath/a:../lib/boot.jar -ea
class ArticlesController < ApplicationController
# GET /articles
# GET /articles.xml
def index
@articles = Article.all
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @articles }
end
run "echo TODO > README"
generate :nifty_layout
puts "configuring gems"
gem "sqlite3-ruby", :lib => "sqlite3"
gem 'haml'
gem "fastercsv", :lib => false
gem 'vlad', :lib => false
gem 'vlad-git', :lib => false
// ===================================
// = Bullet Proof Popups, 1997 style =
// ===================================
Popup: {
base: function(url, options, popupName){
popupName = window.open(url,popupName,options);
if (popupName){
if (popupName.focus) popupName.focus();
}
return false;
ActionController::Base.asset_host = Proc.new { |source|
source.starts_with?('/images') ? "liveorproductionapp.tld" : nil
}
IRB.conf[:AUTO_INDENT] = true
IRB.conf[:USE_READLINE] = true
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:PROMPT_MODE] = :SIMPLE
require 'rubygems'
require 'irb/completion'
require 'utility_belt'
require 'pp'
#! /bin/bash
sqlite3 -echo -bail ~/Library/Mail/Envelope\ Index vacuum;
@erotte
erotte / gist:104005
Created April 29, 2009 19:41
.bash_profile @home
ORIG_PATH=$PATH
USER_PATH=/usr/local/sbin:~/bin:/usr/X11R6/bin
OPT_PATH=/opt/local/bin:/opt/local/sbin
PG_PATH=/opt/local/lib/postgresql82/bin
MYSQL_PATH=/opt/local/lib/mysql5/bin
DEV_PATH=$OPT_PATH:$MYSQL_PATH:$PG_PATH:$PATH:$USER_PATH
export PATH=$DEV_PATH