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 | |
# Copyright 2013 Percona LLC and/or its affiliates | |
# @see https://www.percona.com/blog/2013/12/24/renaming-database-schema-mysql/ | |
set -e | |
if [ -z "$3" ]; then | |
echo "rename_db <server> <database> <new_database>" | |
exit 1 | |
fi | |
db_exists=`mysql -h $1 -e "show databases like '$3'" -sss` | |
if [ -n "$db_exists" ]; then |
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 | |
NODENAME=$(hostname) | |
MOUNTPOINT="/datadrive" | |
RAIDCHUNKSIZE=512 | |
RAIDDISK="/dev/md127" | |
RAIDPARTITION="/dev/md127p1" | |
# A set of disks to ignore from partitioning and formatting |
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
# config/initializers/paperclip.rb | |
# If you want to disable paperclip attachments to S3 in the development environment, | |
# remove the comments from the "if" condition below and restart the server. | |
#if Rails.env.staging? || Rails.env.production? | |
Paperclip::Attachment.default_options[:storage] = :s3 | |
Paperclip::Attachment.default_options[:s3_credentials] = { | |
:bucket => "app-#{Rails.env}", | |
:access_key_id => '<ACCESS_KEY_ID>', | |
:secret_access_key => '<SECRET_ACCESS_KEY>' |