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
namespace :admin do | |
desc "Clean up all temporary files in the application directory" | |
task :cleanup, :needs => :environment do | |
puts "Removing temporary directory contents" | |
tmp_files = [] | |
%w{ cache pids sessions sockets }.each do |dir| | |
tmp_files += Dir.glob( File.join(Rails.root, "tmp", dir, "*") ) | |
end | |
File.delete(*tmp_files) |
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/bash | |
################## | |
# MailHistory.bash | |
# Ken Hansen 01/2010 | |
# | |
# Calc history delta then email to self and evernote | |
# | |
# Called from ~/bash_logout | |
# |
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
-- TermTheme.scpt | |
-- Ken Hansen 02/2012 | |
-- Sets theme of current terminal window/tab | |
----------------------- | |
-- Arguments | |
----------------------- | |
-- If a theme name is provided on the command line then set to that | |
-- Example | |
-- osascript TermTheme.scpt Grass |