Skip to content

Instantly share code, notes, and snippets.

View edavis10's full-sized avatar

Eric Davis edavis10

View GitHub Profile
@edavis10
edavis10 / chiliproject_to_redmine.rb
Created June 27, 2017 22:18 — forked from pille/chiliproject_to_redmine.rb
Run this script from the root of your Redmine installation to convert from a Chiliproject installation
# encoding: UTF-8
# Chiliproject to Redmine converter
# =================================
#
# This script takes an existing Chiliproject database and
# converts it to be compatible with Redmine (>= v2.3). The
# database is converted in such a way that it can be run multiple
# times against a production Chiliproject install without
# interfering with it's operation. This is done by duplicating

My latest stop in software to try and run my business has been Trello. Unlike Daylite ([read my Daylite review][dayrev]), Trello is not a specifically tailored CRM and Project management application.

Trello takes a much more open approach to dealing with managing business tasks. You can't specifically enter clients and then link emails, documents to them. At least not in a way similar to Daylite. You can make a card for a client, throw in their contact information, and then move that through your sales process.

@todo shot of client card in sales process

I know that someone is going to dig up my post about [no business models][nobus] and ask me why I'd even try a business crucial application that has no current business model. Well it's because Fog Creek is behind the software. Fog Creek has [gone on record][fogrecord] that they do plan on charging something at some point, but what you are using now will always be free. Fog Creek is a very reputable software company with many other sources of revenue. I'm w

class MyApp < Rails::Application
routes.append do
match "*", to: "controller#action"
end
end
@edavis10
edavis10 / article.rb
Created August 27, 2012 17:01 — forked from Achillefs/article.rb
Sample Article class posting to a Wordpress blog via wp-json-api
require 'rubygems'
require 'open-uri'
require 'json'
require 'net/http'
# Please note that the vanilla wp-json-api plugin does not support user authentication for create_post.
# Check out my fork for authentication support: https://github.com/Achillefs/wp-json-api
class Article
API_URI = 'http://mywpblog.com/api/'
API_USER = 'my_wp_username'
# I think we can agree that this code is best, even if contrived:
if @article.public?
views += 1
else
redirect_to "/some/other/page"
end
# But sometimes, people don't make query methods that are positive, ie
@edavis10
edavis10 / .irbrc
Created May 16, 2011 23:49 — forked from gilesbowkett/user.rb
it doesn't have to be complicated
# Append the user's .railsrc.rb to the load modules, that way it's loaded
# after the rails ENV and everything else...
if $0 == 'irb' && ENV['RAILS_ENV']
IRB.conf[:LOAD_MODULES] << File.dirname(__FILE__) + '/.railsrc' # ~/.railsrc.rb, requires .rb
end
module ActionController
module RequestForgeryProtection
def verify_authenticity_token
verified_request? || handle_unverified_request
end
def handle_unverified_request
reset_session
end
## vendor/plugins/redmine_dana/init.rb
require 'redmine'
Redmine::Plugin.register :redmine_hide_projects do
name 'Hide Projects'
author 'Dana Jones'
url 'http://www.sterlingrosedesign.com/'
author_url 'http://www.sterlingrosedesign.com/'
description 'The Redmine Hid Projects plugin is used to hide the projects link at the top of the
#
# vendor/plugins/redmine_gist/init.rb
#
require 'redmine'
require 'open-uri'
Redmine::Plugin.register :redmine_gist do
name 'Redmine Gist embed plugin'
author 'Yasushi Abe <[email protected]>'
description 'This is a plugin for Redmine'
#
# vendor/plugins/redmine_youtube/init.rb
#
require 'redmine'
require 'open-uri'
Redmine::Plugin.register :redmine_gist do
name 'Redmine YouTube plugin'
author 'Maxime Rousseaux-Bridle <[email protected]>'
description 'Allows a you tube video to be embeded'