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 | |
database='database' | |
user='user' | |
pass='pass' | |
charset='utf8mb4' | |
collate='utf8mb4_unicode_ci' | |
echo "Changing charset of database: $database" |
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 | |
database='my_database_name' | |
username='database_username' | |
password='database_password' | |
mysqldump $database -u $username -p"$password" | gzip > "dumps/$database-$(date +%F--%H-%m-%S).sql.gz" |
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
sudo apt-get remove --purge "^mysql.*" | |
sudo apt-get autoremove | |
sudo apt-get autoclean | |
sudo rm -rf /var/lib/mysql | |
sudo rm -rf /var/log/mysql | |
echo mysql-apt-config mysql-apt-config/enable-repo select mysql-5.7-dmr | sudo debconf-set-selections | |
wget http://dev.mysql.com/get/mysql-apt-config_0.2.1-1ubuntu12.04_all.deb | |
sudo dpkg --install mysql-apt-config_0.2.1-1ubuntu12.04_all.deb | |
sudo apt-get update -q | |
sudo apt-get install -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" mysql-server |
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 | |
/* | |
|| #################################################################### || | |
|| # ArrowChat # || | |
|| # ---------------------------------------------------------------- # || | |
|| # Copyright ©2010-2012 ArrowSuites LLC. All Rights Reserved. # || | |
|| # This file may not be redistributed in whole or significant part. # || | |
|| # ---------------- ARROWCHAT IS NOT FREE SOFTWARE ---------------- # || | |
|| # http://www.arrowchat.com | http://www.arrowchat.com/license/ # || |
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
# how to use: | |
# rake db:truncate | |
# | |
# Truncates all tables in your rails database except the schema_migrations table. | |
# This is a destructive rake task, it will delete all records in your database, | |
# so don't use it if you don't know what you are doing and be careful when using it. | |
# I recommend use it just when you have a really good seed.rb in your project | |
# as a easy way to clean the database and then seed the database with rake db:seed command. | |
# Como usar: |
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
#encoding: utf-8 | |
pt-BR: | |
views: | |
pagination: | |
first: "« Primeira" | |
last: "Última »" | |
previous: "‹ Anterior" | |
next: "Próxima ›" | |
truncate: "…" |
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
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n | |
pt-BR: | |
devise: | |
confirmations: | |
confirmed: 'Sua conta foi confirmada com sucesso. Você está logado.' | |
send_instructions: 'Dentro de minutos você receberá um e-mail com instruções para confirmar a sua conta.' | |
send_paranoid_instructions: 'Caso seu e-mail exista em nossa base, você receberá um e-mail em poucos minutos com instruções sobre como confirmar sua conta.' | |
failure: | |
already_authenticated: 'Você já está logado.' |
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
pt-BR: | |
admin: | |
home: | |
name: "Início" | |
pagination: | |
previous: "« Anterior" | |
next: "Próximo »" | |
truncate: "…" | |
misc: | |
filter_date_format: "dd/mm/yy" |