Public Gists by edavis10

gist: 184168 Patch TMail/ActionMailer to...
Gravatar
Wed Sep 09 16:24:54 -0700 2009
1
2
3
# Send all mail to a single address in staging
if RAILS_ENV == 'staging'
  STAGING_EMAIL_ADDRESS = 'staging@foo.com'
gist: 183286 Moving and upgrading a Redm...
Gravatar
Tue Sep 08 15:41:03 -0700 2009
1
2
3
1. Create a text backup of your data form the live server. This will ask for a password.
 
    mysqldump -u your_user -p your_redmine_database > backup_sql_file.sql
Gravatar
Sat Sep 05 13:12:00 -0700 2009
1
2
3
 git diff
diff --git a/config/deploy.rb b/config/deploy.rb
index 4140c0b..acaa784 100644
Gravatar
Sun Aug 23 15:47:03 -0700 2009
1
2
3
# /etc/init.d/nginx
#!/bin/sh
 
Gravatar
Wed Aug 19 18:34:30 -0700 2009
1
2
3
$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
 
Gravatar
Wed Aug 19 09:00:12 -0700 2009
1
2
3
# vendor/plugins/plugin_a/init.rb
Dispatcher.to_prepare do
  require_dependency 'application' # for ApplicationController
Gravatar
Sat Aug 15 15:27:34 -0700 2009
1
2
3
FatFreeCRM::Plugin.register(:fat_free_issues, initializer) do
  name "Fat Free Issues"
  author "PCCL"
Gravatar
Sat Aug 15 14:34:09 -0700 2009
1
2
3
#!/bin/bash
TZ='America/Los_Angeles'; export TZ
 
Gravatar
Fri Aug 07 12:07:16 -0700 2009
1
2
3
require 'ostruct'
 
class BugMash
Gravatar
Mon Jul 27 16:15:51 -0700 2009
1
2
3
   def total_hours_for_issue_for_date_range(issue, user, date_from, date_to)
- current_date = date_from
- total = 0.0
Gravatar
Wed Jul 08 15:18:17 -0700 2009
1
2
3
-- phpMyAdmin SQL Dump
-- version 2.11.8.1deb5
-- http://www.phpmyadmin.net
Gravatar
Mon Jun 29 18:14:57 -0700 2009
1
2
3
class RailsTutorLayoutHook < Redmine::Hook::ViewListener
  # Add a CSS menu link
  def view_layouts_base_html_head(context = { })
Gravatar
Mon Jun 29 17:30:16 -0700 2009
1
2
3
## vendor/plugins/redmine_dana/init.rb
 
require 'redmine'
Gravatar
Sun Jun 28 20:52:33 -0700 2009
1
2
3
en:
  burndown: "Burndown"
  burndown_text_no_sprint: "There is no current Sprint for this Project"
Gravatar
Fri Jun 26 15:22:23 -0700 2009
1
2
3
Redmine::MenuManager.map :top_menu do |menu|
  menu.delete(:projects)
end
Gravatar
Thu Jun 25 09:31:44 -0700 2009
1
2
3
class MyController < ApplicationController
  def index
    @model = MyModel.new
Gravatar
Thu Jun 11 10:51:51 -0700 2009
1
2
3
#!/bin/bash
# Openssl script to regenerate the Apache2 cert in place of apache2-ssl-certificate
echo "Use your url for the Common Name (CN)"
Gravatar
Wed Jun 10 11:43:54 -0700 2009
1
2
3
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
 
Gravatar
Fri May 29 09:05:48 -0700 2009
1
2
3
require 'redmine'
 
Redmine::Plugin.register :my_plugin_name do
Gravatar
Thu May 28 16:17:56 -0700 2009
1
2
3
### init.rb
 
require 'dispatcher'