Skip to content

Instantly share code, notes, and snippets.

View aka47's full-sized avatar
💭
I may be slow to respond.

Tim Aßmann aka47

💭
I may be slow to respond.
View GitHub Profile
@aka47
aka47 / gist:1301193
Created October 20, 2011 13:52
install macvim with brew error
/usr/local/Library/Homebrew/global.rb:43: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/usr/local/bin/brew:73: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/usr/local/Library/Homebrew/build.rb:7: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
==> Downloading https://github.com/b4winckler/macvim/tarball/snapshot-62
File already downloaded in /Users/tassmann/Library/Caches/Homebrew
/usr/bin/tar xf /Users/tassmann/Library/Caches/Homebrew/macvim-7.3-62.tgz
==> ./configure --with-macsdk=10.7 --with-features=huge --with-tlib=ncurses --enable-multibyte --with-macarchs=x86_64 --enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-tclinterp
./configure --with-macsdk=10.7 --with-features=huge --with-tlib=ncurses --enable-multibyte --with-macarchs=x86_64 --enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-tclinterp
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
class PagesController < ApplicationController
before_filter :login_required, :except => [ :show ]
# GET /pages
# GET /pages.xml
def index
@pages = Page.find(:all)
respond_to do |format|
format.html # index.html.erb
#!/usr/bin/env ruby
#
# usage: script/server_restarter
#
# Rails autoloading, while nice in theory, frequently doesn't work. Since Rails 2.3+
# is so fast when completely reloading the server, I wrote this script to listen to the
# given directories, and kill/restart the server when any file is changed.
#
# It's quick, simple, and it reliably reloads your application when changes are made.
#
# add support for custom access-validation-functions
module Jovoto
module AccessControlExtended
class RightsHandler < Caboose::AccessHandler
def initialize(klass)
@klass = klass
end
# main method which evaluates who has access or not