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
# do you have cpu utilization 100% and don't you have any logging and don't you know that MySQL instance? | |
For understanding who is connected, what queries they have executed and how long queries are running | |
* check the client connections | |
* and check the queries are running for a long time | |
The system works fine for months and only now there is a problem? | |
* check the last changes with the developers | |
* and check the size of datadir or run these queries | |
``` |
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
## If you want to use different git configuration | |
I use different email for my personal project and my work, so I use to set up user and email into .git/config | |
``` | |
git config user.name "Alessandra Bilardi" | |
git config user.email "your@email.ext" | |
``` | |
And when I forget.. | |
## If you want to change email or author name in the last commit | |
``` |
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
# Develop with the Serverless Framework and AWS on a Docker container | |
Don't you want to download all dependencies on your client? Use a docker container! | |
You can develop on your client and a *Dockerfile* with all dependencies that you need for your code. | |
Below you can find the steps for creating your work environment and an example of a *Dockerfile*. | |
## Usage | |
Build the docker image | |
``` |
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
cd C:\Users\$env:UserName\Code | |
start notepad .\00-local.sh | |
more .\00-local.sh | |
copy .\00-local.sh .\00-local.bat | |
md bat | |
move .\00-local.bat .\bat\ |
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
# Clone your fork | |
``` | |
$ git clone https://github.com/your-username/your-repository-name.git | |
``` | |
# Create a remote upstream with the original repository | |
``` | |
$ cd your-repository-name | |
$ git remote add upstream git://github.com/original-username/repository-name-forked.git | |
``` |
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
# Convert an HTML site to Jekyll | |
When your site is already a static web site, is simple: | |
- you can download your site by https://github.com/bilardi/siteclone | |
- you can follow the guide on https://jekyllrb.com/tutorials/convert-site-to-jekyll/ | |
## If you don't want to install jekyll on your client | |
I prefer to install only what is necessary on my client, so I use docker for everything else. | |
In this case, I add the docker-compose.yml file on the git repository and I use it with: | |
``` |