-
Open the Terminal
-
Use
mysqldump
to backup your databases -
Check for MySQL processes with:
ps -ax | grep mysql
-
Stop and kill any MySQL processes
-
Analyze MySQL on HomeBrew:
brew remove mysql
#!/bin/bash | |
# The script will fail at the first error encountered | |
set -e | |
PASS=`pwgen -s 40 1` | |
mysql -uroot <<MYSQL_SCRIPT | |
CREATE DATABASE $1; | |
CREATE USER '$1'@'localhost' IDENTIFIED BY '$PASS'; | |
GRANT ALL PRIVILEGES ON $1.* TO '$1'@'localhost'; |
#!/bin/sh | |
# Clean workspace | |
rm -rf * | |
rm .gitignore | |
# Upgrade Ruby | |
rvm install ruby-2.4.1 --default | |
# Start PostgreSQL and fix encoding conflict when creating database |
You can try to add annotation dependencies to pom.xml, so that they would be available for Spring:
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
File permission for pem file
chmod 400 {keyfile}.pem
Back with tar and today's date:
tar -zcvf "htdocs$(date '+%Y-%m-%d').tar.gz" htdocs
Rsync example \n
rsync -av — progress -e “ssh -i /home/mn/Documents/AWS/LightsailDefaultKey-us-east-1.pem” /home/mn/wordpress-5.4-0/apps/wordpress/htdocs/wp-content/themes/porto [email protected]:/home/bitnami/apps/wordpress/htdocs/wp-content/themes/
#How To Add Bootstrap to a Ruby on Rails Application
https://www.digitalocean.com/community/tutorials/how-to-add-bootstrap-to-a-ruby-on-rails-application