This file contains 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/sh | |
#backupdb | |
echo "======================================" | |
echo "backing up database" | |
mysqldump -u backup --all-databases > /var/www/html/alldatabases.sql | |
#tar and compress the directories really hacky and should either make a file for exclusions or just get rid of the crap | |
tar -czvvf /var/www/bkp/websqlbkp.tar.gz /var/www/html/alldatabases.sql /var/www/html/* | |
This file contains 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
(in /Library/WebServer/Documents/Projects/mormonpedia.com) | |
/usr/local/bin/ruby -I"lib:test" "/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/article_test.rb" "test/unit/helpers/static_helper_test.rb" "test/unit/page_sharing_mailer_test.rb" "test/unit/page_sharing_test.rb" "test/unit/post_test.rb" "test/unit/query_strings_test.rb" "test/unit/user_test.rb" | |
Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader | |
Started | |
F.....F | |
Finished in 0.062678 seconds. | |
1) Failure: | |
test_should_be_valid(ArticleTest) [/test/unit/article_test.rb:5]: | |
<false> is not true. |
This file contains 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_once("/var/www/crond/class-phpmailer.php"); | |
try{ | |
$report_email = new PHPMailer(); | |
//hook into the GMAIL SMTP server | |
$report_email->Host = "smtp.gmail.com"; | |
$report_email->SMTPAuth = true; | |
$report_email->SMTPSecure = "tls"; | |
$report_email->Port = 587; | |
$report_email->Username = "[email protected]"; | |
$report_email->Password = "supersecret"; |
This file contains 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
<?php | |
/** | |
* The Order Controller | |
*/ | |
require_once(PEPPER_ROOT . "/account/classes/Controller.class.php"); | |
class Order extends Controller { | |
public $title; | |
public $layout; | |
This file contains 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
describe "/admin" do | |
before(:each){ | |
get :index | |
} | |
it { should route(:get, "/admin").to(:controller => :reviews, :action => :index) } | |
it { should respond_with(:success) } | |
end |
This file contains 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/sh | |
# VERSION 0.1 | |
# Last Updated 05/28/10 by Bryce McDonnell ( http://brycemcdonnell.com ) | |
#bash script to deploy a new Ubuntu desktop box for developing ruby/rails. This is a work in progress to be sure. I'll do my best to maintain this script to keep it current. | |
#Thanks to Lan Lelis for most of this workflow http://rbjl.net/18-you-don-t-need-a-macbook-to-code-ruby-and-rails | |
sudo -s |
This file contains 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/sh | |
# used in BME projects for designers who don't like the command line :) Automatically adds anything new in the working index to the repo, commits the changes, and then pushes it back to the origin/design branch. | |
# At BME, useful for us developers getting regular updates pulled into our repos | |
# Common usage: drop this script into the designers home folder and then add a cron task like the following: | |
# @hourly /home/steveb/github >> /var/log/designcommits.log 2>&1 |
This file contains 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
</table><p></p><p></p><p style='padding-top:50px;'><font color='#FFFFFF' size='1'>Unsubscribe from these emails by <a href='[[unsubscribe]]' title='One click unsubscribe' style='color:#FFFFFF'>clicking here</a></font></p> |
This file contains 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
class Design < ActiveRecord::Base | |
has_many :comments, :dependent => :destroy | |
has_many :images, :dependent => :destroy | |
has_many :orders | |
belongs_to :event | |
named_scope :all_derbies, { :conditions => {:derby => true} } | |
named_scope :active_derbies, { :conditions => {:derby => true, :active_in_derby => true} } |
This file contains 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
[{"name":"playback","filename":"monkeys"}] |
OlderNewer