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
ssh -i ${key.pem} -L ${port.on.my.machine}:${rds.instance}:3306 ec2-user@${ec2.ip.address} |
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
ssh -i ${instance.key} ec2-user@${ec2.ip} |
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
chromium-browser --disable-web-security --user-data-dir |
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
Flush Hosts on RDS instances when you cannot directly connect. | |
Reset the master password on the instance | |
SSH into an EC2 instance which can connect to the instance | |
install the mysql client (Amazon AMIs) sudo yum install mysql | |
connect to the db as roort: | |
mysql -h <<RDS HOST>> -u root -p |
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
git tag -a v${version} -m "${message}" | |
git push origin --tags |
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
db.vehicles.update({}, {$set: {dateCreated: Date.now()}}, {multi:true}) |
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
https://findusages.com/ | |
https://www.programcreek.com/simple-java/ | |
https://www.programcreek.com/java-api-examples/index.php?action=search |
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
Dumping from RDS: | |
Below the command to get the dump from the RDS instance to EC2 | |
mysqldump -C -K -h {{rds instance}} -P {{rds port}} -u {{user}} -p {{schema}} | zip > dump.zip | |
SFTP this zip archive to my local machine (I used FileZilla) | |
Then push this dump to local: |
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
mysqldump -C -K -h {{rds_url}} -P {{rds_port}} -u {{user_name}} -p {{schema}} --ignore-table={{schema.table_name}} | zip > dump.zip |
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
openssl req -x509 -newkey rsa:2048 -keyout private.pem -out cert.pem -days 365 -nodes | |
openssl rsa -in private.pem -out public.pem -outform PEM -pubout |
OlderNewer