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 | |
| #### Startup some of my things | |
| ### DISPLAY 0.0 is my left monitor group | |
| ### DISPLAY 0.1 is my riight monitor group | |
| # Wrapper script to startup iceweasel/firefox using my default profile | |
| DISPLAY=":0.0" iceweasel-default.sh & | |
| DISPLAY=":0.0" icedove & | |
| DISPLAY=":0.0" epiphany http://tracks http://pandora.com & | |
| DISPLAY=":0.0" emacs.sh ~/tmp/scratch.txt & |
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
| ################################################## | |
| # Factory girl | |
| ################################################## | |
| # Redmine specific Factories | |
| Factory.define :user do |u| | |
| u.mail { Faker::Internet.email } | |
| u.firstname { Faker::Name.first_name } | |
| u.lastname { Faker::Name.last_name } | |
| u.login { Faker::Internet.user_name } |
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
| # Still a work in progress but is good enough for development | |
| # | |
| # `rake redmine:demo_data` for it all | |
| # `rake redmine:demo_data:users` | |
| # `rake redmine:demo_data:projects` | |
| # `rake redmine:demo_data:issues` | |
| # `rake redmine:demo_data:time_entries` | |
| require 'faker' | |
| require 'random_data' |
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
| production: | |
| delivery_method: :smtp | |
| smtp_settings: | |
| address: localhost | |
| port: 25 | |
| domain: example.com |
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
| diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb | |
| index cba8e59..af53ec2 100644 | |
| --- a/app/controllers/issues_controller.rb | |
| +++ b/app/controllers/issues_controller.rb | |
| @@ -139,6 +139,7 @@ class IssuesController < ApplicationController | |
| if request.get? || request.xhr? | |
| @issue.start_date ||= Date.today | |
| + @issue.inspire_on(params[:inspire_on]) if params[:inspire_on] | |
| else |
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
| echo -e "This is a summary of disk usage on your server:\n\n `df -h`\n\nUptime: `uptime`" | mail -s "System report for `hostname` on `date`" my_email@gmail.\com |
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
| LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.6/ext/apache2/mod_passenger.so | |
| PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.6 | |
| PassengerRuby /usr/local/bin/ruby | |
| NameVirtualHost * | |
| <VirtualHost *> | |
| ServerAdmin webmaster@localhost | |
| DocumentRoot /home/edavis/integrity/public | |
| <Directory /home/edavis/integrity/public"> |
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
| task :integrity => ['config/database.yml', 'test'] | |
| file 'config/database.yml' do | |
| cp 'config/database.yml.sample', 'config/database.yml' | |
| 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
| #!/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. | |
| # |
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
| # Add some alias'es to FillingRequest map the attributes directly | |
| def legal_business_name | |
| self.company | |
| end | |
| def legal_business_name=(v) | |
| self.company = v | |
| end | |
| def phone_number |