This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> Principal.methods.grep /generate/ | |
[ | |
[0] "generated_methods?", | |
[1] "generates_subclass", | |
[2] "exemplars_generated", | |
[3] "exemplars_generated=", | |
[4] "generate", | |
[5] "generate!", | |
[6] "generated_methods" | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Alias Time | |
## some more ls aliases | |
alias ll='ls -l' | |
alias la='ls -A' | |
alias l='ls -CF' | |
alias mb='mv' | |
## Use kpdf as my main pdf viewer | |
alias pdf='kpdf' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIR=/home/edavis/dev/redmine/redmine-core | |
. ~/.keychain/$HOSTNAME-sh # My SSH key script for password-less logins | |
cd $DIR | |
git svn fetch --all | |
git push github |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ script/about | |
About your application's environment | |
Ruby version 1.8.7 (i486-linux) | |
RubyGems version 1.3.5 | |
Rack version 1.0 | |
Rails version 2.3.5 | |
Active Record version 2.3.5 | |
Active Resource version 2.3.5 | |
Action Mailer version 2.3.5 | |
Active Support version 2.3.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put in vendor/plugins/redmine_rt_link/init.rb | |
require 'redmine' | |
Redmine::Plugin.register :redmine_rt_link do | |
name 'Redmine Request Tracker link' | |
author 'Eric Davis' | |
url 'https://projects.littlestreamsoftware.com/projects/redmine-misc' | |
author_url 'http://www.littlestreamsoftware.com' | |
version '0.1.0' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @settings and anything in it could be nil or blank at any time | |
def get_backlog_issues(exclude_ids=[]) | |
return [[]] unless @settings.present? && | |
@settings['panes'].present? && | |
@settings['panes']['backlog'].present? && | |
@settings['panes']['backlog']['status'].present? && | |
@settings['panes']['backlog']['limit'].present? | |
# ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rt_sigreturn(0x1a) = 10--- SIGVTALRM (Virtual timer expired) @ 0 (0) --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'fileutils' | |
ROOT = '/srv/gitosis/checkouts/*' | |
Dir[ROOT].each do |path| | |
FileUtils.cd(path, :verbose => true) | |
system("git fetch") | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'dispatcher' | |
Dispatcher.to_prepare do | |
require_dependency 'version' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module RedmineRestricutedStatus | |
module Patches | |
module IssuePatch | |
def self.included(base) # :nodoc: | |
base.extend(ClassMethods) | |
base.send(:include, InstanceMethods) | |
base.class_eval do | |
unloadable # Send unloadable so it will not be unloaded in development | |
def new_statuses_allowed_to(user) |