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
| for repo in $(find . -name .git -type d) | |
| do | |
| echo $repo | |
| GIT_DIR=$repo git fetch --all --quiet; | |
| done |
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 -xe | |
| #THIS SCRIPT MUST BE RUN AS ROOT | |
| #Set locale | |
| echo "export LANGUAGE=en_AU.UTF-8" > /tmp/locale | |
| echo "export LANG=en_AU.UTF-8" >> /tmp/locale | |
| echo "export LC_ALL=en_AU.UTF-8" >> /tmp/locale | |
| cat /etc/bash.bashrc >> /tmp/locale | |
| cp /tmp/locale /etc/bash.bashrc |
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 'db:test:prepare' => :close_postgres_connections | |
| task :close_postgres_connections => :environment do | |
| #Kill any other open connections on the test db | |
| db_adapter = defined?(::ActiveRecord::Base) ? ActiveRecord::Base.connection : nil | |
| db_adapter ||= defined?(::Sequel::Model) ? ::Sequel::Model.db : nil | |
| if Rails.env.test? && db_adapter | |
| db_config = Rails.configuration.database_configuration[Rails.env].symbolize_keys | |
| begin |
NewerOlder