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 'rubygems' | |
require_gem 'activerecord' | |
require '/var/www/hoosier/app/models/payment_method' | |
#Connect to the database | |
ActiveRecord::Base.establish_connection( | |
:adapter => "postgresql", | |
:host => "localhost", | |
:username => "****", | |
:password => "****", |
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/env ruby | |
# | |
# Find bloating passengers and kill them gracefully. Run from cron every minute. | |
# | |
# required for passenger since cron has no environment | |
ENV['HTTPD'] = 'httpd' | |
MEM_LIMIT = ARGV[0] || 500 |
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
** [out :: stage.assessingparenting.com] -> 0.0036s | |
** [out :: stage.assessingparenting.com] == ChangeVariantSchema: migrated (0.0328s) =================================== | |
** [out :: stage.assessingparenting.com] | |
** [out :: stage.assessingparenting.com] == MoveRaceGenderToDemographics: migrating =================================== | |
** [out :: stage.assessingparenting.com] -- remove_column(:participants, :race) | |
** [out :: stage.assessingparenting.com] -> 0.0012s | |
** [out :: stage.assessingparenting.com] -- remove_column(:participants, :race_other) | |
** [out :: stage.assessingparenting.com] -> 0.0006s | |
** [out :: stage.assessingparenting.com] -- remove_column(:participants, :gender) | |
** [out :: stage.assessingparenting.com] -> 0.0006s |
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
/*** | |
Delivery Schedule Behaviors | |
***/ | |
var DeliverySchedule = $.klass({ | |
SCHEDULE_CYCLE: 8, | |
MONTHS: ["January","February","March","April","May","June","July", | |
"August","September","October","November","December"], | |
initialize: function() { | |
// initialize future delivery depending on initial option |
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
find . -type f -exec chmod 644 {} \; | |
find . -type d -exec chmod 755 {} \; |
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
find . -type f -exec chmod 644 {} \; | |
find . -type d -exec chmod 755 {} \; |
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
:.,$s/^[<tab>]*\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
# | |
# bash completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# | |
# *) local and remote branch names |
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
1) Put terminal_clone_tab.sh somewhere in | |
your path and make sure it is executable | |
chmod u+x terminal_clone_tab.sh | |
2) Then add the following alias (~/.bash_profile or something) | |
alias nt='terminal_clone_tab.sh' | |
3) Then you can hit nt (for new tab) anywhere | |
and a new tab will open up in same directory. | |
If there is an easier way to do this, let me know [email protected]. |
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
RUBY = File.join( | |
Config::CONFIG['bindir'], | |
Config::CONFIG['ruby_install_name'] + Config::CONFIG['EXEEXT']). | |
sub(/.*\s.*/m, '"\&"') |
OlderNewer